Merge version_6_1780570949438 into main #5
86
src/components/sections/HomePage/sections/HeroNew.tsx
Normal file
86
src/components/sections/HomePage/sections/HeroNew.tsx
Normal file
@@ -0,0 +1,86 @@
|
||||
"use client";
|
||||
|
||||
import Button from "@/components/ui/Button";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import { Leaf, Sun, Cloud } from "lucide-react";
|
||||
|
||||
export default function HeroNewSection() {
|
||||
return (
|
||||
<section
|
||||
id="home"
|
||||
data-webild-section="HeroNewSection"
|
||||
className="relative flex flex-col items-center justify-center min-h-svh bg-background overflow-hidden"
|
||||
>
|
||||
{/* Decorative blur orb */}
|
||||
<div className="absolute -z-10 w-96 h-96 rounded-full bg-primary-cta/20 blur-3xl top-1/4 left-1/4 animate-pulse" />
|
||||
<div className="absolute -z-10 w-80 h-80 rounded-full bg-accent/20 blur-3xl bottom-1/4 right-1/4 animate-pulse" style={{ animationDelay: "500ms" }} />
|
||||
|
||||
<div className="relative z-10 max-w-content-width mx-auto px-6 flex flex-col items-center text-center gap-8">
|
||||
<div className="flex flex-col items-center gap-4">
|
||||
<TextAnimation
|
||||
text="Transform Your Outdoor Space"
|
||||
variant="slide-up"
|
||||
gradientText={true}
|
||||
tag="h1"
|
||||
className="text-6xl md:text-7xl lg:text-8xl font-bold tracking-tight leading-tight"
|
||||
/>
|
||||
<TextAnimation
|
||||
text="GreenScape Landscaping brings your vision to life with expert design, installation, and maintenance services."
|
||||
variant="slide-up"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="text-lg md:text-xl text-muted-foreground max-w-content-width"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-wrap justify-center gap-4 mt-4">
|
||||
<Button
|
||||
text="Explore Services"
|
||||
href="#services"
|
||||
variant="primary"
|
||||
animate={true}
|
||||
animationDelay={0.3}
|
||||
/>
|
||||
<Button
|
||||
text="Get a Free Quote"
|
||||
href="#contact"
|
||||
variant="secondary"
|
||||
animate={true}
|
||||
animationDelay={0.4}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="relative w-full max-w-content-width aspect-video rounded-xl overflow-hidden shadow-lg border border-border/50 animation-container mt-8">
|
||||
<ImageOrVideo
|
||||
imageSrc="https://picsum.photos/seed/1431317374/1200/800"
|
||||
className="object-cover w-full h-full"
|
||||
/>
|
||||
</div>
|
||||
|
||||
{/* Floating Cards */}
|
||||
<div className="absolute inset-0 pointer-events-none overflow-hidden z-20">
|
||||
<div
|
||||
className="absolute top-[20%] left-[5%] md:left-[15%] p-4 card rounded-lg shadow-xl border border-border/50 backdrop-blur-md bg-card/80 pointer-events-auto hover:-translate-y-2 transition-transform duration-300 animate-float"
|
||||
>
|
||||
<Leaf className="size-8 text-accent" />
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="absolute top-[40%] right-[5%] md:right-[15%] p-4 card rounded-lg shadow-xl border border-border/50 backdrop-blur-md bg-card/80 pointer-events-auto hover:-translate-y-2 transition-transform duration-300 animate-float"
|
||||
style={{ animationDelay: "1s" }}
|
||||
>
|
||||
<Sun className="size-8 text-yellow-500" />
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="absolute bottom-[20%] left-[15%] md:left-[25%] p-4 card rounded-lg shadow-xl border border-border/50 backdrop-blur-md bg-card/80 pointer-events-auto hover:-translate-y-2 transition-transform duration-300 animate-float"
|
||||
style={{ animationDelay: "2s" }}
|
||||
>
|
||||
<Cloud className="size-8 text-blue-400" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user