File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed
Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change 11import type { Metadata } from 'next' ;
2+ import NavBar from '@components/NavBar' ;
23
34export const metadata : Metadata = {
45 alternates : {
@@ -7,7 +8,11 @@ export const metadata: Metadata = {
78} ;
89
910const Home = ( ) => {
10- return 'UTD Notebook' ;
11+ return (
12+ < >
13+ < NavBar />
14+ </ >
15+ ) ;
1116} ;
1217
1318export default Home ;
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import Link from 'next/link' ;
3+ import Image from 'next/image' ;
4+ import { IconButton , Tooltip } from '@mui/material' ;
5+
6+ export default function NavBar ( ) {
7+ return (
8+ < >
9+ < div className = "bg-darken relative flex flex-wrap items-center gap-x-2 gap-y-0 overflow-hidden border-b-1 px-4 py-1 sm:flex-nowrap md:gap-x-4 md:px-8 md:py-1 lg:gap-x-8 lg:px-16" >
10+ < Image
11+ src = { '/background.png' }
12+ alt = "background"
13+ className = "-z-10 object-cover"
14+ fill
15+ />
16+
17+ < Link
18+ href = "/"
19+ className = "font-display flex items-center gap-2 text-lg font-medium md:text-xl md:font-bold"
20+ >
21+ UTD Notebook
22+ </ Link >
23+
24+ < div className = "ml-auto flex items-center gap-x-2 md:gap-x-4" >
25+ < Tooltip title = "Profile" >
26+ < IconButton size = "medium" href = "/profile" >
27+ < div className = "relative size-10 flex-shrink-0 md:size-12" >
28+ < Image
29+ src = "/icon-white.svg"
30+ alt = "profile picture"
31+ fill
32+ className = "rounded-full border-2 border-white object-cover"
33+ />
34+ </ div >
35+ </ IconButton >
36+ </ Tooltip >
37+ </ div >
38+ </ div >
39+ </ >
40+ ) ;
41+ }
You can’t perform that action at this time.
0 commit comments