diff --git a/app/actions.ts b/app/actions.ts index 5907129..feeb09c 100644 --- a/app/actions.ts +++ b/app/actions.ts @@ -1,11 +1,7 @@ -import client from "../lib/mongodb"; +import client from "../lib/mongodb" -export async function getTeamPlayers() { - const db = client.db("SloppyFuckers") - return await db.collection("players").find({}).toArray(); -} +const db = client.db("portfolio") -export async function getEvents() { - const db = client.db("SloppyFuckers") - return await db.collection("events").find({}).toArray(); +export async function getProjects() { + return await db.collection("projects").find({}).toArray() } diff --git a/app/page.tsx b/app/page.tsx index 5bf66d1..628152c 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,4 +1,8 @@ -export default function Web() { +import { getProjects } from "./actions" + +export default async function Web() { + const projects = await getProjects() + return (
@@ -6,6 +10,14 @@ export default function Web() {

IsaCon

+ {projects.map((project) => ( +
+ {project.name} +
+ ))}
diff --git a/components/Navbar/Navbar.tsx b/components/Navbar/Navbar.tsx index fcc180c..a455c93 100644 --- a/components/Navbar/Navbar.tsx +++ b/components/Navbar/Navbar.tsx @@ -29,12 +29,6 @@ export default function Navbar() { > Projects - - Calendar -