MY CAROUSEL2
MY CAROUSEL2
const images = [
{
id: 1,
label: 'img 1',
url: 'https://hbslewdkkgwsaohjyzak.supabase.co/storage/v1/object/public/
newimges/ChatGPT%20Imagasy%205,%202025,%2004_08_30%20AM.webp'
},
{
id: 2,
label: 'img 2',
url: 'https://hbslewdkkgwsaohjyzak.supabase.co/storage/v1/object/public/
newimges/ChatGPT%20Image%20May%205,%202025,%2004_17_23%20AM.webp'
},
{
id: 3,
label: 'img 3',
url: 'https://hbslewdkkgwsaohjyzak.supabase.co/storage/v1/object/public/
newimges/ChatGPT%20Image%20May%205,%202025,%2004_17_23%20AM.webp'
},
{
id: 4,
label: 'img 4',
url: 'https://hbslewdkkgwsaohjyzak.supabase.co/storage/v1/object/public/
newimges/ChatGPT%20Imagasy%205,%202025,%2004_08_30%20AM.webp'
},
{
id: 5,
label: 'img 5',
url: 'https://hbslewdkkgwsaohjyzak.supabase.co/storage/v1/object/public/
newimges/ChatGPT%20Image%20May%205,%202025,%2004_17_23%20AM.webp'
},
];
return (
<div className="w-full flex flex-col items-center justify-center bg-gray-200 p-
8 relative min-h-[400px] select-none">
<div className="relative w-full max-w-6xl">
<button
onClick={() => paginate(-1)}
className="absolute left-0 top-1/2 transform -translate-y-1/2 z-10 text-
3xl font-bold px-4"
>
‹
</button>
<button
onClick={() => paginate(1)}
className="absolute right-0 top-1/2 transform -translate-y-1/2 z-10 text-
3xl font-bold px-4"
>
›
</button>
</div>