Skip to content

Commit

Permalink
fix: improve data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Haidong Xu committed Dec 15, 2024
1 parent e1483e7 commit a8dadbe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
18 changes: 10 additions & 8 deletions src/components/LogoWithText/LogoWithText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ import NextLink from 'next/link';

export function LogoWithText() {
return (
<NextLink href="/">
<div className="flex items-center gap-2">
<NextImage unoptimized priority src="/wfp_logo.svg" alt="HungerMap" width={45} height={45} />
<li>
<NextLink href="/">
<div className="flex items-center gap-2">
<NextImage unoptimized priority src="/wfp_logo.svg" alt="HungerMap" width={45} height={45} />

<p className="font-bold text-lg">
HungerMap <sup>LIVE</sup>
</p>
</div>
</NextLink>
<p className="font-bold text-lg">
HungerMap <sup>LIVE</sup>
</p>
</div>
</NextLink>
</li>
);
}
5 changes: 1 addition & 4 deletions src/components/Topbar/Topbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import {
Link,
Navbar,
NavbarBrand,
NavbarContent,
NavbarItem,
NavbarMenu,
Expand All @@ -26,9 +25,7 @@ export function Topbar() {
<Navbar onMenuOpenChange={setIsMenuOpen} maxWidth="full">
<NavbarContent className="flex-1 min-w-[200px]">
<NavbarMenuToggle aria-label={isMenuOpen ? 'Close menu' : 'Open menu'} className="md:hidden" />
<NavbarBrand>
<LogoWithText />
</NavbarBrand>
<LogoWithText />
</NavbarContent>
<NavbarContent className="hidden md:flex gap-4" justify="center">
{pageLinks.map((item) => (
Expand Down

0 comments on commit a8dadbe

Please sign in to comment.