2024-05-14 16:42:19 +02:00
|
|
|
import { Button } from "../components/ui/button";
|
2024-04-15 16:37:54 +02:00
|
|
|
import {
|
2024-05-14 16:42:19 +02:00
|
|
|
Card,
|
|
|
|
CardContent,
|
|
|
|
CardDescription,
|
|
|
|
CardHeader,
|
|
|
|
CardTitle,
|
|
|
|
} from "../components/ui/card";
|
2024-04-15 16:37:54 +02:00
|
|
|
import {
|
2024-05-14 16:42:19 +02:00
|
|
|
Tabs,
|
|
|
|
TabsContent,
|
|
|
|
TabsList,
|
|
|
|
TabsTrigger,
|
|
|
|
} from "../components/ui/tabs";
|
2024-04-15 16:37:54 +02:00
|
|
|
|
2024-05-14 16:42:19 +02:00
|
|
|
const data = [
|
|
|
|
{
|
2024-04-15 16:37:54 +02:00
|
|
|
value: "thisPage",
|
2024-05-14 16:42:19 +02:00
|
|
|
handle: "Projekt 1",
|
2024-04-15 16:37:54 +02:00
|
|
|
title: "This Page",
|
|
|
|
description: "random text",
|
2024-05-14 16:42:19 +02:00
|
|
|
images: [
|
|
|
|
{ src: "temp.jpg", alt: "text" },
|
|
|
|
{ src: "temp.jpg", alt: "text2" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2024-04-15 16:37:54 +02:00
|
|
|
value: "thatPage",
|
|
|
|
title: "That Page",
|
2024-05-14 16:42:19 +02:00
|
|
|
handle: "Projekt 2",
|
2024-04-15 16:37:54 +02:00
|
|
|
description: "random text",
|
2024-05-14 16:42:19 +02:00
|
|
|
images: [
|
|
|
|
{ src: "temp.jpg", alt: "text" },
|
|
|
|
{ src: "temp.jpg", alt: "text2" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2024-04-15 16:37:54 +02:00
|
|
|
value: "otherPge",
|
|
|
|
title: "Other Page",
|
2024-05-14 16:42:19 +02:00
|
|
|
handle: "Projekt 3",
|
2024-04-15 16:37:54 +02:00
|
|
|
description: "random text",
|
2024-05-14 16:42:19 +02:00
|
|
|
images: [
|
|
|
|
{ src: "temp.jpg", alt: "text" },
|
|
|
|
{ src: "temp.jpg", alt: "text2" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
2024-04-15 16:37:54 +02:00
|
|
|
|
|
|
|
export function ShowcaseTabs() {
|
2024-05-14 16:42:19 +02:00
|
|
|
return (
|
|
|
|
<Tabs
|
|
|
|
defaultValue={data[0].value}
|
|
|
|
className="bottom-0 flex flex-col h-full my-auto"
|
|
|
|
>
|
|
|
|
<TabsList className={`grid w-full mt-4 grid-cols-${data.length}`}>
|
|
|
|
{data.map((item) => (
|
|
|
|
<TabsTrigger value={item.value}>{item.handle}</TabsTrigger>
|
|
|
|
))}
|
|
|
|
</TabsList>
|
|
|
|
{data.map((item) => (
|
|
|
|
<TabsContent value={item.value} className="h-full">
|
|
|
|
<Card className="h-[90%] my-auto">
|
|
|
|
<CardHeader>
|
|
|
|
<CardTitle>{item.title}</CardTitle>
|
|
|
|
<CardDescription>{item.description}</CardDescription>
|
|
|
|
</CardHeader>
|
|
|
|
<CardContent>
|
|
|
|
<img src="/temp.jpg" alt="" />
|
|
|
|
</CardContent>
|
|
|
|
</Card>
|
|
|
|
</TabsContent>
|
|
|
|
))}
|
|
|
|
</Tabs>
|
|
|
|
);
|
2024-04-15 16:37:54 +02:00
|
|
|
}
|