Skip to content

Commit c50cd6b

Browse files
committed
Navbar added
1 parent addbde5 commit c50cd6b

File tree

5 files changed

+41
-1
lines changed

5 files changed

+41
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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;

overload/src/app/course-details/[...courseCode]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use client';
22
import { useEffect, useState } from 'react';
33
import ScaleModal from './ScaleModal';
4+
import Navbar from '@/app/components/NavBar';
45

56
export default function Page({ params }: { params: { courseCode: string } }) {
67
const [courseData, setCourseData] = useState({
@@ -29,6 +30,7 @@ export default function Page({ params }: { params: { courseCode: string } }) {
2930
}, [params.courseCode]);
3031

3132
return (
33+
3234
<div className="flex bg-black h-screen text-white px-28 py-20 justify-evenly gap-72">
3335
<div>
3436
<div className="text-4xl font-bold mb-10">{courseData.courseCode}</div>

overload/src/app/course-rating/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import React from 'react'
22
import { SearchBar } from "../components/SearchBar"
3-
3+
import Navbar from '../components/NavBar'
44
export default function CourseRatingPage() {
55
return (
66
<div className="@apply bg-[#221f1f]">
7+
<Navbar></Navbar>
78
{/* <NavBar/> */}
89
<h1 className="pt-20 font-sans text-5xl text-white font-semibold p-5 text-left px-20">OverLoad</h1>
910
<SearchBar/>
31.8 KB
Loading

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)