Compare commits
12 Commits
version_7_
...
version_13
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dce6ba68d8 | ||
| f87b5cc1dc | |||
|
|
2def7734a1 | ||
| 92b9d3f91a | |||
|
|
ecb83a4563 | ||
| 788c6cf1dd | |||
|
|
95d4e2f94a | ||
| 7cb5d6c993 | |||
|
|
1d814c336f | ||
| 54809f1a61 | |||
|
|
8bda279544 | ||
| 875c4a6115 |
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;
|
||||||
@@ -54,7 +54,7 @@ const AboutFeaturesSplit = ({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col md:flex-row md:items-stretch gap-5">
|
<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-white/10 backdrop-blur-lg border border-white/20">
|
||||||
{items.map((item, index) => {
|
{items.map((item, index) => {
|
||||||
const ItemIcon = resolveIcon(item.icon);
|
const ItemIcon = resolveIcon(item.icon);
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -16,7 +16,11 @@ const ContactCta = ({
|
|||||||
return (
|
return (
|
||||||
<section aria-label="Contact section" className="py-20">
|
<section aria-label="Contact section" className="py-20">
|
||||||
<div className="w-content-width mx-auto">
|
<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">
|
<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>
|
<span className="card rounded px-3 py-1 text-sm">{tag}</span>
|
||||||
|
|
||||||
|
|||||||
@@ -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,36 +43,51 @@ 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-20 md:pb-20">
|
||||||
<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 md:flex-row justify-between items-end gap-3 w-full">
|
||||||
<span className="w-fit px-3 py-1 mb-1 text-sm card rounded">{tag}</span>
|
<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
|
<TextAnimation
|
||||||
text={title}
|
text={title}
|
||||||
variant="fade"
|
variant="fade"
|
||||||
gradientText={true}
|
gradientText={true}
|
||||||
tag="h1"
|
tag="h1"
|
||||||
className="text-7xl 2xl:text-8xl font-medium text-primary-cta-text text-balance"
|
className="text-7xl 2xl:text-8xl font-medium text-primary-cta-text text-balance"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextAnimation
|
<TextAnimation
|
||||||
text={description}
|
text={description}
|
||||||
variant="fade"
|
variant="fade"
|
||||||
gradientText={false}
|
gradientText={false}
|
||||||
tag="p"
|
tag="p"
|
||||||
className="text-lg md:text-xl text-primary-cta-text leading-tight text-balance"
|
className="text-lg md:text-xl text-primary-cta-text leading-tight text-balance"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="flex flex-wrap gap-3 mt-3">
|
<div className="flex flex-wrap gap-3 mt-3">
|
||||||
<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
|
||||||
</div>
|
text={secondaryButton.text}
|
||||||
|
href={secondaryButton.href}
|
||||||
{avatars && avatars.length > 0 && (
|
variant="secondary"
|
||||||
<div className="mt-4">
|
animationDelay={0.1}
|
||||||
<AvatarGroup avatars={avatars} size="lg" label={avatarsLabel} labelClassName="text-primary-cta-text" />
|
/>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user