From de73c0af85b3f7bb48929a48e0522729fd171feb Mon Sep 17 00:00:00 2001 From: schererleander Date: Mon, 14 Jul 2025 18:12:58 +0200 Subject: style: update --- src/index.css | 7 +++++ src/pages/404.tsx | 2 +- src/pages/Blog.tsx | 75 +++++++++++++++++++++++++++++++++++++++++++----------- src/pages/Post.tsx | 6 ++--- 4 files changed, 71 insertions(+), 19 deletions(-) (limited to 'src') diff --git a/src/index.css b/src/index.css index 2679ef7..bad19d3 100644 --- a/src/index.css +++ b/src/index.css @@ -1,8 +1,15 @@ @import "tailwindcss"; @import "tw-animate-css"; +@plugin "@tailwindcss/typography"; @custom-variant dark (&:where(.dark, .dark *)); +@layer base { + body { + @apply bg-background text-foreground; + } +} + @theme inline { --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); diff --git a/src/pages/404.tsx b/src/pages/404.tsx index d9eed89..8ca9968 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -14,7 +14,7 @@ export default function NotFound() { return ( <> -

404 - Not found

+

404 - Not found

); diff --git a/src/pages/Blog.tsx b/src/pages/Blog.tsx index c950a23..6a5c22c 100644 --- a/src/pages/Blog.tsx +++ b/src/pages/Blog.tsx @@ -1,4 +1,12 @@ -import Entry from "../components/Entry"; +import { ArrowRight } from "lucide-react"; +import { + Card, + CardContent, + CardHeader, + CardTitle, + CardDescription, +} from "@/components/ui/card"; +import Gallery from "@/components/Gallery"; interface Meta { slug: string; @@ -8,6 +16,14 @@ interface Meta { cover?: string; } +const images =[ + { src: "/images/3ds.webp", alt: "Nintendo 3DS", id: 1 }, + { src: "/images/esp32.webp", alt: "ESP 32", id: 2 }, + { src: "/images/setup.webp", alt: "Setup", id: 4 }, + { src: "/images/ocarinaoftime.webp", alt: "Ocarina of Time", id: 6 }, + { src: "/images/hellsparadise.webp", alt: "Hells paradise", id: 7 } +] + const postFiles = import.meta.glob("../blog/*.md", { eager: true }) as Record< string, { attributes: Omit } @@ -25,21 +41,50 @@ const posts: Meta[] = Object.entries(postFiles) export default function Blog() { return ( <> - ߸ projects -

Blog

-
- - {posts.map((post) => ( - - ))} -
+ Blog +
+

+ Blog Posts +

+
+ {posts.map((post) => ( + + + + {post.title} + + + + + {post.title} + + {post.excerpt} + + Read more + + + + + ))} +
+
+

Some images

+ +
+ +
); } diff --git a/src/pages/Post.tsx b/src/pages/Post.tsx index 76396ae..43ffe5e 100644 --- a/src/pages/Post.tsx +++ b/src/pages/Post.tsx @@ -39,9 +39,9 @@ export default function Post() { /> )} -

{meta.title}

-

{formDate.format(new Date(meta.date))}

-
+

{meta.title}

+

{formDate.format(new Date(meta.date))}

+
-- cgit v1.3.1