From 2c102ad4756b5e7aeab3b0fd05fd0e37687f901f Mon Sep 17 00:00:00 2001 From: schererleander Date: Sun, 28 Dec 2025 21:46:32 +0100 Subject: chore(style): clean up tailwindcss, other --- app/blog/page.tsx | 23 ++++------------------- app/page.tsx | 3 +-- components/header.tsx | 6 ------ components/post-card.tsx | 9 ++++++--- 4 files changed, 11 insertions(+), 30 deletions(-) diff --git a/app/blog/page.tsx b/app/blog/page.tsx index abc3394..0c8acbb 100644 --- a/app/blog/page.tsx +++ b/app/blog/page.tsx @@ -1,5 +1,5 @@ - -import { format, parseISO } from 'date-fns' +import { PostCard } from "components/post-card" +import { format, parseISO, compareDesc } from 'date-fns' import { allPosts } from 'contentlayer/generated' import Link from 'next/link' @@ -10,25 +10,10 @@ export default function BlogPage() {

Blog

- {posts.map((post) => ( -
-

- - {post.title} - -

- -
+ {posts.map((post, idx) => ( + ))}
) } - -function compareDesc(a: Date, b: Date) { - if (a > b) return -1 - if (a < b) return 1 - return 0 -} diff --git a/app/page.tsx b/app/page.tsx index 057842d..51dfeda 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,4 +1,3 @@ - import { ToolsGrid } from "@/components/tools-grid"; import { ProjectsGrid } from "@/components/projects-grid"; import { PostCard } from "@/components/post-card"; @@ -19,7 +18,7 @@ export default function Home() {

Hi, I'm Leander.

- Passionate about hardware & software, pursuing computer science studies. Currently building 3D-printing projects and exploring homelabing. + Interested in hardware & software, pursuing computer science studies. Currently building 3D-printing projects and exploring homelabing.

diff --git a/components/header.tsx b/components/header.tsx index afc2a99..f447677 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -16,12 +16,6 @@ export function Header() { > Blog - - Projects - diff --git a/components/post-card.tsx b/components/post-card.tsx index 4990188..25a79ae 100644 --- a/components/post-card.tsx +++ b/components/post-card.tsx @@ -5,12 +5,15 @@ import Link from "next/link" export function PostCard(post: Post) { return (
- -

+ +

{post.title}

-
+
-- cgit v1.3.1