Compare commits
28 Commits
version_7_
...
version_21
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40cad254a0 | ||
| c499eb3691 | |||
|
|
960495577a | ||
| eea0ea4704 | |||
|
|
0f1c441597 | ||
| 15d1cab14b | |||
|
|
bcbc79f4b7 | ||
| ad98cc1d99 | |||
|
|
595ae5f56c | ||
| 6648ab8d89 | |||
|
|
74df44500f | ||
| d6a4924d7c | |||
|
|
743e9fdbf6 | ||
| ee65977fb0 | |||
|
|
4aa2a57150 | ||
| 8113fd7d7d | |||
|
|
dce6ba68d8 | ||
| f87b5cc1dc | |||
|
|
2def7734a1 | ||
| 92b9d3f91a | |||
|
|
ecb83a4563 | ||
| 788c6cf1dd | |||
|
|
95d4e2f94a | ||
| 7cb5d6c993 | |||
|
|
1d814c336f | ||
| 54809f1a61 | |||
|
|
8bda279544 | ||
| 875c4a6115 |
15
src/components/custom/AnimatedBackground.tsx
Normal file
15
src/components/custom/AnimatedBackground.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
|
||||
const AnimatedBackground = () => {
|
||||
return (
|
||||
<div className="absolute inset-0 z-0 overflow-hidden">
|
||||
<div className="absolute inset-0 bg-gradient-to-br from-background-light via-background to-background-dark" />
|
||||
<div className="absolute inset-0 animate-pulse-slow">
|
||||
<div className="absolute top-1/4 left-1/4 w-96 h-96 bg-primary/10 rounded-full filter blur-3xl opacity-50" />
|
||||
<div className="absolute bottom-1/4 right-1/4 w-96 h-96 bg-secondary/10 rounded-full filter blur-3xl opacity-50" />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default AnimatedBackground;
|
||||
11
src/components/custom/TestimonialCard.css
Normal file
11
src/components/custom/TestimonialCard.css
Normal file
@@ -0,0 +1,11 @@
|
||||
.testimonial-card {
|
||||
transition: opacity 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
.fade-in {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.fade-out {
|
||||
opacity: 0;
|
||||
}
|
||||
52
src/components/custom/TestimonialCard.tsx
Normal file
52
src/components/custom/TestimonialCard.tsx
Normal file
@@ -0,0 +1,52 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import './TestimonialCard.css';
|
||||
|
||||
const testimonials = [
|
||||
{
|
||||
quote: "Their team transformed our yard into a paradise. So professional and creative!",
|
||||
author: "Alex & Jamie R.",
|
||||
avatar: "https://randomuser.me/api/portraits/women/44.jpg",
|
||||
},
|
||||
{
|
||||
quote: "Incredible attention to detail. Our garden has never looked better. Highly recommend!",
|
||||
author: "Casey L.",
|
||||
avatar: "https://randomuser.me/api/portraits/men/32.jpg",
|
||||
},
|
||||
{
|
||||
quote: "The best landscaping service in town. They exceeded all our expectations.",
|
||||
author: "Jordan P.",
|
||||
avatar: "https://randomuser.me/api/portraits/women/65.jpg",
|
||||
},
|
||||
];
|
||||
|
||||
const TestimonialCard = () => {
|
||||
const [index, setIndex] = useState(0);
|
||||
const [visible, setVisible] = useState(true);
|
||||
|
||||
useEffect(() => {
|
||||
const timer = setInterval(() => {
|
||||
setVisible(false);
|
||||
setTimeout(() => {
|
||||
setIndex((prevIndex) => (prevIndex + 1) % testimonials.length);
|
||||
setVisible(true);
|
||||
}, 500); // CSS transition duration
|
||||
}, 3000);
|
||||
return () => clearInterval(timer);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="z-20">
|
||||
<div className={`testimonial-card ${visible ? 'fade-in' : 'fade-out'}`}>
|
||||
<div className="bg-white/80 backdrop-blur-sm rounded-lg p-4 max-w-sm shadow-lg">
|
||||
<p className="text-gray-800 italic">"{testimonials[index].quote}"</p>
|
||||
<div className="flex items-center mt-3">
|
||||
<img src={testimonials[index].avatar} alt={testimonials[index].author} className="w-10 h-10 rounded-full mr-3" />
|
||||
<p className="text-gray-900 font-semibold">{testimonials[index].author}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default TestimonialCard;
|
||||
@@ -1,3 +1,4 @@
|
||||
import AnimatedBackground from "@/components/custom/AnimatedBackground";
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
import Button from "@/components/ui/Button";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
@@ -24,7 +25,8 @@ const AboutFeaturesSplit = ({
|
||||
videoSrc,
|
||||
}: AboutFeaturesSplitProps) => {
|
||||
return (
|
||||
<section aria-label="About section" className="py-20">
|
||||
<section aria-label="About section" className="py-20 relative">
|
||||
<AnimatedBackground />
|
||||
<div className="flex flex-col gap-8 mx-auto w-content-width">
|
||||
<div className="flex flex-col items-center gap-2">
|
||||
<span className="px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
|
||||
@@ -54,7 +56,7 @@ const AboutFeaturesSplit = ({
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col md:flex-row md:items-stretch gap-5">
|
||||
<div className="flex flex-col justify-center gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5 w-full md:w-4/10 2xl:w-3/10 card rounded">
|
||||
<div className="flex flex-col justify-center gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5 w-full md:w-4/10 2xl:w-3/10 card rounded bg-transparent backdrop-blur-lg border border-white/20">
|
||||
{items.map((item, index) => {
|
||||
const ItemIcon = resolveIcon(item.icon);
|
||||
return (
|
||||
@@ -74,7 +76,7 @@ const AboutFeaturesSplit = ({
|
||||
})}
|
||||
</div>
|
||||
|
||||
<div className="p-3 xl:p-4 2xl:p-5 w-full md:w-6/10 2xl:w-7/10 h-80 md:h-auto card rounded overflow-hidden">
|
||||
<div className="p-3 xl:p-4 2xl:p-5 w-full md:w-6/10 2xl:w-7/10 h-80 md:h-auto card rounded overflow-hidden bg-transparent">
|
||||
<div className="relative size-full">
|
||||
<ImageOrVideo imageSrc={imageSrc} videoSrc={videoSrc} className="absolute inset-0 object-cover rounded" />
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,11 @@ const ContactCta = ({
|
||||
return (
|
||||
<section aria-label="Contact section" className="py-20">
|
||||
<div className="w-content-width mx-auto">
|
||||
<ScrollReveal variant="slide-up" className="flex items-center justify-center py-20 px-5 md:px-10 card rounded">
|
||||
<ScrollReveal variant="slide-up" className="relative overflow-hidden flex items-center justify-center py-20 px-5 md:px-10 card rounded">
|
||||
<div
|
||||
className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[800px] h-[800px] -z-10 bg-[radial-gradient(closest-side,theme(colors.background/0.5),transparent)]"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
<div className="w-full md:w-3/4 flex flex-col items-center gap-3">
|
||||
<span className="card rounded px-3 py-1 text-sm">{tag}</span>
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import Button from "@/components/ui/Button";
|
||||
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import TestimonialCard from "@/components/custom/TestimonialCard";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import AvatarGroup from "@/components/ui/AvatarGroup";
|
||||
|
||||
@@ -42,36 +43,51 @@ const HeroOverlay = ({
|
||||
aria-hidden="true"
|
||||
/>
|
||||
|
||||
<div className="relative z-10 w-content-width mx-auto pb-10 md:pb-25">
|
||||
<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>
|
||||
<div className="relative z-10 w-content-width mx-auto pb-20 md:pb-20">
|
||||
<div className="flex flex-col md:flex-row justify-between items-end gap-3 w-full">
|
||||
<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>
|
||||
|
||||
<TextAnimation
|
||||
text={title}
|
||||
variant="fade"
|
||||
gradientText={true}
|
||||
tag="h1"
|
||||
className="text-7xl 2xl:text-8xl font-medium text-primary-cta-text text-balance"
|
||||
/>
|
||||
<TextAnimation
|
||||
text={title}
|
||||
variant="fade"
|
||||
gradientText={true}
|
||||
tag="h1"
|
||||
className="text-7xl 2xl:text-8xl font-medium text-primary-cta-text text-balance"
|
||||
/>
|
||||
|
||||
<TextAnimation
|
||||
text={description}
|
||||
variant="fade"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="text-lg md:text-xl text-primary-cta-text leading-tight text-balance"
|
||||
/>
|
||||
<TextAnimation
|
||||
text={description}
|
||||
variant="fade"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="text-lg md:text-xl text-primary-cta-text leading-tight text-balance"
|
||||
/>
|
||||
|
||||
<div className="flex flex-wrap gap-3 mt-3">
|
||||
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
|
||||
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} />
|
||||
</div>
|
||||
|
||||
{avatars && avatars.length > 0 && (
|
||||
<div className="mt-4">
|
||||
<AvatarGroup avatars={avatars} size="lg" label={avatarsLabel} labelClassName="text-primary-cta-text" />
|
||||
<div className="flex flex-wrap gap-3 mt-3">
|
||||
<Button text={primaryButton.text} href={primaryButton.href} variant="primary" />
|
||||
<Button
|
||||
text={secondaryButton.text}
|
||||
href={secondaryButton.href}
|
||||
variant="secondary"
|
||||
animationDelay={0.1}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{avatars && avatars.length > 0 && (
|
||||
<div className="mt-4">
|
||||
<AvatarGroup
|
||||
avatars={avatars}
|
||||
size="lg"
|
||||
label={avatarsLabel}
|
||||
labelClassName="text-primary-cta-text"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="w-full md:w-auto">
|
||||
<TestimonialCard />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -93,7 +93,7 @@ const NavbarCentered = ({ logo, navItems, ctaButton }: NavbarCenteredProps) => {
|
||||
<div
|
||||
ref={menuRef}
|
||||
|
||||
className="md:hidden fixed z-1000 top-3 left-3 right-3 p-6 rounded-lg card"
|
||||
className="md:hidden fixed z-1000 top-3 left-3 right-3 p-6 rounded-lg bg-background/80 backdrop-blur-sm"
|
||||
>
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<p className="text-xl text-foreground">Menu</p>
|
||||
|
||||
@@ -32,16 +32,14 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
|
||||
return (
|
||||
<>
|
||||
|
||||
{menuOpen && (
|
||||
<div
|
||||
className="fixed inset-0 z-999 bg-foreground"
|
||||
onClick={() => setMenuOpen(false)}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
|
||||
<nav className="fixed z-1000 top-5 left-1/2 -translate-x-1/2 w-content-width">
|
||||
<div className="mx-auto w-full md:w-1/2 overflow-hidden rounded-theme-capped border border-white/10 bg-white/10 backdrop-blur-lg shadow-lg">
|
||||
<div className={cls(
|
||||
"mx-auto w-full md:w-1/2 overflow-hidden rounded-theme-capped border border-white/10 bg-white/10 shadow-lg",
|
||||
menuOpen ? "backdrop-blur-lg" : "backdrop-blur-lg"
|
||||
)}>
|
||||
<div className="relative z-10 flex items-center justify-between gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5">
|
||||
<a href="/" className="text-xl font-medium text-foreground">{logo}</a>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
--background-accent: #6bbfb8;
|
||||
|
||||
/* @layout/border-radius/rounded */
|
||||
--radius: 1rem;
|
||||
--radius: 1.5rem;
|
||||
|
||||
/* @layout/content-width/medium */
|
||||
--width-content-width: clamp(40rem, 72.5vw, 100rem);
|
||||
|
||||
@@ -2,8 +2,8 @@ import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit';
|
||||
import ContactCta from '@/components/sections/contact/ContactCta';
|
||||
import FeaturesRevealCards from '@/components/sections/features/FeaturesRevealCards';
|
||||
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
|
||||
import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards';
|
||||
import ProductMediaCards from '@/components/sections/product/ProductMediaCards';
|
||||
import MetricsGradientCards from '@/components/sections/metrics/MetricsGradientCards';
|
||||
import FeaturesDetailedSteps from '@/components/sections/features/FeaturesDetailedSteps';
|
||||
import TestimonialTrustCard from '@/components/sections/testimonial/TestimonialTrustCard';
|
||||
import { Leaf, ShieldCheck, Sparkles } from "lucide-react";
|
||||
|
||||
@@ -50,6 +50,10 @@ export default function HomePage() {
|
||||
},
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/people-making-notes-about-flower_23-2147768470.jpg"
|
||||
primaryButton={{
|
||||
text: "Learn More",
|
||||
href: "#",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -84,77 +88,63 @@ export default function HomePage() {
|
||||
</div>
|
||||
|
||||
<div id="portfolio" data-section="portfolio">
|
||||
<ProductMediaCards
|
||||
tag="Our Portfolio"
|
||||
title="Inspired Outdoor Creations"
|
||||
description="Explore a gallery of our completed projects, showcasing diverse styles and innovative designs. See the quality and artistry we bring to every landscape."
|
||||
products={[
|
||||
{
|
||||
name: "Backyard Oasis",
|
||||
price: "Luxury Residential",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/suburban-housing_53876-14307.jpg",
|
||||
},
|
||||
{
|
||||
name: "Modern Frontage",
|
||||
price: "Curb Appeal Boost",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/plants-pot-with-watering-can_23-2148905227.jpg",
|
||||
},
|
||||
{
|
||||
name: "Urban Rooftop Garden",
|
||||
price: "Cityscape Green",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/artists-garden-filled-with-variety-plants-beautiful-flowers_1258-296326.jpg",
|
||||
},
|
||||
{
|
||||
name: "Tranquil Water Feature",
|
||||
price: "Natural & Serene",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/still-life-with-gardening-concept_23-2148127956.jpg",
|
||||
},
|
||||
{
|
||||
name: "Commercial Grounds",
|
||||
price: "Business Park",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/city-square_1359-1040.jpg",
|
||||
},
|
||||
{
|
||||
name: "Custom Pergola & Patio",
|
||||
price: "Outdoor Living",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/empty-pavilion-garden_1339-3182.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
<FeaturesDetailedSteps
|
||||
tag="Our Process"
|
||||
title="From Vision to Reality"
|
||||
description="Our systematic approach ensures every project is a seamless and rewarding experience for our clients. We handle every detail with precision and care."
|
||||
steps={[
|
||||
{
|
||||
tag: "Step 1",
|
||||
title: "Consultation",
|
||||
subtitle: "Understanding Your Vision",
|
||||
description: "We start with a thorough consultation to understand your needs, preferences, and the unique characteristics of your property. This allows us to create a tailored plan that aligns with your goals and budget.",
|
||||
imageSrc: "https://images.unsplash.com/photo-1585345322958-15e8342b6c49?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
|
||||
},
|
||||
{
|
||||
tag: "Step 2",
|
||||
title: "Design",
|
||||
subtitle: "Crafting the Blueprint",
|
||||
description: "Our design team creates a detailed landscape plan, incorporating your ideas into a beautiful and functional design. We use 3D renderings to help you visualize the final outcome before we break ground.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/greenhouse-with-flowers_1398-4315.jpg",
|
||||
},
|
||||
{
|
||||
tag: "Step 3",
|
||||
title: "Installation",
|
||||
subtitle: "Bringing the Design to Life",
|
||||
description: "Our skilled professionals execute the plan with meticulous attention to detail. We use high-quality materials and proven techniques to ensure a flawless installation that stands the test of time.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/gardener-woman-holding-flower-pot_1157-25532.jpg",
|
||||
},
|
||||
{
|
||||
tag: "Step 4",
|
||||
title: "Maintenance",
|
||||
subtitle: "Ensuring Lasting Beauty",
|
||||
description: "We offer comprehensive maintenance services to keep your new landscape looking its best. From seasonal care to ongoing upkeep, we ensure your outdoor space continues to thrive and bring you joy.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/gardener-checking-his-plants_23-2147656308.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="metrics" data-section="metrics">
|
||||
<MetricsFeatureCards
|
||||
<MetricsGradientCards
|
||||
tag="Our Impact"
|
||||
title="Proven Excellence in Landscaping"
|
||||
description="Our commitment to quality and customer satisfaction is reflected in our achievements and long-lasting client relationships."
|
||||
metrics={[
|
||||
{
|
||||
value: "15+",
|
||||
title: "Years of Experience",
|
||||
features: [
|
||||
"Local industry leaders",
|
||||
"Skilled & certified team",
|
||||
"Reliable service delivery",
|
||||
],
|
||||
label: "Years of Experience",
|
||||
description: "Local industry leaders, skilled & certified team, reliable service delivery.",
|
||||
},
|
||||
{
|
||||
value: "500+",
|
||||
title: "Projects Completed",
|
||||
features: [
|
||||
"Residential & commercial",
|
||||
"Diverse design styles",
|
||||
"On-time & on-budget",
|
||||
],
|
||||
label: "Projects Completed",
|
||||
description: "Residential & commercial, diverse design styles, on-time & on-budget.",
|
||||
},
|
||||
{
|
||||
value: "98%",
|
||||
title: "Customer Satisfaction",
|
||||
features: [
|
||||
"Glowing testimonials",
|
||||
"Repeat clientele",
|
||||
"Dedicated support",
|
||||
],
|
||||
label: "Customer Satisfaction",
|
||||
description: "Glowing testimonials, repeat clientele, and dedicated support.",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -212,3 +212,18 @@
|
||||
77% { opacity: 0.05; }
|
||||
88% { opacity: 0; }
|
||||
}
|
||||
|
||||
@keyframes pulse-slow {
|
||||
0%, 100% {
|
||||
transform: scale(1);
|
||||
opacity: 0.5;
|
||||
}
|
||||
50% {
|
||||
transform: scale(1.1);
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
.animate-pulse-slow {
|
||||
animation: pulse-slow 8s infinite ease-in-out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user