import { Badge } from '@/components/systaliko-ui/shadcn/badge';
import {
CardHoverReveal,
CardHoverRevealContent,
CardHoverRevealMain,
} from '@/components/systaliko-ui/cards/card-hover-reveal';
import {
ScrollXCarousel,
ScrollXCarouselContainer,
ScrollXCarouselProgress,
ScrollXCarouselWrap,
} from '@/components/systaliko-ui/scroll-animations/scroll-x-carousel';
const SLIDES = [
{
id: 'slide-6',
title: 'UI UX design',
description:
'We build a car rental platform for the masses, with a focus on user experience and security, and data privacy.',
services: ['branding', 'design'],
type: 'Agency',
imageUrl:
'https://images.unsplash.com/photo-1688733720228-4f7a18681c4f?q=80&w=2487&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
},
{
id: 'slide-2',
title: 'Blockchain wallet',
description:
'We build a Blockchain wallet for the masses, with a focus on security and usability.',
services: ['branding', 'design', 'development'],
type: 'blockchain',
imageUrl:
'https://images.unsplash.com/photo-1624996752380-8ec242e0f85d?q=80&w=2487&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
},
{
id: 'slide-3',
title: 'ecommerce store',
description:
'We build an ecommerce store for the masses, with a focus on performance and user experience.',
services: ['branding', 'design', 'payment getaway', 'development'],
type: 'ecommerce',
imageUrl:
'https://images.unsplash.com/photo-1574717025058-2f8737d2e2b7?q=80&w=2487&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
},
{
id: 'slide-1',
title: 'SaaS platform',
description:
'We build a SaaS platform for the masses, with a focus on user experience and security, and data privacy.',
services: ['branding', 'design', 'development'],
type: 'SaaS',
imageUrl:
'https://images.unsplash.com/photo-1654618977232-a6c6dea9d1e8?q=80&w=2486&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
},
{
id: 'slide-4',
title: 'SEO Optimization',
description:
'We build a SaaS platform for the masses, with a focus on user experience and security, and data privacy.',
services: ['branding', 'design', 'development'],
type: 'SaaS',
imageUrl:
'https://images.unsplash.com/photo-1726066012698-bb7a3abce786?q=80&w=2487&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
},
];
export function ScrollXCarouselDemo() {
return (
<ScrollXCarousel className="h-[150vh]">
<ScrollXCarouselContainer className="h-dvh place-content-center flex flex-col gap-8 py-12">
<ScrollXCarouselWrap className="flex-4/5 flex space-x-8 [&>*:first-child]:ml-8">
{SLIDES.map((slide) => (
<CardHoverReveal
key={slide.id}
className="min-w-[70vw] md:min-w-[38vw] shadow-xl border xl:min-w-[30vw] rounded-xl"
>
<CardHoverRevealMain>
<img
alt={slide.title}
src={slide.imageUrl}
className="size-full aspect-square object-cover"
/>
</CardHoverRevealMain>
<CardHoverRevealContent className="space-y-4 rounded-2xl bg-[rgba(0,0,0,.5)] backdrop-blur-3xl p-4">
<div className="space-y-2">
<h3 className="text-sm text-white/80">Type</h3>
<div className="flex flex-wrap gap-2">
<Badge className="capitalize rounded-full">
{slide.type}
</Badge>
</div>
</div>
<div className="space-y-2">
<h3 className="text-sm text-white/80">Services</h3>
<div className="flex flex-wrap gap-2">
{slide.services.map((service) => (
<Badge
key={service}
className="capitalize rounded-full"
variant={'secondary'}
>
{service}
</Badge>
))}
</div>
</div>
<div className="space-y-2 mt-2">
<h3 className="text-white capitalize font-medium">
{slide.title}
</h3>
<p className="text-white/80 text-sm">{slide.description}</p>
</div>
</CardHoverRevealContent>
</CardHoverReveal>
))}
</ScrollXCarouselWrap>
<ScrollXCarouselProgress
className="bg-secondary mx-8 h-1 rounded-full overflow-hidden"
progressStyle="size-full bg-primary/70 rounded-full"
/>
</ScrollXCarouselContainer>
</ScrollXCarousel>
);
}