File tree Expand file tree Collapse file tree 5 files changed +41
-1
lines changed
course-details/[...courseCode] Expand file tree Collapse file tree 5 files changed +41
-1
lines changed Original file line number Diff line number Diff line change
1
+ // components/Navbar.tsx
2
+ import Link from 'next/link' ;
3
+ import Image from 'next/image' ;
4
+
5
+ interface NavbarProps {
6
+ // You can add any additional props if needed
7
+ }
8
+
9
+ const Navbar : React . FC < NavbarProps > = ( ) => {
10
+ return (
11
+ < nav className = "flex justify-between items-center h-16 px-4 bg-white text-black" >
12
+ < div className = "flex items-center" >
13
+ < Link href = "/" >
14
+ < Image className = 'bg-black rounded-full' src = "/resources/realskull.jpg" alt = "Skull Logo" width = { 40 } height = { 40 } />
15
+ </ Link >
16
+ < Link href = "/" >
17
+ < span className = 'ml-2' > Home</ span >
18
+ </ Link >
19
+ < Link href = "/course-rating" >
20
+ < span className = 'ml-2' > Course Rating</ span >
21
+ </ Link >
22
+ </ div >
23
+ < div className = "flex items-center" >
24
+ { /* Add your profile picture icon */ }
25
+ < img src = "/profile-icon.png" alt = "Profile Icon" className = "w-8 h-8 rounded-full object-cover bg-black" />
26
+ </ div >
27
+ </ nav >
28
+ ) ;
29
+ } ;
30
+
31
+ export default Navbar ;
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
import { useEffect , useState } from 'react' ;
3
3
import ScaleModal from './ScaleModal' ;
4
+ import Navbar from '@/app/components/NavBar' ;
4
5
5
6
export default function Page ( { params } : { params : { courseCode : string } } ) {
6
7
const [ courseData , setCourseData ] = useState ( {
@@ -29,6 +30,7 @@ export default function Page({ params }: { params: { courseCode: string } }) {
29
30
} , [ params . courseCode ] ) ;
30
31
31
32
return (
33
+
32
34
< div className = "flex bg-black h-screen text-white px-28 py-20 justify-evenly gap-72" >
33
35
< div >
34
36
< div className = "text-4xl font-bold mb-10" > { courseData . courseCode } </ div >
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import { SearchBar } from "../components/SearchBar"
3
-
3
+ import Navbar from '../components/NavBar'
4
4
export default function CourseRatingPage ( ) {
5
5
return (
6
6
< div className = "@apply bg-[#221f1f]" >
7
+ < Navbar > </ Navbar >
7
8
{ /* <NavBar/> */ }
8
9
< h1 className = "pt-20 font-sans text-5xl text-white font-semibold p-5 text-left px-20" > OverLoad</ h1 >
9
10
< SearchBar />
You can’t perform that action at this time.
0 commit comments