Bob AI: [SECTION ADD OPERATION]
You must create a COMPLETELY NEW sec
This commit is contained in:
62
src/components/sections/team/TeamPets.tsx
Normal file
62
src/components/sections/team/TeamPets.tsx
Normal file
@@ -0,0 +1,62 @@
|
||||
import Card from "@/components/ui/Card";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
|
||||
type Pet = {
|
||||
name: string;
|
||||
description: string;
|
||||
imageSrc: string;
|
||||
};
|
||||
|
||||
type TeamPetsProps = {
|
||||
tag?: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
pets: Pet[];
|
||||
};
|
||||
|
||||
const TeamPets = ({ tag, title, description, pets }: 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">
|
||||
{tag && <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"
|
||||
/>
|
||||
|
||||
{description && (
|
||||
<TextAnimation
|
||||
text={description}
|
||||
variant="fade-blur"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="md:max-w-6/10 text-lg leading-tight text-center"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
{pets.map((pet) => (
|
||||
<Card key={pet.name} className="relative transition-all duration-200 hover:-translate-y-1 flex flex-col gap-4 p-3 xl:p-4 2xl:p-5">
|
||||
<div className="w-full h-64 rounded overflow-hidden">
|
||||
<ImageOrVideo imageSrc={pet.imageSrc} className="w-full h-full object-cover" />
|
||||
</div>
|
||||
<div className="flex flex-col gap-1">
|
||||
<h3 className="text-2xl font-medium">{pet.name}</h3>
|
||||
<p className="text-base leading-tight">{pet.description}</p>
|
||||
</div>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default TeamPets;
|
||||
@@ -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/team/TeamPets';
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
@@ -233,6 +234,11 @@ export default function HomePage() {
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=xrpk5b"
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
|
||||
|
||||
<div id="team" data-section="team">
|
||||
<TeamPets />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user