Auto-sync from website-creator
This commit is contained in:
@@ -65,7 +65,7 @@ const mainCategories = [
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
|
||||
</svg>
|
||||
<span class="text-secondary-700 text-base">9/69 ซอยนครลุง 17 แขวงบางไผ่ เขตบางแค กรุงเทพมหานคร 10160</span>
|
||||
<span class="text-secondary-700 text-base break-words">9/69 ซอยนครลุง 17 แขวงบางไผ่ เขตบางแค กรุงเทพมหานคร 10160</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -89,8 +89,8 @@ const categories = [
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
|
||||
</svg>
|
||||
</button>
|
||||
<div class="absolute top-full left-0 mt-0 w-[720px] max-w-[90vw] bg-white rounded-2xl shadow-2xl border border-secondary-100 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 transform group-hover:translate-y-0 translate-y-2 z-50">
|
||||
<div class="grid grid-cols-4 gap-4 p-6">
|
||||
<div class="absolute top-full left-0 lg:left-1/2 lg:-translate-x-1/2 mt-0 w-[320px] sm:w-[500px] lg:w-[720px] max-w-[95vw] bg-white rounded-2xl shadow-2xl border border-secondary-100 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 transform group-hover:translate-y-0 translate-y-2 z-50">
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 p-4 lg:p-6">
|
||||
{categories.map(cat => (
|
||||
<div class="space-y-3">
|
||||
<a href={cat.slug} class="block text-sm font-bold text-secondary-800 hover:text-accent-500 transition-colors">
|
||||
@@ -131,18 +131,26 @@ const categories = [
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<button id="mobile-menu-btn" class="lg:hidden p-2 rounded-lg hover:bg-secondary-100 transition-colors">
|
||||
<svg class="w-6 h-6 text-secondary-700" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<button id="mobile-menu-btn" class="lg:hidden p-3 min-w-[44px] min-h-[44px] flex items-center justify-center rounded-lg hover:bg-secondary-100 transition-colors" aria-label="เปิดเมนู" aria-expanded="false" aria-controls="mobile-menu">
|
||||
<!-- Hamburger Icon -->
|
||||
<svg id="hamburger-icon" class="w-6 h-6 text-secondary-700 transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
||||
</svg>
|
||||
<!-- Close Icon (X) -->
|
||||
<svg id="close-icon" class="w-6 h-6 text-secondary-700 hidden transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div id="mobile-menu" class="lg:hidden hidden pb-4">
|
||||
<nav class="flex flex-col space-y-2">
|
||||
<!-- Mobile Backdrop -->
|
||||
<div id="mobile-backdrop" class="fixed inset-0 bg-black/50 z-40 hidden transition-opacity duration-300" aria-hidden="true"></div>
|
||||
|
||||
<div id="mobile-menu" class="lg:hidden hidden pb-4 absolute top-full left-0 right-0 bg-white z-50 shadow-lg rounded-b-xl border-t border-secondary-100">
|
||||
<nav class="flex flex-col space-y-2 p-4">
|
||||
<a href="/" class="mobile-nav-link">หน้าแรก</a>
|
||||
<a href="/about-us" class="mobile-nav-link">เกี่ยวกับเรา</a>
|
||||
<a href="/ท่อพีพีอาร์" class="mobile-nav-link">สินค้าทั้งหมด</a>
|
||||
<a href="/all-products" class="mobile-nav-link">สินค้าทั้งหมด</a>
|
||||
<a href="/portfolio" class="mobile-nav-link">ผลงาน</a>
|
||||
<a href="/contact-us" class="mobile-nav-link">ติดต่อเรา</a>
|
||||
</nav>
|
||||
@@ -179,10 +187,54 @@ const categories = [
|
||||
<script>
|
||||
const menuBtn = document.getElementById('mobile-menu-btn');
|
||||
const mobileMenu = document.getElementById('mobile-menu');
|
||||
const mobileBackdrop = document.getElementById('mobile-backdrop');
|
||||
const hamburgerIcon = document.getElementById('hamburger-icon');
|
||||
const closeIcon = document.getElementById('close-icon');
|
||||
const header = document.getElementById('header');
|
||||
|
||||
menuBtn?.addEventListener('click', () => {
|
||||
mobileMenu?.classList.toggle('hidden');
|
||||
function toggleMenu() {
|
||||
if (!menuBtn || !mobileMenu || !mobileBackdrop) return;
|
||||
|
||||
const isOpen = !mobileMenu.classList.contains('hidden');
|
||||
|
||||
// Toggle menu visibility
|
||||
mobileMenu.classList.toggle('hidden');
|
||||
mobileBackdrop.classList.toggle('hidden');
|
||||
|
||||
// Toggle hamburger/close icons
|
||||
if (hamburgerIcon && closeIcon) {
|
||||
hamburgerIcon.classList.toggle('hidden');
|
||||
closeIcon.classList.toggle('hidden');
|
||||
}
|
||||
|
||||
// Update ARIA
|
||||
menuBtn.setAttribute('aria-expanded', !isOpen);
|
||||
|
||||
// Prevent body scroll when menu is open
|
||||
document.body.classList.toggle('overflow-hidden', !isOpen);
|
||||
}
|
||||
|
||||
function closeMenuOnLinkClick() {
|
||||
if (!mobileMenu || mobileMenu.classList.contains('hidden')) return;
|
||||
toggleMenu();
|
||||
}
|
||||
|
||||
menuBtn?.addEventListener('click', toggleMenu);
|
||||
|
||||
// Close menu when clicking backdrop
|
||||
mobileBackdrop?.addEventListener('click', closeMenuOnLinkClick);
|
||||
|
||||
// Close menu when pressing Escape
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Escape' && mobileMenu && !mobileMenu.classList.contains('hidden')) {
|
||||
toggleMenu();
|
||||
}
|
||||
});
|
||||
|
||||
// Close menu when clicking any mobile menu link
|
||||
const mobileMenuLinks = document.querySelectorAll('#mobile-menu a');
|
||||
mobileMenuLinks.forEach(link => {
|
||||
link.addEventListener('click', closeMenuOnLinkClick);
|
||||
});
|
||||
|
||||
let lastScroll = 0;
|
||||
|
||||
@@ -127,7 +127,7 @@ const siteUrl = 'https://dealplustech.co.th';
|
||||
<slot name="footer" />
|
||||
|
||||
<!-- Cookie Consent Banner -->
|
||||
<div id="cookie-consent" class="fixed bottom-0 left-0 right-0 z-50 bg-secondary-900 text-white p-6 shadow-2xl transform translate-y-full transition-transform duration-500">
|
||||
<div id="cookie-consent" class="fixed bottom-0 left-0 right-0 z-50 bg-secondary-900 text-white p-4 sm:p-6 pb-[env(safe-area-inset-bottom)] shadow-2xl transform translate-y-full transition-transform duration-500">
|
||||
<div class="container-custom max-w-6xl">
|
||||
<div class="flex flex-col md:flex-row items-center justify-between gap-6">
|
||||
<div class="flex-1">
|
||||
|
||||
@@ -103,7 +103,7 @@ import Footer from '@/components/common/Footer.astro';
|
||||
<!-- Stats Section -->
|
||||
<section class="section bg-secondary-50">
|
||||
<div class="container-custom">
|
||||
<div class="grid grid-cols-3 gap-8 text-center">
|
||||
<div class="grid grid-cols-1 sm:grid-cols-3 gap-6 sm:gap-8 text-center">
|
||||
<div>
|
||||
<div class="text-4xl sm:text-5xl font-bold text-primary-600 mb-2">10+</div>
|
||||
<div class="text-secondary-600">ปีประสบการณ์</div>
|
||||
|
||||
@@ -14,23 +14,7 @@ import Footer from '@/components/common/Footer.astro';
|
||||
<div class="container-custom">
|
||||
<div class="max-w-4xl mx-auto text-center">
|
||||
<h1 class="text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-4">ติดต่อเรา</h1>
|
||||
<p class="text-xl text-white/80 mb-8">พร้อมให้คำปรึกษาคุณตลอดเวลาทำการ</p>
|
||||
|
||||
<!-- Quick Contact Pills -->
|
||||
<div class="flex flex-wrap justify-center gap-4">
|
||||
<a href="tel:0905551415" class="inline-flex items-center gap-2 bg-white/20 hover:bg-white/30 text-white px-6 py-3 rounded-full transition-colors">
|
||||
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/>
|
||||
</svg>
|
||||
<span class="font-medium">090-555-1415</span>
|
||||
</a>
|
||||
<a href="https://line.me/ti/p/~dealplustech" target="_blank" class="inline-flex items-center gap-2 bg-green-500 hover:bg-green-600 text-white px-6 py-3 rounded-full transition-colors">
|
||||
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.344.282-.629.627-.629h2.386c.349 0 .63.285.63.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.629.63-.629.345 0 .63.284.63.629v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.629.627-.629.349 0 .631.284.631.629v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.629.63-.629.348 0 .63.284.63.629v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314"/>
|
||||
</svg>
|
||||
<span class="font-medium">Line: @dealplustech</span>
|
||||
</a>
|
||||
</div>
|
||||
<p class="text-xl text-white/80">พร้อมให้คำปรึกษาคุณตลอดเวลาทำการ</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -90,61 +74,61 @@ import Footer from '@/components/common/Footer.astro';
|
||||
</div>
|
||||
|
||||
<!-- Contact Details -->
|
||||
<div class="card-glass p-8 md:p-10">
|
||||
<div class="card-glass p-4 sm:p-6 md:p-10">
|
||||
<h2 class="text-2xl font-bold text-secondary-900 text-center mb-8">ช่องทางติดต่อ</h2>
|
||||
|
||||
<div class="grid md:grid-cols-3 gap-8">
|
||||
<div class="grid grid-cols-1 sm:grid-cols-3 gap-4 sm:gap-6">
|
||||
|
||||
<!-- Phone -->
|
||||
<div class="flex flex-col items-center text-center p-6 bg-gray-50 rounded-2xl">
|
||||
<div class="w-16 h-16 bg-blue-100 rounded-2xl flex items-center justify-center mb-4">
|
||||
<svg class="w-8 h-8 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<div class="flex flex-col items-center text-center p-4 sm:p-6 bg-gray-50 rounded-2xl">
|
||||
<div class="w-12 h-12 sm:w-16 sm:h-16 bg-blue-100 rounded-2xl flex items-center justify-center mb-3 sm:mb-4">
|
||||
<svg class="w-6 h-6 sm:w-8 sm:h-8 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="font-bold text-secondary-900 text-lg mb-2">โทรศัพท์</h3>
|
||||
<a href="tel:0905551415" class="text-2xl font-bold text-primary-600 hover:text-primary-700 mb-2">090-555-1415</a>
|
||||
<p class="text-secondary-500 text-sm">วันจันทร์-เสาร์ 08:30-17:30</p>
|
||||
<h3 class="font-bold text-secondary-900 text-base sm:text-lg mb-1 sm:mb-2">โทรศัพท์</h3>
|
||||
<a href="tel:0905551415" class="text-lg sm:text-2xl font-bold text-primary-600 hover:text-primary-700 mb-1 sm:mb-2">090-555-1415</a>
|
||||
<p class="text-secondary-500 text-xs sm:text-sm">วันจันทร์-เสาร์ 08:30-17:30</p>
|
||||
</div>
|
||||
|
||||
<!-- Line -->
|
||||
<div class="flex flex-col items-center text-center p-6 bg-green-50 rounded-2xl">
|
||||
<div class="w-16 h-16 bg-green-100 rounded-2xl flex items-center justify-center mb-4">
|
||||
<svg class="w-8 h-8 text-green-600" fill="currentColor" viewBox="0 0 24 24">
|
||||
<div class="flex flex-col items-center text-center p-4 sm:p-6 bg-green-50 rounded-2xl">
|
||||
<div class="w-12 h-12 sm:w-16 sm:h-16 bg-green-100 rounded-2xl flex items-center justify-center mb-3 sm:mb-4">
|
||||
<svg class="w-6 h-6 sm:w-8 sm:h-8 text-green-600" fill="currentColor" viewBox="0 0 24 24">
|
||||
<path d="M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.344.282-.629.627-.629h2.386c.349 0 .63.285.63.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.629.63-.629.345 0 .63.284.63.629v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.629.627-.629.349 0 .631.284.631.629v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.629.63-.629.348 0 .63.284.63.629v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="font-bold text-secondary-900 text-lg mb-2">ไลน์</h3>
|
||||
<a href="https://line.me/ti/p/~dealplustech" target="_blank" class="text-xl font-bold text-green-600 hover:text-green-700 mb-2">@dealplustech</a>
|
||||
<p class="text-secondary-500 text-sm">แชทได้ตลอด 24 ชม.</p>
|
||||
<h3 class="font-bold text-secondary-900 text-base sm:text-lg mb-1 sm:mb-2">ไลน์</h3>
|
||||
<a href="https://line.me/ti/p/~dealplustech" target="_blank" class="text-base sm:text-xl font-bold text-green-600 hover:text-green-700 mb-1 sm:mb-2">@dealplustech</a>
|
||||
<p class="text-secondary-500 text-xs sm:text-sm">แชทได้ตลอด 24 ชม.</p>
|
||||
</div>
|
||||
|
||||
<!-- Email -->
|
||||
<div class="flex flex-col items-center text-center p-6 bg-gray-50 rounded-2xl">
|
||||
<div class="w-16 h-16 bg-primary-100 rounded-2xl flex items-center justify-center mb-4">
|
||||
<svg class="w-8 h-8 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<div class="flex flex-col items-center text-center p-4 sm:p-6 bg-gray-50 rounded-2xl">
|
||||
<div class="w-12 h-12 sm:w-16 sm:h-16 bg-primary-100 rounded-2xl flex items-center justify-center mb-3 sm:mb-4">
|
||||
<svg class="w-6 h-6 sm:w-8 sm:h-8 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<h3 class="font-bold text-secondary-900 text-lg mb-2">อีเมล</h3>
|
||||
<a href="mailto:dealplustech@gmail.com" class="text-xl font-bold text-primary-600 hover:text-primary-700 mb-2">dealplustech@gmail.com</a>
|
||||
<p class="text-secondary-500 text-sm">ตอบกลับภายใน 24 ชม.</p>
|
||||
<h3 class="font-bold text-secondary-900 text-base sm:text-lg mb-1 sm:mb-2">อีเมล</h3>
|
||||
<a href="mailto:dealplustech@gmail.com" class="text-base sm:text-xl font-bold text-primary-600 hover:text-primary-700 mb-1 sm:mb-2 break-all">dealplustech@gmail.com</a>
|
||||
<p class="text-secondary-500 text-xs sm:text-sm">ตอบกลับภายใน 24 ชม.</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Address -->
|
||||
<div class="mt-8 pt-8 border-t border-gray-200">
|
||||
<div class="flex flex-col md:flex-row items-center gap-4 text-center md:text-left">
|
||||
<div class="w-14 h-14 bg-primary-100 rounded-xl flex items-center justify-center flex-shrink-0">
|
||||
<svg class="w-7 h-7 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<div class="mt-6 sm:mt-8 pt-6 sm:pt-8 border-t border-gray-200">
|
||||
<div class="flex flex-col sm:flex-row items-center gap-3 sm:gap-4 text-center sm:text-left">
|
||||
<div class="w-12 h-12 sm:w-14 sm:h-14 bg-primary-100 rounded-xl flex items-center justify-center flex-shrink-0">
|
||||
<svg class="w-6 h-6 sm:w-7 sm:h-7 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"/>
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="font-bold text-secondary-900 mb-1">ที่อยู่</h3>
|
||||
<p class="text-secondary-600">9/69 ซอยนครลุง 17 แขวงบางไผ่ เขตบางแค กรุงเทพมหานคร 10160</p>
|
||||
<p class="text-secondary-600 text-sm sm:text-base break-words">9/69 ซอยนครลุง 17 แขวงบางไผ่ เขตบางแค กรุงเทพมหานคร 10160</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -60,8 +60,7 @@ const featuredProducts = [
|
||||
</span>
|
||||
</div>
|
||||
<h1 class="text-3xl sm:text-4xl lg:text-5xl font-bold text-white mb-6 leading-tight stagger-item" data-delay="2">
|
||||
ระบบน้ำ<br/>
|
||||
<span class="text-white">คุณภาพสูง</span><br/>
|
||||
ระบบน้ำ คุณภาพสูง<br/>
|
||||
ราคาโรงงาน
|
||||
</h1>
|
||||
<p class="text-lg sm:text-xl text-white/80 mb-8 leading-relaxed max-w-xl stagger-item" data-delay="3">
|
||||
@@ -97,7 +96,7 @@ const featuredProducts = [
|
||||
<!-- Stats Section - Light contrast -->
|
||||
<section class="bg-gray-100 py-12">
|
||||
<div class="container-custom">
|
||||
<div class="grid grid-cols-3 gap-8 text-center">
|
||||
<div class="grid grid-cols-1 sm:grid-cols-3 gap-6 sm:gap-8 text-center">
|
||||
<div>
|
||||
<div class="text-4xl sm:text-5xl font-bold text-primary-600 tracking-tight">10+</div>
|
||||
<div class="text-sm sm:text-base text-secondary-600 uppercase tracking-wider mt-2">ปีประสบการณ์</div>
|
||||
|
||||
@@ -37,15 +37,14 @@ const projects = [
|
||||
|
||||
<section id="portfolio-content" class="section">
|
||||
<div class="container-custom">
|
||||
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{projects.map(project => (
|
||||
<div class="card-glass overflow-hidden group">
|
||||
<div class="relative h-64 overflow-hidden">
|
||||
<div class="relative aspect-[4/3] overflow-hidden bg-secondary-100">
|
||||
<img
|
||||
src={project.image}
|
||||
alt={project.name}
|
||||
class="w-full h-full object-cover transform group-hover:scale-110 transition-transform duration-500"
|
||||
width="768" height="1024"
|
||||
loading="lazy" decoding="async"
|
||||
onerror="this.src='/images/logo/dealplustech-logo.png'"
|
||||
/>
|
||||
|
||||
@@ -27,13 +27,13 @@
|
||||
|
||||
@media (min-width: 1536px) {
|
||||
html {
|
||||
font-size: 22px;
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1920px) {
|
||||
html {
|
||||
font-size: 24px;
|
||||
font-size: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user