diff --git a/src/App.tsx b/src/App.tsx index 206d144b..61438bd0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -10,6 +10,7 @@ import { Link, Route, Routes, useNavigate, useParams } from "react-router-dom"; import { AskAI } from "@/components/ask-ai"; import { ProjectListItem } from "@/components/ProjectListItem"; import { TimeSince } from "@/components/time-since"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { type ProjectEntry, projectList, projects } from "@/projects"; import { ThemeToggle } from "./components/theme-toggle"; @@ -180,17 +181,39 @@ function Home() { Age: -
- {visibleProjects.map((project, index) => ( - - ))} -
+ + +
+ {visibleProjects.map((project, index) => ( + + ))} +
+
+ + test{" "} + + + + Work + + + Travel + + + +
diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx new file mode 100644 index 00000000..ecab2b53 --- /dev/null +++ b/src/components/ui/tabs.tsx @@ -0,0 +1,102 @@ +import { cva, type VariantProps } from "class-variance-authority"; +import { Tabs as TabsPrimitive } from "radix-ui"; +import type * as React from "react"; + +import { cn } from "@/lib/utils"; + +function Tabs({ + className, + orientation = "horizontal", + ...props +}: React.ComponentProps) { + return ( + + ); +} + +const tabsListVariants = cva( + cn( + "group-data-[orientation=horizontal]/tabs:h-9 group/tabs-list text-muted-foreground inline-flex", + "w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col", + ), + { + variants: { + variant: { + default: "bg-muted", + line: "gap-1 bg-transparent", + }, + }, + defaultVariants: { + variant: "default", + }, + }, +); + +function TabsList({ + className, + variant = "default", + ...props +}: React.ComponentProps & + VariantProps) { + return ( + + ); +} + +function TabsTrigger({ + className, + ...props +}: React.ComponentProps) { + return ( + + ); +} + +function TabsContent({ + className, + ...props +}: React.ComponentProps) { + return ( + + ); +} + +export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };