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

@@ -39,7 +39,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
</svg>
</div>
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
<div class="grid lg:grid-cols-2 gap-12 items-center">
<div class="grid lg:grid-cols-2 gap-12 items-start">
<div class="order-2 lg:order-1">
<div class="rounded-2xl overflow-hidden">
<img src="/images/products-cropped/water-pump_000C.jpg" alt="ปั๊มน้ำ (Water Pump)" class="w-full h-auto rounded-xl" width="600" height="400" loading="eager" />
@@ -52,36 +52,36 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
จำหน่ายปั๊มน้ำ (Water Pump) คุณภาพสูง ราคาโรงงาน ส่งฟรี กรุงเทพมหานคร และปริมณฑล
</p>
<div class="flex flex-wrap gap-4 mb-8">
<a href="https://line.me/ti/p/~JPPSELECTION" target="_blank" class="bg-accent-500 hover:bg-accent-600 text-white py-3 px-6 rounded-xl font-semibold flex items-center gap-2">
<a href="https://line.me/ti/p/~JPPSELECTION" target="_blank" class="bg-accent-500 hover:bg-accent-600 text-white py-3 px-6 rounded-xl font-semibold flex items-start gap-2">
<span>แชท Line</span>
<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>
</a>
<a href="tel:0905551415" class="bg-white text-primary-700 hover:bg-primary-50 py-3 px-6 rounded-xl font-semibold flex items-center gap-2">
<a href="tel:0905551415" class="bg-white text-primary-700 hover:bg-primary-50 py-3 px-6 rounded-xl font-semibold flex items-start gap-2">
<span>090-555-1415</span>
<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>
</a>
<a href="#pricelist" data-price-button class="hidden bg-white text-primary-700 hover:bg-primary-50 py-3 px-6 rounded-xl font-semibold flex items-center gap-2">
<a href="#pricelist" data-price-button class="hidden bg-white text-primary-700 hover:bg-primary-50 py-3 px-6 rounded-xl font-semibold flex items-start gap-2">
<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="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
</svg>
<span>ราคาสินค้า</span>
</a>
</div><div class="flex flex-wrap gap-6">
<div class="flex items-center gap-2 text-white/80">
<div class="flex items-start gap-2 text-white/80">
<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="M5 13l4 4L19 7" />
</svg>
<span>คุณภาพสูง มาตรฐานอุตสาหกรรม</span>
</div>
<div class="flex items-center gap-2 text-white/80">
<div class="flex items-start gap-2 text-white/80">
<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="M5 13l4 4L19 7" />
</svg>
<span>ราคาโรงงาน คุ้มค่า</span>
</div>
<div class="flex items-center gap-2 text-white/80">
<div class="flex items-start gap-2 text-white/80">
<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="M5 13l4 4L19 7" />
</svg>
@@ -184,7 +184,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<h2 class="text-2xl font-bold text-primary-700 mb-8 text-center">วิธีเลือกปั๊มน้ำให้เหมาะกับการใช้งาน</h2>
<div class="space-y-6">
<div class="flex gap-4">
<div class="flex-shrink-0 w-12 h-12 bg-primary-100 rounded-full flex items-center justify-center">
<div class="flex-shrink-0 w-12 h-12 bg-primary-100 rounded-full flex items-start justify-center">
<span class="text-primary-600 font-bold">1</span>
</div>
<div>
@@ -193,7 +193,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
</div>
</div>
<div class="flex gap-4">
<div class="flex-shrink-0 w-12 h-12 bg-primary-100 rounded-full flex items-center justify-center">
<div class="flex-shrink-0 w-12 h-12 bg-primary-100 rounded-full flex items-start justify-center">
<span class="text-primary-600 font-bold">2</span>
</div>
<div>
@@ -202,7 +202,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
</div>
</div>
<div class="flex gap-4">
<div class="flex-shrink-0 w-12 h-12 bg-primary-100 rounded-full flex items-center justify-center">
<div class="flex-shrink-0 w-12 h-12 bg-primary-100 rounded-full flex items-start justify-center">
<span class="text-primary-600 font-bold">3</span>
</div>
<div>
@@ -219,7 +219,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
</div>
</div>
<div class="flex gap-4">
<div class="flex-shrink-0 w-12 h-12 bg-primary-100 rounded-full flex items-center justify-center">
<div class="flex-shrink-0 w-12 h-12 bg-primary-100 rounded-full flex items-start justify-center">
<span class="text-primary-600 font-bold">4</span>
</div>
<div>
@@ -239,7 +239,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<h2 class="text-2xl font-bold text-primary-700 mb-8 text-center">ข้อแนะนำการติดตั้งและบำรุงรักษา</h2>
<div class="grid md:grid-cols-3 gap-6">
<div class="bg-white p-6 rounded-xl shadow-sm">
<div class="w-10 h-10 bg-accent-100 rounded-lg flex items-center justify-center mb-4">
<div class="w-10 h-10 bg-accent-100 rounded-lg flex items-start justify-center mb-4">
<svg class="w-5 h-5 text-accent-500" 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" />
@@ -249,7 +249,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<p class="text-neutral-600 text-sm leading-relaxed">ติดตั้งในที่ร่ม อากาศถ่ายเทสะดวก ห่างจากแหล่งความร้อน สูงจากพื้นอย่างน้อย 30 ซม. เพื่อป้องกันน้ำท่วมและฝุ่น</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm">
<div class="w-10 h-10 bg-accent-100 rounded-lg flex items-center justify-center mb-4">
<div class="w-10 h-10 bg-accent-100 rounded-lg flex items-start justify-center mb-4">
<svg class="w-5 h-5 text-accent-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.414 1.414.586 3.414-1.414 3.414H12" />
</svg>
@@ -258,7 +258,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<p class="text-neutral-600 text-sm leading-relaxed">ก่อนเปิดใช้งานครั้งแรก หรือหลังจากน้ำในระบบหมด ต้องเติมน้ำในท่อดูดและตัวปั๊มให้เต็มก่อน เพื่อป้องกันการวิ่งแห้ง (Dry Run)</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm">
<div class="w-10 h-10 bg-accent-100 rounded-lg flex items-center justify-center mb-4">
<div class="w-10 h-10 bg-accent-100 rounded-lg flex items-start justify-center mb-4">
<svg class="w-5 h-5 text-accent-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
@@ -283,7 +283,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
<div class="space-y-4">
<div class="border border-neutral-200 rounded-lg overflow-hidden">
<details class="group">
<summary class="flex justify-between items-center p-4 bg-neutral-50 cursor-pointer list-none">
<summary class="flex justify-between items-start p-4 bg-neutral-50 cursor-pointer list-none">
<span class="font-semibold text-neutral-800">ปั๊มน้ำมีกี่ประเภทและแต่ละประเภทเหมาะกับการใช้งานอะไร?</span>
<span class="transition group-open:rotate-180">
<svg fill="none" height="24" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24" width="24"><path d="M6 9l6 6 6-6"></path></svg>
@@ -296,7 +296,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
</div>
<div class="border border-neutral-200 rounded-lg overflow-hidden">
<details class="group">
<summary class="flex justify-between items-center p-4 bg-neutral-50 cursor-pointer list-none">
<summary class="flex justify-between items-start p-4 bg-neutral-50 cursor-pointer list-none">
<span class="font-semibold text-neutral-800">เลือกซื้อปั๊มน้ำอย่างไรให้เหมาะกับการใช้งาน?</span>
<span class="transition group-open:rotate-180">
<svg fill="none" height="24" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24" width="24"><path d="M6 9l6 6 6-6"></path></svg>
@@ -309,7 +309,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
</div>
<div class="border border-neutral-200 rounded-lg overflow-hidden">
<details class="group">
<summary class="flex justify-between items-center p-4 bg-neutral-50 cursor-pointer list-none">
<summary class="flex justify-between items-start p-4 bg-neutral-50 cursor-pointer list-none">
<span class="font-semibold text-neutral-800">การติดตั้งปั๊มน้ำต้องดูอะไรบ้าง?</span>
<span class="transition group-open:rotate-180">
<svg fill="none" height="24" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" viewBox="0 0 24 24" width="24"><path d="M6 9l6 6 6-6"></path></svg>
@@ -333,11 +333,11 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
ติดต่อเราวันนี้เพื่อรับคำแนะนำและราคาพิเศษ
</p>
<div class="flex flex-wrap justify-center gap-4">
<a href="https://line.me/ti/p/~JPPSELECTION" target="_blank" rel="noopener" class="flex items-center gap-2 bg-white text-primary-700 px-6 py-3 rounded-xl font-semibold hover:bg-primary-50 transition-colors">
<a href="https://line.me/ti/p/~JPPSELECTION" target="_blank" rel="noopener" class="flex items-start gap-2 bg-white text-primary-700 px-6 py-3 rounded-xl font-semibold hover:bg-primary-50 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>
แชท
</a>
<a href="tel:0905551415" class="flex items-center gap-2 bg-white/10 hover:bg-white/20 text-white px-6 py-3 rounded-xl font-semibold border border-white/30 transition-colors">
<a href="tel:0905551415" class="flex items-start gap-2 bg-white/10 hover:bg-white/20 text-white px-6 py-3 rounded-xl font-semibold border border-white/30 transition-colors">
โทร 090-555-1415
</a>
</div>