Skip to content

Commit

Permalink
Nothin
Browse files Browse the repository at this point in the history
  • Loading branch information
team3602 committed Feb 2, 2024
1 parent e58e13a commit e65b6d6
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
17 changes: 17 additions & 0 deletions src/app/news/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -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' }];
}
21 changes: 21 additions & 0 deletions src/app/news/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<main>
<Head>
<title>News | Team 3602</title>
</Head>
<h1 className="text-3xl font-bold p-12 pl-20 pr-20">News</h1>



</main>
);
}
4 changes: 2 additions & 2 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Header() {
</div>
<ul tabIndex={0} className="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52">
<li className="px-1"><Link href="/about">About</Link></li>
<li className="px-1"><Link href="/">News</Link></li>
<li className="px-1"><Link href="/news">News</Link></li>
<li className="px-1"><Link href="/">Events</Link></li>
<li className="px-1"><Link href="/">Sponsors</Link></li>
<li className="px-1"><Link href="/">Resources</Link></li>
Expand All @@ -28,7 +28,7 @@ export default function Header() {
<div className="navbar-end hidden lg:flex">
<ul className="menu menu-horizontal px-1">
<li className="px-1"><Link href="/about">About</Link></li>
<li className="px-1"><Link href="/">News</Link></li>
<li className="px-1"><Link href="/news">News</Link></li>
<li className="px-1"><Link href="/">Events</Link></li>
<li className="px-1"><Link href="/">Sponsors</Link></li>
<li className="px-1"><Link href="/">Resources</Link></li>
Expand Down

0 comments on commit e65b6d6

Please sign in to comment.