import { Card } from '@/components/systaliko-ui/cards/card';
import { CardSticky, CardsStackContainer } from '@/components/systaliko-ui/cards/cards-stack';
const ACHIEVEMENTS = [
{
id: 'achivement-1',
title: '4',
description: 'site of the day',
bg: 'bg-indigo-500',
},
{
id: 'achivement-2',
title: '60+',
description: 'website created',
bg: 'bg-emerald-500',
},
{
id: 'achivement-3',
title: '5+',
description: 'years of experience',
bg: 'bg-pink-500',
},
{
id: 'achivement-4',
title: '6+',
description: 'component created',
bg: 'bg-purple-500',
},
];
export function CardsStackAchievementsDemo() {
return (
<CardsStackContainer className="min-h-[400vh] place-items-center space-y-8 p-12 text-center ">
{ACHIEVEMENTS.map((achievement, index) => (
<CardSticky
key={achievement.id}
incrementY={20}
index={index + 2}
style={{ rotate: index + 2 }}
>
<Card
className={`flex ${achievement.bg} text-white h-72 w-[420px] flex-col place-content-center justify-evenly p-8 `}
>
<h1 className="text-left text-6xl font-semibold opacity-80">
{achievement.title}
</h1>
<div className="place-items-end text-right">
<h3 className="max-w-[10ch] text-wrap text-4xl font-semibold capitalize tracking-tight">
{achievement.description}
</h3>
</div>
</Card>
</CardSticky>
))}
</CardsStackContainer>
);
}