Update hero section and add highlight products (PPR, Grilles, Thermobreak)

This commit is contained in:
Kunthawat Greethong
2026-02-27 09:20:37 +07:00
parent dccfce8186
commit a9e3c81fce

View File

@@ -8,131 +8,114 @@ export default function HomePage() {
return (
<>
{/* Hero Section */}
<section className="relative h-[80vh] min-h-[600px] bg-secondary-900">
<div className="absolute inset-0 bg-gradient-to-r from-secondary-900 via-secondary-900/80 to-secondary-900/40 z-10" />
<section className="relative h-[70vh] min-h-[500px] bg-secondary-900">
<div className="absolute inset-0 bg-gradient-to-r from-secondary-900 via-secondary-900/90 to-secondary-900/60 z-10" />
<Image
src="/images/2021/03/ppr-pipe_000C.jpg"
alt="ท่อพีพีอาร์คุณภาพสูง"
fill
className="object-cover opacity-60"
className="object-cover opacity-50"
priority
/>
<div className="relative z-20 container mx-auto px-4 h-full flex items-center">
<div className="max-w-2xl">
<span className="inline-block px-4 py-2 bg-primary-600 text-white font-semibold mb-4">
<span className="inline-block px-4 py-2 bg-primary-600 text-white font-semibold mb-4 rounded">
HVAC
</span>
<h1 className="text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-6">
<span className="text-primary-400"></span>
<h1 className="text-4xl md:text-5xl lg:text-6xl font-bold text-white mb-6 leading-tight">
HVAC
<span className="text-primary-400 block"></span>
</h1>
<p className="text-xl text-secondary-200 mb-8">
{siteConfig.description}
<p className="text-lg md:text-xl text-secondary-200 mb-8">
PPR, HDPE, ,
</p>
<div className="flex flex-wrap gap-4">
<Link href="/product" className="btn-primary">
</Link>
<Link href="/contact-us" className="btn-outline border-white text-white hover:bg-white hover:text-secondary-900">
</Link>
</div>
</div>
</div>
</section>
{/* Features Section */}
<section className="py-16 bg-secondary-800">
<div className="container mx-auto px-4">
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
<div className="text-center p-6">
<div className="w-16 h-16 bg-primary-600 rounded-lg flex items-center justify-center mx-auto mb-4">
<svg className="w-8 h-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z" />
</svg>
</div>
<h3 className="text-xl font-bold text-white mb-2"></h3>
<p className="text-secondary-300">
</p>
</div>
<div className="text-center p-6">
<div className="w-16 h-16 bg-primary-600 rounded-lg flex items-center justify-center mx-auto mb-4">
<svg className="w-8 h-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
</div>
<h3 className="text-xl font-bold text-white mb-2"></h3>
<p className="text-secondary-300">
</p>
</div>
<div className="text-center p-6">
<div className="w-16 h-16 bg-primary-600 rounded-lg flex items-center justify-center mx-auto mb-4">
<svg className="w-8 h-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z" />
</svg>
</div>
<h3 className="text-xl font-bold text-white mb-2"></h3>
<p className="text-secondary-300">
</p>
</div>
</div>
</div>
</section>
{/* Featured Products Section */}
<section className="py-16">
{/* Highlight Products Section */}
<section className="py-16 bg-secondary-50">
<div className="container mx-auto px-4">
<div className="text-center mb-12">
<h2 className="section-title">
<h2 className="text-3xl md:text-4xl font-bold text-secondary-900 mb-4">
<span className="text-primary-600"></span>
</h2>
<p className="section-subtitle">
</p>
<p className="text-secondary-600 text-lg"></p>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
{featuredProducts.map((product) => (
<Link
key={product.id}
href={product.href}
className="card group"
>
<div className="relative aspect-video bg-secondary-100">
<Image
src={product.image}
alt={product.name}
fill
className="object-cover group-hover:scale-105 transition-transform duration-300"
/>
<div className="absolute top-4 left-4">
<span className="industrial-badge">{product.nameEn}</span>
</div>
</div>
<div className="p-6">
<h3 className="text-xl font-bold text-secondary-900 mb-2 group-hover:text-primary-600 transition-colors">
{product.name}
</h3>
<p className="text-secondary-600 text-sm mb-4">
{product.shortDescription || product.description.slice(0, 100) + '...'}
</p>
<span className="text-primary-600 font-semibold flex items-center gap-2">
<svg className="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 5l7 7-7 7" />
</svg>
</span>
</div>
</Link>
))}
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
{/* PPR Pipe */}
<Link href="/ท่อพีพีอาร์ตราช้าง" className="group relative overflow-hidden rounded-2xl aspect-[4/5] bg-secondary-900">
<Image
src="/images/2021/03/ppr-pipe_000C.jpg"
alt="ท่อ PPR ตราช้าง"
fill
className="object-cover group-hover:scale-110 transition-transform duration-500"
/>
<div className="absolute inset-0 bg-gradient-to-t from-secondary-900 via-secondary-900/40 to-transparent" />
<div className="absolute bottom-0 left-0 right-0 p-6">
<span className="inline-block px-3 py-1 bg-primary-600 text-white text-sm font-semibold rounded mb-3"> | Pipe</span>
<h3 className="text-2xl font-bold text-white mb-2"> PPR </h3>
<p className="text-secondary-200 text-sm mb-4"> SCG DIN 8077/8078 20 50+ </p>
<span className="inline-flex items-center gap-2 text-primary-400 font-semibold group-hover:text-primary-300 transition-colors">
<svg className="w-4 h-4 group-hover:translate-x-2 transition-transform" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 8l4 4m0 0l-4 4m4-4H3" />
</svg>
</span>
</div>
</Link>
<div className="text-center mt-12">
<Link href="/product" className="btn-secondary">
{/* Grilles / Air Diffuser */}
<Link href="/หัวจ่ายลม-กริล" className="group relative overflow-hidden rounded-2xl aspect-[4/5] bg-secondary-900">
<Image
src="/images/2021/03/grilles_000C.jpg"
alt="กริลแอร์พลาสติก"
fill
className="object-cover group-hover:scale-110 transition-transform duration-500"
/>
<div className="absolute inset-0 bg-gradient-to-t from-secondary-900 via-secondary-900/40 to-transparent" />
<div className="absolute bottom-0 left-0 right-0 p-6">
<span className="inline-block px-3 py-1 bg-primary-600 text-white text-sm font-semibold rounded mb-3"></span>
<h3 className="text-2xl font-bold text-white mb-2"></h3>
<p className="text-secondary-200 text-sm mb-4"> Ball Jet </p>
<span className="inline-flex items-center gap-2 text-primary-400 font-semibold group-hover:text-primary-300 transition-colors">
<svg className="w-4 h-4 group-hover:translate-x-2 transition-transform" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 8l4 4m0 0l-4 4m4-4H3" />
</svg>
</span>
</div>
</Link>
{/* Thermobreak */}
<Link href="/เทอร์โมเบรค-thermobreak" className="group relative overflow-hidden rounded-2xl aspect-[4/5] bg-secondary-900">
<Image
src="/images/2021/02/foot01.jpg"
alt="เทอร์โมเบรค Thermobreak"
fill
className="object-cover group-hover:scale-110 transition-transform duration-500"
/>
<div className="absolute inset-0 bg-gradient-to-t from-secondary-900 via-secondary-900/40 to-transparent" />
<div className="absolute bottom-0 left-0 right-0 p-6">
<span className="inline-block px-3 py-1 bg-primary-600 text-white text-sm font-semibold rounded mb-3"></span>
<h3 className="text-2xl font-bold text-white mb-2"></h3>
<p className="text-secondary-200 text-sm mb-4"> Polyolefin Foam FM/UL HVAC </p>
<span className="inline-flex items-center gap-2 text-primary-400 font-semibold group-hover:text-primary-300 transition-colors">
<svg className="w-4 h-4 group-hover:translate-x-2 transition-transform" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17 8l4 4m0 0l-4 4m4-4H3" />
</svg>
</span>
</div>
</Link>
</div>
</div>