CSS was not being imported! Fixed: ✅ Added 'import ../styles/global.css' to BaseLayout.astro ✅ Rewrote CSS with plain CSS (not @apply which wasn't working) ✅ Cookie banner has inline styles as backup ✅ Font size: 16px base ✅ Solid colors: green-600 (#16a34a), gray-900 (#111827) ✅ Footer has policy links Build: 12 pages ✅
109 lines
7.5 KiB
Plaintext
109 lines
7.5 KiB
Plaintext
---
|
|
import { siteConfig, workHours } from '../data/site-config';
|
|
---
|
|
|
|
<footer class="bg-secondary-900 text-white pt-16 pb-8">
|
|
<div class="container mx-auto px-4">
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12">
|
|
<!-- Company Info -->
|
|
<div>
|
|
<div class="flex items-center gap-3 mb-4">
|
|
<div class="w-12 h-12 bg-primary-600 rounded-lg flex items-center justify-center">
|
|
<span class="text-white font-bold text-xl">ด</span>
|
|
</div>
|
|
<span class="text-white font-bold text-xl">{siteConfig.nameTh}</span>
|
|
</div>
|
|
<p class="text-secondary-300 mb-4">
|
|
ผู้เชี่ยวชาญด้านวัสดุท่อและอุปกรณ์ระบบท่อครบวงจร
|
|
</p>
|
|
<div class="flex gap-4">
|
|
<a href={`https://facebook.com/${siteConfig.facebookUrl}`} target="_blank" rel="noopener" class="text-secondary-300 hover:text-primary-400 transition-colors">
|
|
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
|
|
<path d="M18.77,7.46H14.5v-1.9c0-.9.6-1.1,1-1.1h3V.5h-4.33C10.24.5,9.5,3.44,9.5,5.32v2.15h-3v4h3v12h5v-12h3.85l.42-4Z"/>
|
|
</svg>
|
|
</a>
|
|
<a href={`https://line.me/ti/p/${siteConfig.lineId}`} target="_blank" rel="noopener" class="text-secondary-300 hover:text-primary-400 transition-colors">
|
|
<svg class="w-6 h-6" 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-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.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-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.10.314c943 0 0 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>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Quick Links -->
|
|
<div>
|
|
<h3 class="text-lg font-bold mb-4">ลิงก์ด่วน</h3>
|
|
<ul class="space-y-2">
|
|
<li><a href="/about-us/" class="text-secondary-300 hover:text-primary-400 transition-colors">เกี่ยวกับเรา</a></li>
|
|
<li><a href="/services/" class="text-secondary-300 hover:text-primary-400 transition-colors">บริการ</a></li>
|
|
<li><a href="/product/" class="text-secondary-300 hover:text-primary-400 transition-colors">สินค้า</a></li>
|
|
<li><a href="/portfolio/" class="text-secondary-300 hover:text-primary-400 transition-colors">ผลงาน</a></li>
|
|
<li><a href="/contact-us/" class="text-secondary-300 hover:text-primary-400 transition-colors">ติดต่อเรา</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Products -->
|
|
<div>
|
|
<h3 class="text-lg font-bold mb-4">สินค้า</h3>
|
|
<ul class="space-y-2">
|
|
<li><a href="/ท่อพีพีอาร์ตราช้าง/" class="text-secondary-300 hover:text-primary-400 transition-colors">ท่อพีพีอาร์ตราช้าง</a></li>
|
|
<li><a href="/ท่อhdpe/" class="text-secondary-300 hover:text-primary-400 transition-colors">ท่อ HDPE</a></li>
|
|
<li><a href="/ท่อupvc/" class="text-secondary-300 hover:text-primary-400 transition-colors">ท่อ uPVC</a></li>
|
|
<li><a href="/วาล์ว-valve/" class="text-secondary-300 hover:text-primary-400 transition-colors">วาล์ว</a></li>
|
|
<li><a href="/หัวจ่ายลม-กริล/" class="text-secondary-300 hover:text-primary-400 transition-colors">กริลแอร์</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Contact -->
|
|
<div>
|
|
<h3 class="text-lg font-bold mb-4">ติดต่อเรา</h3>
|
|
<ul class="space-y-3">
|
|
<li class="flex items-start gap-3">
|
|
<svg class="w-5 h-5 text-primary-400 mt-0.5 flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<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">{siteConfig.address}</span>
|
|
</li>
|
|
<li class="flex items-center gap-3">
|
|
<svg class="w-5 h-5 text-primary-400 flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<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>
|
|
<a href={`tel:${siteConfig.phone}`} class="text-secondary-300 hover:text-primary-400 transition-colors">{siteConfig.phone}</a>
|
|
</li>
|
|
<li class="flex items-center gap-3">
|
|
<svg class="w-5 h-5 text-primary-400 flex-shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<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>
|
|
<a href={`mailto:${siteConfig.email}`} class="text-secondary-300 hover:text-primary-400 transition-colors">{siteConfig.email}</a>
|
|
</li>
|
|
<li class="flex items-center gap-3">
|
|
<svg class="w-5 h-5 text-primary-400 flex-shrink-0" 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-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755z"/>
|
|
</svg>
|
|
<span class="text-secondary-300">{siteConfig.lineId}</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Work Hours -->
|
|
<div class="border-t border-secondary-800 pt-8 mb-8">
|
|
<h4 class="font-bold mb-3">เวลาทำการ</h4>
|
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 text-secondary-300">
|
|
{workHours.map((item) => (
|
|
<div class="flex justify-between">
|
|
<span>{item.day}</span>
|
|
<span class={item.isClosed ? 'text-red-400' : ''}>{item.hours}</span>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Copyright -->
|
|
<div class="border-t border-secondary-800 pt-8 text-center text-secondary-400">
|
|
<p>© {new Date().getFullYear()} {siteConfig.nameTh} สงวนลิขสิทธิ์</p>
|
|
</div>
|
|
</div>
|
|
</footer>
|