File tree Expand file tree Collapse file tree 4 files changed +87
-3
lines changed Expand file tree Collapse file tree 4 files changed +87
-3
lines changed Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ export function NavBar() {
11
11
} ,
12
12
{
13
13
name : "Schedule" ,
14
- href : "/schedule" ,
14
+ href : "/judging/ schedule" ,
15
15
} ,
16
16
{
17
17
name : "Assigned Teams" ,
18
- href : "/assigned-teams" ,
18
+ href : "/judging/ assigned-teams" ,
19
19
} ,
20
20
{
21
21
name : "Rubric" ,
22
- href : "/rubric" ,
22
+ href : "/judging/ rubric" ,
23
23
} ,
24
24
] ;
25
25
You can’t perform that action at this time.
0 commit comments