Skip to content

Commit 55b6bd8

Browse files
committed
Update profile image as MUI IconButton
1 parent cf481f2 commit 55b6bd8

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/components/NavBar.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React from 'react';
22
import Link from 'next/link';
33
import Image from 'next/image';
4-
import { Button } from '@mui/material';
4+
import { IconButton } from '@mui/material';
55

66
export default function NavBar() {
77
return (
88
<>
9-
<div className="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">
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">
1010
<Image
11-
src={"/background.png"}
11+
src={'/background.png'}
1212
alt="background"
1313
className="-z-10"
1414
fill
@@ -20,13 +20,16 @@ export default function NavBar() {
2020
UTD Notebook
2121
</Link>
2222
<div className="ml-auto flex gap-x-2 md:gap-x-4">
23-
<Image
24-
src={"/"}
25-
alt="profile picture"
26-
width={256}
27-
height={256}
28-
className='flex rounded-full border border-white size-16 flex-shrink-0'
29-
/>
23+
<IconButton size="large" sx={{ p: 0 }}>
24+
<div className="relative size-16 flex-shrink-0">
25+
<Image
26+
src="/icon-white.svg"
27+
alt="profile picture"
28+
fill
29+
className="rounded-full border border-white object-cover"
30+
/>
31+
</div>
32+
</IconButton>
3033
</div>
3134
</div>
3235
</>

0 commit comments

Comments
 (0)