Compare commits
6 Commits
version_2_
...
version_5_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fae7e7d26 | ||
| ebdbfe95c9 | |||
|
|
9dc8496763 | ||
| f058cdfd5e | |||
|
|
7127d0a712 | ||
| 31c616f52b |
@@ -4,6 +4,7 @@ import TextAnimation from "@/components/ui/TextAnimation";
|
|||||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||||
import ScrollReveal from "@/components/ui/ScrollReveal";
|
import ScrollReveal from "@/components/ui/ScrollReveal";
|
||||||
import AvatarGroup from "@/components/ui/AvatarGroup";
|
import AvatarGroup from "@/components/ui/AvatarGroup";
|
||||||
|
import { Clock, ShieldCheck, DollarSign } from "lucide-react";
|
||||||
|
|
||||||
type HeroBillboardProps = {
|
type HeroBillboardProps = {
|
||||||
tag?: string;
|
tag?: string;
|
||||||
@@ -26,6 +27,24 @@ const HeroBillboard = ({
|
|||||||
imageSrc,
|
imageSrc,
|
||||||
videoSrc,
|
videoSrc,
|
||||||
}: HeroBillboardProps) => {
|
}: HeroBillboardProps) => {
|
||||||
|
const usps = [
|
||||||
|
{
|
||||||
|
icon: Clock,
|
||||||
|
title: "24/7 Service",
|
||||||
|
description: "Always available for emergency repairs.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: ShieldCheck,
|
||||||
|
title: "Certified Technicians",
|
||||||
|
description: "Expertise you can trust for every job.",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: DollarSign,
|
||||||
|
title: "Transparent Pricing",
|
||||||
|
description: "No hidden fees, just honest quotes.",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section aria-label="Hero section" className="relative pt-25 pb-20 md:py-30 mb-20">
|
<section aria-label="Hero section" className="relative pt-25 pb-20 md:py-30 mb-20">
|
||||||
<HeroBackgroundSlot />
|
<HeroBackgroundSlot />
|
||||||
@@ -59,8 +78,25 @@ const HeroBillboard = ({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ScrollReveal variant="fade-blur" delay={0.2} className="w-full p-3 xl:p-4 2xl:p-5 card rounded overflow-hidden">
|
<ScrollReveal variant="fade-blur" delay={0.2} className="relative w-full p-3 xl:p-4 2xl:p-5 card rounded overflow-hidden">
|
||||||
<ImageOrVideo imageSrc={imageSrc} videoSrc={videoSrc} className="aspect-4/5 md:aspect-video" />
|
<ImageOrVideo imageSrc={imageSrc} videoSrc={videoSrc} className="aspect-4/5 md:aspect-video" />
|
||||||
|
<div className="absolute inset-0 flex justify-center items-center">
|
||||||
|
{usps.map((usp, index) => (
|
||||||
|
<div
|
||||||
|
key={index}
|
||||||
|
className={`absolute bg-white/10 backdrop-blur-lg rounded-lg p-4 flex flex-col items-center justify-center text-center text-white border border-white/20
|
||||||
|
${index === 0 ? 'bottom-4 left-4' : ''}
|
||||||
|
${index === 1 ? 'top-4' : ''}
|
||||||
|
${index === 2 ? 'bottom-4 right-4' : ''}
|
||||||
|
`}
|
||||||
|
style={{ width: '200px', height: '150px' }}
|
||||||
|
>
|
||||||
|
<usp.icon className="w-8 h-8 mb-2" />
|
||||||
|
<h3 className="font-semibold text-lg">{usp.title}</h3>
|
||||||
|
<p className="text-sm">{usp.description}</p>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
</ScrollReveal>
|
</ScrollReveal>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -36,6 +36,11 @@ const HeroOverlay = ({
|
|||||||
videoSrc={videoSrc}
|
videoSrc={videoSrc}
|
||||||
className="absolute inset-0 w-full h-full object-cover rounded-none"
|
className="absolute inset-0 w-full h-full object-cover rounded-none"
|
||||||
/>
|
/>
|
||||||
|
<div className="absolute z-10 bottom-1/4 left-1/2 -translate-x-1/2 grid grid-cols-1 md:grid-cols-3 gap-4 p-4 w-full max-w-4xl">
|
||||||
|
{uspData.map((usp, index) => (
|
||||||
|
<GlassMorphicCard key={index} title={usp.title} description={usp.description} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className="absolute z-10 w-[150vw] h-[150vw] left-0 bottom-0 -translate-x-1/2 translate-y-1/2 backdrop-blur mask-[radial-gradient(circle,black_20%,transparent_70%)]"
|
className="absolute z-10 w-[150vw] h-[150vw] left-0 bottom-0 -translate-x-1/2 translate-y-1/2 backdrop-blur mask-[radial-gradient(circle,black_20%,transparent_70%)]"
|
||||||
@@ -43,11 +48,7 @@ const HeroOverlay = ({
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="relative z-10 w-content-width mx-auto pb-10 md:pb-25">
|
<div className="relative z-10 w-content-width mx-auto pb-10 md:pb-25">
|
||||||
<div className="absolute bottom-20 right-0 grid grid-cols-1 md:grid-cols-3 gap-4 p-4">
|
|
||||||
{uspData.map((usp, index) => (
|
|
||||||
<GlassMorphicCard key={index} title={usp.title} description={usp.description} />
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
<div className="flex flex-col gap-3 w-full md:w-6/10 lg:w-1/2 xl:w-45/100 2xl:w-4/10">
|
<div className="flex flex-col gap-3 w-full md:w-6/10 lg:w-1/2 xl:w-45/100 2xl:w-4/10">
|
||||||
<span className="w-fit px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
|
<span className="w-fit px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user