From 6ac3863af9b63a49e525a04367c399c9cd7cdc44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Fri, 19 Sep 2025 04:39:43 +0200 Subject: [PATCH] Add Neobrutalism card --- packages/webapp/public/vite.svg | 1 - packages/webapp/src/assets/react.svg | 1 - packages/webapp/src/components/ui/card.tsx | 92 ++++++++++++++++++++++ packages/webapp/src/main.tsx | 1 + packages/webapp/src/routes/__root.tsx | 12 ++- 5 files changed, 104 insertions(+), 3 deletions(-) delete mode 100644 packages/webapp/public/vite.svg delete mode 100644 packages/webapp/src/assets/react.svg create mode 100644 packages/webapp/src/components/ui/card.tsx diff --git a/packages/webapp/public/vite.svg b/packages/webapp/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/packages/webapp/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/webapp/src/assets/react.svg b/packages/webapp/src/assets/react.svg deleted file mode 100644 index 6c87de9..0000000 --- a/packages/webapp/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/webapp/src/components/ui/card.tsx b/packages/webapp/src/components/ui/card.tsx new file mode 100644 index 0000000..d5a3851 --- /dev/null +++ b/packages/webapp/src/components/ui/card.tsx @@ -0,0 +1,92 @@ +import * as React from "react" + +import { cn } from "@/lib/utils" + +function Card({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function CardHeader({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function CardTitle({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function CardDescription({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function CardAction({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function CardContent({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +function CardFooter({ className, ...props }: React.ComponentProps<"div">) { + return ( +
+ ) +} + +export { + Card, + CardHeader, + CardFooter, + CardTitle, + CardDescription, + CardContent, + CardAction, +} diff --git a/packages/webapp/src/main.tsx b/packages/webapp/src/main.tsx index 23ff3df..b5cf062 100644 --- a/packages/webapp/src/main.tsx +++ b/packages/webapp/src/main.tsx @@ -1,6 +1,7 @@ import { createRouter, RouterProvider } from "@tanstack/react-router" import { StrictMode } from "react" import { createRoot } from "react-dom/client" +import "./index.css" import { routeTree } from "./routeTree.gen" diff --git a/packages/webapp/src/routes/__root.tsx b/packages/webapp/src/routes/__root.tsx index c87a65c..fd0cc21 100644 --- a/packages/webapp/src/routes/__root.tsx +++ b/packages/webapp/src/routes/__root.tsx @@ -1,3 +1,4 @@ +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Outlet, createRootRoute } from "@tanstack/react-router" import { TanStackRouterDevtools } from "@tanstack/react-router-devtools" @@ -8,7 +9,16 @@ export const Route = createRootRoute({ function RootComponent() { return <> - + + + My website + + + + + + + }