diff --git a/src/app/page.tsx b/src/app/page.tsx index 1aa43a0..8d73987 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,9 +1,29 @@ import { db } from "@/db"; +import Link from "next/link"; export default async function HomePage() { const snippets = await db.snippet.findMany(); const renderedSnippets = snippets.map((snippet) => { - return
{snippet.title}
; + return ( + +
{snippet.title}
+
View
+ + ); }); - return
{renderedSnippets}
; + return ( +
+
+

Snippets

+ + New + +
+
{renderedSnippets}
+
+ ); }