Skip to content

Commit

Permalink
Reorganize header
Browse files Browse the repository at this point in the history
  • Loading branch information
leslieyip02 committed Jan 22, 2024
1 parent 7163893 commit c672b90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import './App.css';
function App() {
return (
<>
{/* Header */}
<header className='w-full h-20'>
<NavigationBar />
</header>
<NavigationBar />

{/* Main content */}
<main className='w-full min-h-[100vh]'>
Expand Down
14 changes: 8 additions & 6 deletions src/layout/NavigationBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import './NavigationBar.css';

function NavigationBar() {
return (
<div className='navigation-bar'>
<Link to='/'>
<img src='comclub_logo.png' className='h-12 p-2'></img>
</Link>
<NavigationMenu />
</div>
<header className='w-full h-20'>
<div className='navigation-bar'>
<Link to='/'>
<img src='comclub_logo.png' className='h-12 p-2'></img>
</Link>
<NavigationMenu />
</div>
</header>
);
}

Expand Down

0 comments on commit c672b90

Please sign in to comment.