Skip to content

Commit

Permalink
✨ Added temporary BlogPage and reformatted some code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeyXs committed Oct 15, 2024
1 parent 485331c commit 42db9c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { useTypewriter } from "react-simple-typewriter";
import DesktopMenu from './DesktopMenu';
import DropdownMenu from './DropdownMenu';

// Définition des types pour les liens de navigation
export type NavLink = {
name: string;
path: string;
Expand Down Expand Up @@ -63,18 +62,15 @@ export default function Navbar() {
</div>

<NavbarContent>
{/* Menu pour mobile */}
<div className="flex lg:hidden z-50">
<NavbarButton onClick={handleDropdownNav}>
{isDropdownNavToggled ? <IoClose size={30} /> : <IoMenu size={30} />}
</NavbarButton>
</div>

{/* Menu pour desktop */}
<DesktopMenu navigate={navigate} navLinks={navLinks} />
</NavbarContent>

{/* Dropdown menu pour mobile */}
{isDropdownNavToggled && (
<DropdownMenu
terminalText={terminalText}
Expand Down
1 change: 1 addition & 0 deletions src/pages/BlogPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default function BlogPage() {
<div className='h-screen bg-[#0E0E0E]'>
<div className="flex flex-col space-y-2">
<Navbar />
<p className="text-white">Temporary blog BlogPage</p>
</div>
</div>
)
Expand Down
2 changes: 2 additions & 0 deletions src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export default function HomePage() {
<div className='h-screen bg-[#0E0E0E]'>
<div className="flex flex-col space-y-2">
<Navbar />


</div>
</div>
);
Expand Down

0 comments on commit 42db9c8

Please sign in to comment.