Skip to content

Commit 4068fa8

Browse files
author
anthonyych4n
committed
pages created with temp page
1 parent 1089fdf commit 4068fa8

File tree

4 files changed

+87
-3
lines changed

4 files changed

+87
-3
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { NavBar } from "@/components/judging/Navbar";
2+
3+
const AssignedTeamsPage = () => {
4+
const assignedTeams = [
5+
{ id: 1, name: "Team Alpha" },
6+
{ id: 2, name: "Team Beta" },
7+
{ id: 3, name: "Team Gamma" },
8+
];
9+
10+
return (
11+
<div>
12+
<NavBar />
13+
<h1> Put assinged teams here Assigned Teams</h1>
14+
<ul>
15+
{assignedTeams.map((team) => (
16+
<li key={team.id}>{team.name}</li>
17+
))}
18+
</ul>
19+
</div>
20+
);
21+
};
22+
23+
export default AssignedTeamsPage;

src/app/judging/rubric/page.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { NavBar } from "@/components/judging/Navbar";
2+
3+
const RubricPage = () => {
4+
return (
5+
<div>
6+
<NavBar />
7+
<h1>Judging Rubric here</h1>
8+
<ul></ul>
9+
</div>
10+
);
11+
};
12+
13+
export default RubricPage;

src/app/judging/schedule/page.tsx

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
"use client";
2+
3+
import { useEffect, useState } from "react";
4+
5+
interface Schedule {
6+
teamName: string;
7+
timeSlot: string;
8+
}
9+
10+
const SchedulePage = () => {
11+
const [schedule, setSchedule] = useState<Schedule[]>([]);
12+
13+
useEffect(() => {
14+
// Fetch schedule data from an API or define it statically
15+
// Template for when we will fetch the schedule
16+
const fetchSchedule = async () => {
17+
const response = await fetch("/api/schedule");
18+
const data = await response.json();
19+
setSchedule(data);
20+
};
21+
22+
fetchSchedule();
23+
}, []);
24+
25+
return (
26+
<div>
27+
<h1>Judging Schedule</h1>
28+
<table>
29+
<thead>
30+
<tr>
31+
<th>Team Name</th>
32+
<th>Time Slot</th>
33+
</tr>
34+
</thead>
35+
<tbody>
36+
{schedule.map((item, index) => (
37+
<tr key={index}>
38+
<td>{item.teamName}</td>
39+
<td>{item.timeSlot}</td>
40+
</tr>
41+
))}
42+
</tbody>
43+
</table>
44+
</div>
45+
);
46+
};
47+
48+
export default SchedulePage;

src/components/judging/Navbar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ export function NavBar() {
1111
},
1212
{
1313
name: "Schedule",
14-
href: "/schedule",
14+
href: "/judging/schedule",
1515
},
1616
{
1717
name: "Assigned Teams",
18-
href: "/assigned-teams",
18+
href: "/judging/assigned-teams",
1919
},
2020
{
2121
name: "Rubric",
22-
href: "/rubric",
22+
href: "/judging/rubric",
2323
},
2424
];
2525

0 commit comments

Comments
 (0)