Compare commits
4 Commits
version_3_
...
version_5_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fae7e7d26 | ||
| ebdbfe95c9 | |||
|
|
9dc8496763 | ||
| f058cdfd5e |
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user