Initial commit - Deal Plus Tech Astro Website

 53 pages (34 products + corporate)
 All logo images
 Nginx Dockerfile (production-ready)
 PDPA compliant (cookie consent)
 Modern design with Kanit font
 Line + Phone buttons on products

Built: 2026-03-13
This commit is contained in:
Kunthawat Greethong
2026-03-13 10:38:49 +07:00
commit 5f9673aac4
65 changed files with 4803 additions and 0 deletions

View File

@@ -0,0 +1,92 @@
---
const currentYear = new Date().getFullYear();
---
<footer class="footer section">
<div class="container-custom">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12 mb-12">
<!-- Company Info -->
<div>
<div class="flex items-center space-x-3 mb-6">
<img src="/images/logo/logox2_white.png" alt="Deal Plus Tech" class="h-10 w-auto" />
<span class="text-xl font-bold">Deal Plus Tech</span>
</div>
<p class="text-secondary-300 text-base mb-6">
ผู้เชี่ยวชาญด้านระบบน้ำ ให้คำแนะนำและจำหน่ายท่อ PPR ตราช้าง ท่อพีพีอาร์ ท่อ HDPE Thai PPR รั้วตาข่าย คุณภาพสูง ราคาถูก
</p>
<div class="flex space-x-4">
<a href="#" class="w-10 h-10 rounded-full bg-white/10 hover:bg-primary-500 flex items-center justify-center transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>
</a>
<a href="#" class="w-10 h-10 rounded-full bg-white/10 hover:bg-primary-500 flex items-center justify-center transition-colors">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"/></svg>
</a>
</div>
</div>
<!-- Quick Links -->
<div>
<h3 class="text-lg font-bold mb-6">ลิงก์ด่วน</h3>
<ul class="space-y-3">
<li><a href="/about-us" class="text-secondary-300 hover:text-white transition-colors text-base">เกี่ยวกับเรา</a></li>
<li><a href="/product" class="text-secondary-300 hover:text-white transition-colors text-base">สินค้าทั้งหมด</a></li>
<li><a href="/portfolio" class="text-secondary-300 hover:text-white transition-colors text-base">ผลงาน</a></li>
<li><a href="/contact-us" class="text-secondary-300 hover:text-white transition-colors text-base">ติดต่อเรา</a></li>
</ul>
</div>
<!-- Product Categories -->
<div>
<h3 class="text-lg font-bold mb-6">หมวดหมู่สินค้า</h3>
<ul class="space-y-3">
<li><a href="/ท่อ-ppr-thai-ppr" class="text-secondary-300 hover:text-white transition-colors text-base">ท่อ PPR</a></li>
<li><a href="/ท่อhdpe" class="text-secondary-300 hover:text-white transition-colors text-base">ท่อ HDPE</a></li>
<li><a href="/ท่อและข้อต่อpvc" class="text-secondary-300 hover:text-white transition-colors text-base">ท่อ PVC</a></li>
<li><a href="/วาล์ว-valve" class="text-secondary-300 hover:text-white transition-colors text-base">วาล์ว</a></li>
<li><a href="/ปั๊มน้ำ" class="text-secondary-300 hover:text-white transition-colors text-base">ปั๊มน้ำ</a></li>
</ul>
</div>
<!-- Contact -->
<div>
<h3 class="text-lg font-bold mb-6">ติดต่อเรา</h3>
<ul class="space-y-4">
<li class="flex items-start space-x-3">
<svg class="w-6 h-6 text-primary-400 mt-0.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="text-secondary-300 text-base">090-555-1415</span>
</li>
<li class="flex items-start space-x-3">
<svg class="w-6 h-6 text-primary-400 mt-0.5" 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>
<span class="text-secondary-300 text-base">info@dealplustech.co.th</span>
</li>
<li class="flex items-start space-x-3">
<svg class="w-6 h-6 text-primary-400 mt-0.5" 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>
<span class="text-secondary-300 text-base">กรุงเทพมหานคร และปริมณฑล</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-white/10 pt-8">
<div class="flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0">
<p class="text-secondary-400 text-base">
&copy; {currentYear} Deal Plus Tech. สงวนลิขสิทธิ์
</p>
<div class="flex space-x-6">
<a href="/privacy-policy" class="text-secondary-400 hover:text-white transition-colors text-base">นโยบายความเป็นส่วนตัว</a>
<a href="/terms-and-conditions" class="text-secondary-400 hover:text-white transition-colors text-base">ข้อกำหนดการใช้งาน</a>
<button onclick="openConsentPreferences()" class="text-secondary-400 hover:text-white transition-colors text-base">
การตั้งค่าคุกกี้
</button>
</div>
</div>
</div>
</div>
</footer>

View File

@@ -0,0 +1,93 @@
---
const categories = [
{ name: 'ท่อ | Pipe', slug: '/pipe' },
{ name: 'ท่อ PPR', slug: '/ท่อ-ppr-thai-ppr' },
{ name: 'ท่อ HDPE', slug: '/ท่อhdpe' },
{ name: 'ท่อ PVC', slug: '/ท่อและข้อต่อpvc' },
{ name: 'ท่อ UPVC', slug: '/ท่อ-upvc' },
{ name: 'วาล์ว | Valve', slug: '/วาล์ว-valve' },
{ name: 'ปั๊มน้ำ', slug: '/water-pump' },
{ name: 'ระบบกรองน้ำ', slug: '/water-treatment' },
{ name: 'ระบบรั้ว', slug: '/ระบบรั้ว' },
{ name: 'กริลแอร์', slug: '/grilles' },
{ name: 'ฉนวนหุ้มท่อ', slug: '/ฉนวนหุ้มท่อ-pipe-insulation' },
{ name: 'แฮงเกอร์ แคล้ม โบลท์', slug: '/แฮงเกอร์-แคล้ม-โบลท์-แหวน-น็อต-สกรู-พุก-สตัดเกลียว' },
];
---
<header class="navbar">
<div class="container-custom">
<div class="flex items-center justify-between h-20">
<!-- Logo -->
<a href="/" class="flex items-center space-x-3 group">
<img src="/images/logo/logox2.png" alt="Deal Plus Tech" class="h-12 w-auto transition-transform group-hover:scale-105" />
<span class="text-2xl font-bold gradient-text hidden md:block">Deal Plus Tech</span>
</a>
<!-- Desktop Navigation -->
<nav class="hidden lg:flex items-center space-x-1">
<a href="/" class="px-4 py-2 text-base font-medium text-secondary-700 hover:text-primary-600 transition-colors">หน้าแรก</a>
<a href="/about-us" class="px-4 py-2 text-base font-medium text-secondary-700 hover:text-primary-600 transition-colors">เกี่ยวกับเรา</a>
<!-- Products Dropdown -->
<div class="relative group">
<button class="px-4 py-2 text-base font-medium text-secondary-700 group-hover:text-primary-600 transition-colors flex items-center space-x-1">
<span>สินค้า</span>
<svg class="w-4 h-4 transition-transform group-hover:rotate-180" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<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-2 w-64 bg-white rounded-xl 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">
<div class="py-2">
{categories.map(cat => (
<a href={cat.slug} class="block px-4 py-2.5 text-base text-secondary-700 hover:bg-primary-50 hover:text-primary-600 transition-colors">
{cat.name}
</a>
))}
</div>
</div>
</div>
<a href="/portfolio" class="px-4 py-2 text-base font-medium text-secondary-700 hover:text-primary-600 transition-colors">ผลงาน</a>
<a href="/contact-us" class="px-4 py-2 text-base font-medium text-secondary-700 hover:text-primary-600 transition-colors">ติดต่อเรา</a>
</nav>
<!-- Contact Button -->
<div class="hidden lg:flex items-center space-x-4">
<a href="tel:090-555-1415" class="flex items-center space-x-2 text-primary-600 hover:text-primary-700 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-semibold">090-555-1415</span>
</a>
</div>
<!-- Mobile Menu Button -->
<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">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
<!-- Mobile Menu -->
<div id="mobile-menu" class="lg:hidden hidden pb-4">
<nav class="flex flex-col space-y-2">
<a href="/" class="px-4 py-3 text-base font-medium text-secondary-700 hover:bg-primary-50 hover:text-primary-600 rounded-lg transition-colors">หน้าแรก</a>
<a href="/about-us" class="px-4 py-3 text-base font-medium text-secondary-700 hover:bg-primary-50 hover:text-primary-600 rounded-lg transition-colors">เกี่ยวกับเรา</a>
<a href="/product" class="px-4 py-3 text-base font-medium text-secondary-700 hover:bg-primary-50 hover:text-primary-600 rounded-lg transition-colors">สินค้า</a>
<a href="/portfolio" class="px-4 py-3 text-base font-medium text-secondary-700 hover:bg-primary-50 hover:text-primary-600 rounded-lg transition-colors">ผลงาน</a>
<a href="/contact-us" class="px-4 py-3 text-base font-medium text-secondary-700 hover:bg-primary-50 hover:text-primary-600 rounded-lg transition-colors">ติดต่อเรา</a>
</nav>
</div>
</div>
</header>
<script>
const menuBtn = document.getElementById('mobile-menu-btn');
const mobileMenu = document.getElementById('mobile-menu');
menuBtn?.addEventListener('click', () => {
mobileMenu?.classList.toggle('hidden');
});
</script>