From 328ec4c04e585f004e961b6895d405c6b91783a9 Mon Sep 17 00:00:00 2001 From: AjelmarMedina Date: Fri, 24 May 2024 23:14:17 +0800 Subject: [PATCH] Blog item components --- src/app/blog/page.tsx | 37 +++++++++++++++++++------------------ src/components/ui/nav.tsx | 2 ++ 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index 65e1d12..8015578 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -1,5 +1,5 @@ -import { Badge } from "@/components/ui/badge" -import { Button } from "@/components/ui/button" +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; // TODO: Dynamic BlogItem content // TODO: DB project blog url @@ -24,7 +24,9 @@ export default function Page() {
- + + Elit amet adipisicing consectetur consequat tempor cupidatat et commodo. + @@ -34,30 +36,29 @@ export default function Page() { ) } -function BlogItem() { +function BlogItem({ title = "Lorem Ipsum", tags = ["Lorem", "ipsum", "dolor", "sit", "amet"], children }: + { + title?: string | null; + tags?: string[] | null; + children?: React.ReactNode; + } +) { return ( ) diff --git a/src/components/ui/nav.tsx b/src/components/ui/nav.tsx index ed77b97..2d8392f 100644 --- a/src/components/ui/nav.tsx +++ b/src/components/ui/nav.tsx @@ -11,6 +11,8 @@ import { useEffect, useState } from "react"; import { Button } from "./button"; import { zillaSlab } from "./fonts"; +// TODO: Separate Landing Nav and default Nav + let clamp = (number: number, min: number, max: number) => Math.min(Math.max(number, min), max);