diff --git a/src/app/news/[slug]/page.tsx b/src/app/news/[slug]/page.tsx new file mode 100644 index 0000000..b8aaa8f --- /dev/null +++ b/src/app/news/[slug]/page.tsx @@ -0,0 +1,17 @@ +/* + * Copyright (C), 2024 Team 3602. Some rights reserved. This work is + * licensed under the terms of the MIT license which can be found in + * the root directory of this project. + */ + +import fs from "fs"; + +export default async function Page(slug: string) { + //var load = fs.readFileSync(process.cwd() + "items/" + params.slug.replace(/\.md$/, ""), "utf8"); + return "My Post: {slug}" + +} + +export function generateStaticParams() { + return [{ slug: '/news/1' }, { slug: '/news/2' }, { slug: '/news/3' }]; +} \ No newline at end of file diff --git a/src/app/news/page.tsx b/src/app/news/page.tsx new file mode 100644 index 0000000..efa2ab8 --- /dev/null +++ b/src/app/news/page.tsx @@ -0,0 +1,21 @@ +/* + * Copyright (C), 2024 Team 3602. Some rights reserved. This work is + * licensed under the terms of the MIT license which can be found in + * the root directory of this project. + */ + +import Head from "next/head"; + +export default function Page() { + return ( +
+ + News | Team 3602 + +

News

+ + + +
+ ); +} \ No newline at end of file diff --git a/src/components/header.tsx b/src/components/header.tsx index 3bf66b7..af75b5b 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -17,7 +17,7 @@ export default function Header() {