Compare commits
15 Commits
version_1_
...
version_8_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8bda279544 | ||
| 875c4a6115 | |||
|
|
084dcc1788 | ||
| 066c84c190 | |||
|
|
d8fa3e48f1 | ||
| cf389533c8 | |||
|
|
7e255227fa | ||
| ee6aac1882 | |||
|
|
3cf6ff5510 | ||
| 4357f91715 | |||
|
|
c8bb978b95 | ||
| 8c3a2fc53a | |||
| f11f9580a4 | |||
| 2b9683dc44 | |||
|
|
fa3a31282b |
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="absolute bottom-10 left-10 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;
|
||||||
@@ -2,6 +2,7 @@ import Button from "@/components/ui/Button";
|
|||||||
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
||||||
import TextAnimation from "@/components/ui/TextAnimation";
|
import TextAnimation from "@/components/ui/TextAnimation";
|
||||||
import TiltedCarousel from "@/components/ui/TiltedCarousel";
|
import TiltedCarousel from "@/components/ui/TiltedCarousel";
|
||||||
|
import { Star } from "lucide-react";
|
||||||
|
|
||||||
type HeroBillboardTiltedCarouselProps = {
|
type HeroBillboardTiltedCarouselProps = {
|
||||||
tag: string;
|
tag: string;
|
||||||
@@ -27,8 +28,6 @@ const HeroBillboardTiltedCarousel = ({
|
|||||||
>
|
>
|
||||||
<HeroBackgroundSlot />
|
<HeroBackgroundSlot />
|
||||||
<div className="flex flex-col items-center gap-2 w-content-width mx-auto text-center">
|
<div className="flex flex-col items-center gap-2 w-content-width mx-auto text-center">
|
||||||
<span className="px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
|
|
||||||
|
|
||||||
<TextAnimation
|
<TextAnimation
|
||||||
text={title}
|
text={title}
|
||||||
variant="fade-blur"
|
variant="fade-blur"
|
||||||
@@ -37,6 +36,22 @@ const HeroBillboardTiltedCarousel = ({
|
|||||||
className="text-6xl font-medium text-balance"
|
className="text-6xl font-medium text-balance"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<div className="flex flex-col items-center gap-2">
|
||||||
|
<div className="flex items-center gap-1">
|
||||||
|
{[...Array(5)].map((_, i) => (
|
||||||
|
<Star key={i} className="w-4 h-4 fill-yellow-400 text-yellow-400" />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
<div className="flex -space-x-2">
|
||||||
|
<img className="inline-block h-8 w-8 rounded-full ring-2 ring-white" src="https://images.unsplash.com/photo-1491528323818-fdd1faba62cc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="" />
|
||||||
|
<img className="inline-block h-8 w-8 rounded-full ring-2 ring-white" src="https://images.unsplash.com/photo-1550525811-e58691053ba4?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="" />
|
||||||
|
<img className="inline-block h-8 w-8 rounded-full ring-2 ring-white" src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="" />
|
||||||
|
<img className="inline-block h-8 w-8 rounded-full ring-2 ring-white" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<span className="px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
|
||||||
|
|
||||||
<TextAnimation
|
<TextAnimation
|
||||||
text={description}
|
text={description}
|
||||||
variant="fade-blur"
|
variant="fade-blur"
|
||||||
@@ -49,6 +64,8 @@ const HeroBillboardTiltedCarousel = ({
|
|||||||
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
|
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
|
||||||
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} />
|
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<TiltedCarousel items={items} />
|
<TiltedCarousel items={items} />
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import Button from "@/components/ui/Button";
|
import Button from "@/components/ui/Button";
|
||||||
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
||||||
import TextAnimation from "@/components/ui/TextAnimation";
|
import TextAnimation from "@/components/ui/TextAnimation";
|
||||||
|
import TestimonialCard from "@/components/custom/TestimonialCard";
|
||||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||||
import AvatarGroup from "@/components/ui/AvatarGroup";
|
import AvatarGroup from "@/components/ui/AvatarGroup";
|
||||||
|
|
||||||
@@ -42,7 +43,7 @@ const HeroOverlay = ({
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<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-40 md:pb-50">
|
||||||
<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>
|
||||||
|
|
||||||
@@ -73,6 +74,7 @@ const HeroOverlay = ({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<TestimonialCard />
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useState, useEffect, useRef } from "react";
|
import { useState, useEffect, useRef } from "react";
|
||||||
import { motion, AnimatePresence } from "motion/react";
|
|
||||||
import { Plus, ArrowRight } from "lucide-react";
|
import { Plus, ArrowRight } from "lucide-react";
|
||||||
import { cls } from "@/lib/utils";
|
import { cls } from "@/lib/utils";
|
||||||
import Button from "@/components/ui/Button";
|
import Button from "@/components/ui/Button";
|
||||||
@@ -51,8 +51,8 @@ const NavbarCentered = ({ logo, navItems, ctaButton }: NavbarCenteredProps) => {
|
|||||||
<>
|
<>
|
||||||
<nav
|
<nav
|
||||||
className={cls(
|
className={cls(
|
||||||
"fixed z-1000 top-0 left-0 w-full transition-all duration-500 ease-in-out",
|
"fixed z-1000 top-3 left-3 right-3 transition-all duration-500 ease-in-out",
|
||||||
isScrolled ? "h-15 bg-background/80 backdrop-blur-sm" : "h-20 bg-background/0 backdrop-blur-0"
|
isScrolled ? "h-15 bg-background/80 backdrop-blur-sm rounded-lg" : "h-20 bg-background/0 backdrop-blur-0"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className="relative mx-auto flex items-center justify-between h-full w-content-width">
|
<div className="relative mx-auto flex items-center justify-between h-full w-content-width">
|
||||||
@@ -89,15 +89,11 @@ const NavbarCentered = ({ logo, navItems, ctaButton }: NavbarCenteredProps) => {
|
|||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<AnimatePresence>
|
|
||||||
{menuOpen && (
|
{menuOpen && (
|
||||||
<motion.div
|
<div
|
||||||
ref={menuRef}
|
ref={menuRef}
|
||||||
initial={{ y: "-135%" }}
|
|
||||||
animate={{ y: 0 }}
|
className="md:hidden fixed z-1000 top-3 left-3 right-3 p-6 rounded-lg card"
|
||||||
exit={{ y: "-135%" }}
|
|
||||||
transition={{ type: "spring", damping: 26, stiffness: 170 }}
|
|
||||||
className="md:hidden fixed z-1000 top-3 left-3 right-3 p-6 rounded card"
|
|
||||||
>
|
>
|
||||||
<div className="flex items-center justify-between mb-6">
|
<div className="flex items-center justify-between mb-6">
|
||||||
<p className="text-xl text-foreground">Menu</p>
|
<p className="text-xl text-foreground">Menu</p>
|
||||||
@@ -131,9 +127,8 @@ const NavbarCentered = ({ logo, navItems, ctaButton }: NavbarCenteredProps) => {
|
|||||||
<div className="mt-6">
|
<div className="mt-6">
|
||||||
<Button text={ctaButton.text} href={ctaButton.href} variant="primary" animate={false} className="w-full" />
|
<Button text={ctaButton.text} href={ctaButton.href} variant="primary" animate={false} className="w-full" />
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</AnimatePresence>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { useState, useEffect } from "react";
|
import { useState, useEffect } from "react";
|
||||||
import { motion, AnimatePresence } from "motion/react";
|
|
||||||
import { Plus, ArrowUpRight } from "lucide-react";
|
import { Plus, ArrowUpRight } from "lucide-react";
|
||||||
import { cls } from "@/lib/utils";
|
import { cls } from "@/lib/utils";
|
||||||
import Button from "@/components/ui/Button";
|
import Button from "@/components/ui/Button";
|
||||||
@@ -32,21 +31,17 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<AnimatePresence>
|
|
||||||
{menuOpen && (
|
{menuOpen && (
|
||||||
<motion.div
|
<div
|
||||||
initial={{ opacity: 0 }}
|
|
||||||
animate={{ opacity: 0.15 }}
|
|
||||||
exit={{ opacity: 0 }}
|
|
||||||
transition={{ duration: 0.4 }}
|
|
||||||
className="fixed inset-0 z-999 bg-foreground"
|
className="fixed inset-0 z-999 bg-foreground"
|
||||||
onClick={() => setMenuOpen(false)}
|
onClick={() => setMenuOpen(false)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</AnimatePresence>
|
|
||||||
|
|
||||||
<nav className="fixed z-1000 top-5 left-1/2 -translate-x-1/2 w-content-width">
|
<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 backdrop-blur-sm card">
|
<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="relative z-10 flex items-center justify-between gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5">
|
<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>
|
<a href="/" className="text-xl font-medium text-foreground">{logo}</a>
|
||||||
|
|
||||||
@@ -66,15 +61,9 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<AnimatePresence>
|
|
||||||
{menuOpen && (
|
{menuOpen && (
|
||||||
<motion.div
|
<div className="overflow-hidden">
|
||||||
initial={{ height: 0 }}
|
|
||||||
animate={{ height: "auto" }}
|
|
||||||
exit={{ height: 0 }}
|
|
||||||
transition={{ duration: 0.5, ease: [0.625, 0.05, 0, 1] }}
|
|
||||||
className="overflow-hidden"
|
|
||||||
>
|
|
||||||
<div className="flex flex-col gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5 pt-0 xl:pt-0 2xl:pt-0">
|
<div className="flex flex-col gap-3 xl:gap-4 2xl:gap-5 p-3 xl:p-4 2xl:p-5 pt-0 xl:pt-0 2xl:pt-0">
|
||||||
<div className="px-3 xl:px-4 2xl:px-5 py-0 md:py-1 2xl:py-2 rounded card">
|
<div className="px-3 xl:px-4 2xl:px-5 py-0 md:py-1 2xl:py-2 rounded card">
|
||||||
{navItems.map((item, index) => (
|
{navItems.map((item, index) => (
|
||||||
@@ -101,9 +90,9 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
|
|||||||
|
|
||||||
<Button text={ctaButton.text} href={ctaButton.href} variant="primary" animate={false} className="w-full" />
|
<Button text={ctaButton.text} href={ctaButton.href} variant="primary" animate={false} className="w-full" />
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</AnimatePresence>
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit';
|
import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit';
|
||||||
import ContactCta from '@/components/sections/contact/ContactCta';
|
import ContactCta from '@/components/sections/contact/ContactCta';
|
||||||
import FeaturesRevealCards from '@/components/sections/features/FeaturesRevealCards';
|
import FeaturesRevealCards from '@/components/sections/features/FeaturesRevealCards';
|
||||||
import HeroBillboardTiltedCarousel from '@/components/sections/hero/HeroBillboardTiltedCarousel';
|
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
|
||||||
import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards';
|
import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards';
|
||||||
import ProductMediaCards from '@/components/sections/product/ProductMediaCards';
|
import ProductMediaCards from '@/components/sections/product/ProductMediaCards';
|
||||||
import TestimonialTrustCard from '@/components/sections/testimonial/TestimonialTrustCard';
|
import TestimonialTrustCard from '@/components/sections/testimonial/TestimonialTrustCard';
|
||||||
@@ -11,7 +11,7 @@ export default function HomePage() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div id="hero" data-section="hero">
|
<div id="hero" data-section="hero">
|
||||||
<HeroBillboardTiltedCarousel
|
<HeroOverlay
|
||||||
tag="Your Outdoor Oasis Awaits"
|
tag="Your Outdoor Oasis Awaits"
|
||||||
title="Transforming Landscapes, Enhancing Lives"
|
title="Transforming Landscapes, Enhancing Lives"
|
||||||
description="From lush gardens to perfectly manicured lawns, we craft stunning outdoor spaces tailored to your vision. Experience nature's beauty with expert care."
|
description="From lush gardens to perfectly manicured lawns, we craft stunning outdoor spaces tailored to your vision. Experience nature's beauty with expert care."
|
||||||
@@ -23,26 +23,7 @@ export default function HomePage() {
|
|||||||
text: "View Portfolio",
|
text: "View Portfolio",
|
||||||
href: "#portfolio",
|
href: "#portfolio",
|
||||||
}}
|
}}
|
||||||
items={[
|
imageSrc="http://img.b2bpic.net/free-photo/pool-hammocks_1203-141.jpg"
|
||||||
{
|
|
||||||
imageSrc: "http://img.b2bpic.net/free-photo/pool-hammocks_1203-141.jpg",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imageSrc: "http://img.b2bpic.net/free-photo/suburban-housing-garden_53876-30332.jpg",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imageSrc: "http://img.b2bpic.net/free-photo/view-automatic-smart-feeder-household-pets_23-2151482454.jpg",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-working-her-sustainable-greenhouse_23-2149072117.jpg",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imageSrc: "http://img.b2bpic.net/free-photo/seedlings-gardening-tools_23-2147714872.jpg",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
imageSrc: "http://img.b2bpic.net/free-photo/selective-focus-shot-stone-pot-pedestal-park_181624-14166.jpg",
|
|
||||||
},
|
|
||||||
]}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user