Compare commits
5 Commits
version_5_
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| e970b6ffc5 | |||
|
|
55a9520e02 | ||
| d156607e01 | |||
|
|
abca0f8f0e | ||
| 583cd2252e |
@@ -1,17 +1,148 @@
|
||||
// Created by add_section_from_catalog (TeamProfileCards).
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body
|
||||
import { BadgeCheck } from "lucide-react";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import GridOrCarousel from "@/components/ui/GridOrCarousel";
|
||||
import Button from "@/components/ui/Button";
|
||||
import ScrollReveal from "@/components/ui/ScrollReveal";
|
||||
import { useButtonClick } from "@/hooks/useButtonClick";
|
||||
|
||||
import React from 'react';
|
||||
import TeamProfileCards from '@/components/sections/team/TeamProfileCards';
|
||||
const items = [
|
||||
{
|
||||
avatarSrc: "https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&q=80&w=256&h=256",
|
||||
buttonText: "LinkedIn",
|
||||
title: "Michael Chen",
|
||||
imageSrc: "https://picsum.photos/seed/731591061/1200/800",
|
||||
description: "10+ years of experience in digital marketing and brand strategy."
|
||||
},
|
||||
{
|
||||
buttonText: "LinkedIn",
|
||||
title: "Sarah Jenkins",
|
||||
imageSrc: "https://picsum.photos/seed/1117886791/1200/800",
|
||||
avatarSrc: "https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80&w=256&h=256",
|
||||
description: "Specializes in SEO, content creation, and organic growth."
|
||||
},
|
||||
{
|
||||
imageSrc: "https://picsum.photos/seed/1228880249/1200/800",
|
||||
buttonText: "LinkedIn",
|
||||
title: "David Rodriguez",
|
||||
avatarSrc: "https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?auto=format&fit=crop&q=80&w=256&h=256",
|
||||
description: "Expert in paid media, analytics, and conversion rate optimization."
|
||||
}
|
||||
];
|
||||
|
||||
export default function TeamSection(): React.JSX.Element {
|
||||
type TeamItem = {
|
||||
title: string;
|
||||
description: string;
|
||||
avatarSrc: string;
|
||||
buttonText: string;
|
||||
buttonHref?: string;
|
||||
buttonOnClick?: () => void;
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
const ProfileCard = ({ item }: { item: TeamItem }) => {
|
||||
const handleClick = useButtonClick(item.buttonHref, item.buttonOnClick);
|
||||
|
||||
return (
|
||||
<div className="group relative overflow-hidden aspect-5/6 rounded">
|
||||
<ImageOrVideo imageSrc={item.imageSrc} videoSrc={item.videoSrc} className="absolute inset-0" />
|
||||
|
||||
<div className="absolute top-4 left-1/2 -translate-x-1/2 xl:top-6 2xl:top-8 z-20 flex gap-2">
|
||||
<a
|
||||
href="#"
|
||||
className="px-3 py-1 text-sm bg-white/20 backdrop-blur-md text-white border border-white/30 rounded cursor-pointer hover:bg-white/30 transition-colors"
|
||||
>
|
||||
LinkedIn
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
className="px-3 py-1 text-sm bg-white/20 backdrop-blur-md text-white border border-white/30 rounded cursor-pointer hover:bg-white/30 transition-colors"
|
||||
>
|
||||
Instagram
|
||||
</a>
|
||||
<a
|
||||
href="#"
|
||||
className="px-3 py-1 text-sm bg-white/20 backdrop-blur-md text-white border border-white/30 rounded cursor-pointer hover:bg-white/30 transition-colors"
|
||||
>
|
||||
X
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div className="absolute -inset-x-px -bottom-px h-2/5 backdrop-blur-xl mask-fade-top-overlay" aria-hidden="true" />
|
||||
|
||||
<div className="absolute inset-x-3 bottom-3 2xl:inset-x-4 2xl:bottom-4 z-10">
|
||||
<div className="relative flex flex-col gap-1 md:gap-0 md:group-hover:gap-1 p-3 2xl:p-4 transition-all duration-400">
|
||||
<div className="absolute inset-0 -z-10 card rounded translate-y-0 opacity-100 md:translate-y-full md:opacity-0 transition-all duration-400 ease-out md:group-hover:translate-y-0 md:group-hover:opacity-100" />
|
||||
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="size-8 shrink-0 overflow-hidden rounded secondary-button">
|
||||
<img src={item.avatarSrc} alt="" className="h-full w-full object-cover" />
|
||||
</div>
|
||||
<h3 className="text-2xl font-semibold leading-snug truncate text-foreground md:text-white transition-colors duration-400 md:group-hover:text-foreground">
|
||||
{item.title}
|
||||
</h3>
|
||||
<BadgeCheck className="size-5 shrink-0 text-foreground md:text-background transition-colors duration-400 md:group-hover:text-foreground" strokeWidth={2} />
|
||||
</div>
|
||||
|
||||
<div className="grid grid-rows-[1fr] md:grid-rows-[0fr] transition-all duration-400 ease-out md:group-hover:grid-rows-[1fr]">
|
||||
<p className="overflow-hidden text-base leading-snug text-foreground opacity-100 md:opacity-0 transition-opacity duration-400 md:group-hover:opacity-100">
|
||||
{item.description}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const TeamInline = () => (
|
||||
<section aria-label="Team section" className="py-20">
|
||||
<div className="flex flex-col gap-8 md:gap-10">
|
||||
<div className="flex flex-col items-center w-content-width mx-auto gap-2">
|
||||
<div className="px-3 py-1 mb-1 text-sm card rounded w-fit">
|
||||
<p>{"Our Team"}</p>
|
||||
</div>
|
||||
|
||||
<TextAnimation
|
||||
text={"The Minds Behind the Magic"}
|
||||
variant="fade"
|
||||
gradientText={true}
|
||||
tag="h2"
|
||||
className="md:max-w-8/10 text-6xl 2xl:text-7xl leading-[1.15] font-semibold text-center text-balance"
|
||||
/>
|
||||
|
||||
<TextAnimation
|
||||
text={"Meet the experts behind our successful campaigns."}
|
||||
variant="fade"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="md:max-w-7/10 text-lg md:text-xl leading-snug text-center text-balance"
|
||||
/>
|
||||
|
||||
{(undefined || undefined) && (
|
||||
<div className="flex flex-wrap justify-center gap-3 mt-2 md:mt-3">
|
||||
{undefined && <Button text={undefined.text} href={undefined.href} variant="primary"/>}
|
||||
{undefined && <Button text={undefined.text} href={undefined.href} variant="secondary"animationDelay={0.1} />}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<ScrollReveal variant="slide-up">
|
||||
<GridOrCarousel>
|
||||
{items.map((item) => (
|
||||
<ProfileCard key={item.title} item={item} />
|
||||
))}
|
||||
</GridOrCarousel>
|
||||
</ScrollReveal>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
export default function TeamSection() {
|
||||
return (
|
||||
<div data-webild-section="team" id="team">
|
||||
<TeamProfileCards
|
||||
title="The Minds Behind the Magic"
|
||||
description="Meet the experts behind our successful campaigns."
|
||||
items={[{"avatarSrc":"https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&q=80&w=256&h=256","buttonText":"LinkedIn","title":"Michael Chen","imageSrc":"https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&q=80&w=800&h=600","description":"10+ years of experience in digital marketing and brand strategy."},{"buttonText":"LinkedIn","title":"Sarah Jenkins","imageSrc":"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80&w=800&h=600","avatarSrc":"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80&w=256&h=256","description":"Specializes in SEO, content creation, and organic growth."},{"imageSrc":"https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?auto=format&fit=crop&q=80&w=800&h=600","buttonText":"LinkedIn","title":"David Rodriguez","avatarSrc":"https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?auto=format&fit=crop&q=80&w=256&h=256","description":"Expert in paid media, analytics, and conversion rate optimization."}]}
|
||||
tag="Our Team"
|
||||
/>
|
||||
<TeamInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user