diff --git a/app/blog/neural-nets/page.tsx b/app/blog/neural-nets/page.tsx new file mode 100644 index 0000000..39fdec2 --- /dev/null +++ b/app/blog/neural-nets/page.tsx @@ -0,0 +1,7 @@ +export default async function Index() { + return ( + <> +

hello

+ + ); +} diff --git a/app/blog/page.tsx b/app/blog/page.tsx new file mode 100644 index 0000000..781da3e --- /dev/null +++ b/app/blog/page.tsx @@ -0,0 +1,23 @@ +export default async function Index() { + return ( +
+
+

Stan's Blog

+

+ but what do I know +

+
+ +

Posts ({[].length})

+ {/* + */} +
+ ); +} diff --git a/app/layout.tsx b/app/layout.tsx index 3844e94..ac6e265 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,6 @@ import { GeistSans } from "geist/font/sans"; import "./globals.css"; +import TabItem from "@/components/TabItem"; const defaultUrl = process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` @@ -18,7 +19,14 @@ export default function RootLayout({ }) { return ( - {children} + +
+ + +
+ + {children} + ); } diff --git a/components/TabItem.tsx b/components/TabItem.tsx new file mode 100644 index 0000000..00afabf --- /dev/null +++ b/components/TabItem.tsx @@ -0,0 +1,16 @@ +"use client"; + +import { usePathname } from "next/navigation"; + +export default async function TabItem({ targetPath, text }: { targetPath: string, text: string}) { + const currentPath = usePathname(); + + return ( + + {text} + + ); +}