Skip to content

Commit

Permalink
first try
Browse files Browse the repository at this point in the history
  • Loading branch information
skykosiner committed Sep 10, 2024
1 parent 2726ee1 commit e2dd66b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ export default function NavBar(): JSX.Element {
}

function handleClick() {
setOpen(!open);
if (!windowSize.width) {
return;
}

if (windowSize.width < 900) {
setOpen(!open);
}
}

return (
<div className={styles.nav}>
<div className={styles.image}>
<Link href="/">
<Link href="/" onClick={handleClick}>
<Image src="/logo.svg" width="80" height="80" alt="logo" />
</Link>
</div>
Expand Down

0 comments on commit e2dd66b

Please sign in to comment.