Merge version_6_1777388492759 into main #4
84
src/components/sections/other/TeamPets.tsx
Normal file
84
src/components/sections/other/TeamPets.tsx
Normal file
@@ -0,0 +1,84 @@
|
||||
import Card from "@/components/ui/Card";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ScrollReveal from "@/components/ui/ScrollReveal";
|
||||
|
||||
type Pet = {
|
||||
name: string;
|
||||
imageSrc: string;
|
||||
};
|
||||
|
||||
type TeamPetsProps = {
|
||||
tag?: string;
|
||||
title?: string;
|
||||
description?: string;
|
||||
pets?: Pet[];
|
||||
};
|
||||
|
||||
const defaultPets: Pet[] = [
|
||||
{
|
||||
name: "Barnaby",
|
||||
imageSrc: "https://images.unsplash.com/photo-1583511655857-d19b40a7a54e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w4Mzc5ODl8MHwxfHNlYXJjaHwxfHxkb2d8ZW58MXwwfHx8MTc3NzM4NDkyMXww&ixlib=rb-4.1.0&q=80&w=1080",
|
||||
},
|
||||
{
|
||||
name: "Luna",
|
||||
imageSrc: "https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w4Mzc5ODl8MHwxfHNlYXJjaHwxfHxjYXR8ZW58MXwwfHx8MTc3NzM4NDkyMnww&ixlib=rb-4.1.0&q=80&w=1080",
|
||||
},
|
||||
{
|
||||
name: "Cooper",
|
||||
imageSrc: "https://images.unsplash.com/photo-1552053831-71594a27632d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w4Mzc5ODl8MHwxfHNlYXJjaHwyfHxkb2d8ZW58MXwwfHx8MTc3NzM4NDkyM3ww&ixlib=rb-4.1.0&q=80&w=1080",
|
||||
},
|
||||
{
|
||||
name: "Milo",
|
||||
imageSrc: "https://images.unsplash.com/photo-1573865526739-10659fec78a5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w4Mzc5ODl8MHwxfHNlYXJjaHwyfHxjYXR8ZW58MXwwfHx8MTc3NzM4NDkyNHww&ixlib=rb-4.1.0&q=80&w=1080",
|
||||
}
|
||||
];
|
||||
|
||||
export default function TeamPets({
|
||||
tag = "Our Companions",
|
||||
title = "Meet the Team Pets",
|
||||
description = "The furry friends that keep our bakery running with joy and tail wags.",
|
||||
pets = defaultPets
|
||||
}: TeamPetsProps) {
|
||||
return (
|
||||
<section aria-label="Team Pets section" className="py-20">
|
||||
<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>
|
||||
|
||||
<TextAnimation
|
||||
text={title}
|
||||
variant="fade-blur"
|
||||
gradientText={true}
|
||||
tag="h2"
|
||||
className="text-6xl font-medium text-center text-balance"
|
||||
/>
|
||||
|
||||
<TextAnimation
|
||||
text={description}
|
||||
variant="fade-blur"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="md:max-w-6/10 text-lg leading-tight text-center"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<ScrollReveal variant="slide-up">
|
||||
<div className="flex flex-col md:flex-row justify-center items-center pt-8 md:pl-8">
|
||||
{pets.map((pet, index) => (
|
||||
<Card
|
||||
key={pet.name}
|
||||
className={`flex flex-col items-center p-4 w-64 -mt-8 md:mt-0 md:-ml-8 first:mt-0 md:first:ml-0 hover:-translate-y-2 transition-transform ${index % 2 === 0 ? 'rotate-1' : '-rotate-1'} shadow-xl`}
|
||||
>
|
||||
<div className="w-full aspect-square rounded overflow-hidden mb-4">
|
||||
<ImageOrVideo imageSrc={pet.imageSrc} className="w-full h-full object-cover" />
|
||||
</div>
|
||||
<h3 className="text-xl font-medium">{pet.name}</h3>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import HeroBrand from '@/components/sections/hero/HeroBrand';
|
||||
import MetricsSimpleCards from '@/components/sections/metrics/MetricsSimpleCards';
|
||||
import ProductVariantCards from '@/components/sections/product/ProductVariantCards';
|
||||
import TestimonialOverlayCards from '@/components/sections/testimonial/TestimonialOverlayCards';
|
||||
import TeamPets from '@/components/sections/other/TeamPets';
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
@@ -145,7 +146,7 @@ export default function HomePage() {
|
||||
{
|
||||
title: "Traditional Methods",
|
||||
description: "Long fermentation times create superior flavor and digestibility.",
|
||||
avatarSrc: "https://images.unsplash.com/photo-1737700089482-e6ce492f712f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w4Mzc5ODl8MHwxfHNlYXJjaHwzfHxmcmVuY2gl2MHBhc3RyeSUyMGJyZWFrZmFzdHxlbnwxfDB8fHwxNzc3Mzg0OTI4fDA&ixlib=rb-4.1.0&q=80&w=1080",
|
||||
avatarSrc: "https://images.unsplash.com/photo-1737700089482-e6ce492f712f?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w4Mzc5ODl8MHwxfHNlYXJjaHwzfHxmcmVuY2glMjBwYXN0cnklMjBicmVha2Zhc3R8ZW58MXwwfHx8MTc3NzM4NDkyOHww&ixlib=rb-4.1.0&q=80&w=1080",
|
||||
buttonText: "See Methods",
|
||||
imageSrc: "https://images.unsplash.com/photo-1605345746984-8ade72b44e00?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w4Mzc5ODl8MHwxfHNlYXJjaHw1Mnx8ZnJlc2glMjBjcm9pc3NhbnRzJTIwc2VsZWN0aW9uJTIwYnV0dGVyeXxlbnwxfDB8fHwxNzc3Mzg0OTI4fDA&ixlib=rb-4.1.0&q=80&w=1080",
|
||||
},
|
||||
@@ -233,6 +234,10 @@ export default function HomePage() {
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xrpk5b"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="other" data-section="other">
|
||||
<TeamPets />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user