Standardize hero grid to items-start for all product pages

This commit is contained in:
Kunthawat Greethong
2026-05-24 20:07:20 +07:00
parent 7eec86d7c5
commit f9161ab984
17 changed files with 208 additions and 208 deletions

View File

@@ -41,7 +41,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<nav class="text-sm mb-4 text-primary-100">
<a href="/" class="hover:text-white">หน้าแรก</a> / <a href="/all-products" class="hover:text-white">สินค้าทั้งหมด</a> / <span class="text-white">รั้วเทวดา</span>
</nav>
<div class="grid lg:grid-cols-2 gap-8 items-center">
<div class="grid lg:grid-cols-2 gap-8 items-start">
<div class="img-hover rounded-2xl overflow-hidden bg-white/10">
<img src="/images/tevada/LINE_ALBUM_รั้วเทวดา_260522_1.jpg" alt="รั้วเทวดา" class="w-full" loading="eager" />
</div>
@@ -51,7 +51,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<p class="text-primary-100 text-lg mb-6">ระบบรั้วสำเร็จรูปคุณภาพสูง ราคาคุ้มค่า เหมาะสำหรับโรงงาน โกดัง สถานที่เกษตร และอื่นๆ พร้อมบริการติดตั้งครบวงจรโดยทีมงานมืออาชีพ</p>
<div class="flex flex-wrap gap-4">
<a href="/contact-us" class="bg-accent-500 hover:bg-accent-600 text-white py-3 px-6 rounded-xl font-semibold">สอบถามราคา</a>
<a href="https://line.me/ti/p/~JPPSELECTION" target="_blank" rel="noopener" class="bg-white/10 hover:bg-white/20 text-white py-3 px-6 rounded-xl font-semibold border border-white/30 flex items-center gap-2">
<a href="https://line.me/ti/p/~JPPSELECTION" target="_blank" rel="noopener" class="bg-white/10 hover:bg-white/20 text-white py-3 px-6 rounded-xl font-semibold border border-white/30 flex items-start gap-2">
<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>
แชท LINE
</a>
@@ -161,22 +161,22 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
</div>
<div class="grid md:grid-cols-4 gap-6">
<div class="relative bg-white rounded-xl p-6 shadow-sm text-center border border-neutral-200">
<div class="w-12 h-12 bg-primary-600 text-white rounded-full flex items-center justify-center text-xl font-bold mx-auto mb-3">1</div>
<div class="w-12 h-12 bg-primary-600 text-white rounded-full flex items-start justify-center text-xl font-bold mx-auto mb-3">1</div>
<h4 class="font-semibold text-neutral-900 mb-1">วัดพื้นที่</h4>
<p class="text-sm text-neutral-600">วัดขนาดพื้นที่ที่ต้องการติดตั้งรั้ว</p>
</div>
<div class="relative bg-white rounded-xl p-6 shadow-sm text-center border border-neutral-200">
<div class="w-12 h-12 bg-primary-600 text-white rounded-full flex items-center justify-center text-xl font-bold mx-auto mb-3">2</div>
<div class="w-12 h-12 bg-primary-600 text-white rounded-full flex items-start justify-center text-xl font-bold mx-auto mb-3">2</div>
<h4 class="font-semibold text-neutral-900 mb-1">ปักเสา</h4>
<p class="text-sm text-neutral-600">ปักเสาเหล็กตามระยะที่กำหนด</p>
</div>
<div class="relative bg-white rounded-xl p-6 shadow-sm text-center border border-neutral-200">
<div class="w-12 h-12 bg-primary-600 text-white rounded-full flex items-center justify-center text-xl font-bold mx-auto mb-3">3</div>
<div class="w-12 h-12 bg-primary-600 text-white rounded-full flex items-start justify-center text-xl font-bold mx-auto mb-3">3</div>
<h4 class="font-semibold text-neutral-900 mb-1">ติดตั้งแผ่นรั้ว</h4>
<p class="text-sm text-neutral-600">ยึดแผ่นรั้วเข้ากับเสา</p>
</div>
<div class="relative bg-white rounded-xl p-6 shadow-sm text-center border border-neutral-200">
<div class="w-12 h-12 bg-primary-600 text-white rounded-full flex items-center justify-center text-xl font-bold mx-auto mb-3">4</div>
<div class="w-12 h-12 bg-primary-600 text-white rounded-full flex items-start justify-center text-xl font-bold mx-auto mb-3">4</div>
<h4 class="font-semibold text-neutral-900 mb-1">ตรวจสอบ</h4>
<p class="text-sm text-neutral-600">ตรวจสอบความเรียบร้อยและความแข็งแรง</p>
</div>
@@ -193,7 +193,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
</div>
<div class="space-y-4">
<details class="group bg-white rounded-xl shadow-sm">
<summary class="flex items-center justify-between p-5 cursor-pointer hover:bg-neutral-50">
<summary class="flex items-start justify-between p-5 cursor-pointer hover:bg-neutral-50">
<span class="font-medium text-neutral-900">รั้วเทวดาใช้เวลาติดตั้งนานแค่ไหน?</span>
<span class="ml-4 flex-shrink-0 text-primary-600 group-open:rotate-180 transition-transform">
<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="M19 9l-7 7-7-7"/></svg>
@@ -202,7 +202,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<div class="px-5 pb-5 text-neutral-600">สำหรับพื้นที่ 100 ตารางเมตร ใช้เวลาติดตั้งประมาณ 1-2 วัน ขึ้นอยู่กับสภาพพื้นที่</div>
</details>
<details class="group bg-white rounded-xl shadow-sm">
<summary class="flex items-center justify-between p-5 cursor-pointer hover:bg-neutral-50">
<summary class="flex items-start justify-between p-5 cursor-pointer hover:bg-neutral-50">
<span class="font-medium text-neutral-900">อายุการใช้งานของรั้วเทวดาเท่าไหร่?</span>
<span class="ml-4 flex-shrink-0 text-primary-600 group-open:rotate-180 transition-transform">
<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="M19 9l-7 7-7-7"/></svg>
@@ -211,7 +211,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<div class="px-5 pb-5 text-neutral-600">รั้วเทวดามีอายุการใช้งานประมาณ 15-20 ปี ขึ้นอยู่กับสภาพแวดล้อมและการดูแลรักษา</div>
</details>
<details class="group bg-white rounded-xl shadow-sm">
<summary class="flex items-center justify-between p-5 cursor-pointer hover:bg-neutral-50">
<summary class="flex items-start justify-between p-5 cursor-pointer hover:bg-neutral-50">
<span class="font-medium text-neutral-900">สามารถสั่งตัดขนาดพิเศษได้หรือไม่?</span>
<span class="ml-4 flex-shrink-0 text-primary-600 group-open:rotate-180 transition-transform">
<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="M19 9l-7 7-7-7"/></svg>
@@ -220,7 +220,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<div class="px-5 pb-5 text-neutral-600">ใช่ สามารถสั่งตัดขนาดตามความต้องการของลูกค้าได้ ราคาจะปรับตามขนาดที่สั่งทำ</div>
</details>
<details class="group bg-white rounded-xl shadow-sm">
<summary class="flex items-center justify-between p-5 cursor-pointer hover:bg-neutral-50">
<summary class="flex items-start justify-between p-5 cursor-pointer hover:bg-neutral-50">
<span class="font-medium text-neutral-900">มีบริการติดตั้งให้หรือไม่?</span>
<span class="ml-4 flex-shrink-0 text-primary-600 group-open:rotate-180 transition-transform">
<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="M19 9l-7 7-7-7"/></svg>
@@ -239,7 +239,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<p class="text-lg text-white/80 mb-8">ติดต่อทีมงานของเราวันนี้เพื่อรับใบเสนอราคาและคำแนะนำจากผู้เชี่ยวชาญ</p>
<div class="flex flex-wrap justify-center gap-4">
<a href="/contact-us" class="bg-white text-primary-700 py-3 px-8 rounded-xl font-semibold hover:bg-primary-50">ติดต่อสอบถาม</a>
<a href="https://line.me/ti/p/~JPPSELECTION" target="_blank" rel="noopener" class="bg-white/10 hover:bg-white/20 text-white py-3 px-8 rounded-xl font-semibold border border-white/30 flex items-center gap-2">
<a href="https://line.me/ti/p/~JPPSELECTION" target="_blank" rel="noopener" class="bg-white/10 hover:bg-white/20 text-white py-3 px-8 rounded-xl font-semibold border border-white/30 flex items-start gap-2">
<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>
แชท LINE
</a>