+
);
diff --git a/app/layout.tsx b/app/layout.tsx
index 44f1b59..162ac2c 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -17,10 +17,14 @@ export default function RootLayout({
}>) {
return (
-
+
-
- { children }
+
diff --git a/components/Navbar.tsx b/components/Navbar.tsx
index c5d7f9e..056682d 100644
--- a/components/Navbar.tsx
+++ b/components/Navbar.tsx
@@ -1,33 +1,50 @@
'use client';
import React, { useEffect, useState } from 'react';
+import { Button, Image } from '@nextui-org/react';
import {
- Image,
- Navbar as NextUINavbar,
- NavbarBrand,
- NavbarContent,
- NavbarItem,
- NavbarMenu,
- NavbarMenuItem,
- NavbarMenuToggle
-} from '@nextui-org/react';
+ IoFileTrayFull,
+ IoHome,
+ IoInformationCircle,
+ IoLogoGithub,
+ IoMail,
+ IoPencil,
+ IoPricetags,
+ IoSearch
+} from 'react-icons/io5';
import Link from 'next/link';
-import { usePathname } from 'next/navigation';
import ThemeSwitcher from '@/components/ThemeSwitcher';
-
-const entries: { display_name: string; href: string; }[] = [
+const entries: { display_name: string; href: string; icon: React.ReactNode }[] = [
{
+ icon:
,
display_name: 'Home',
href: '/'
},
{
+ icon:
,
display_name: 'About',
href: '/about'
},
{
+ icon:
,
display_name: 'Blog',
href: '/blog'
+ },
+ {
+ icon:
,
+ display_name: 'Tags',
+ href: '/tags'
+ },
+ {
+ icon:
,
+ display_name: 'Archive',
+ href: '/Archive'
+ },
+ {
+ icon:
,
+ display_name: 'Search',
+ href: '/search'
}
];
@@ -48,67 +65,62 @@ function Navbar() {
return (
<>
-
-
-
-
-
-
-
+
+
+
-
- { 'Lumither\'s site' }
-
-
+
Lumither Tao
+
Ad Astra
-
-
+
+
+
+
+
+
+
+
-
- { 'Lumither\'s site' }
-
+
+
+ {
+ entries.map((meta, key) => (
+ -
+
+
+ ))
+ }
+
+
- { entries.map((item, index) => (
- // eslint-disable-next-line react-hooks/rules-of-hooks
-
-
- { item.display_name }
-
-
- )) }
-
-
-
-
+
+
-
-
-
-
- { entries.map((item, index) => (
-
-
- { item.display_name }
-
-
- )) }
-
-
+
{ `Toggle Theme` }
+
+
+
>
);
}
diff --git a/components/ThemeSwitcher.tsx b/components/ThemeSwitcher.tsx
index 9db2f10..c416972 100644
--- a/components/ThemeSwitcher.tsx
+++ b/components/ThemeSwitcher.tsx
@@ -21,6 +21,7 @@ function ThemeSwitcher() {
}
endContent={ }
onValueChange={ (isSelected) => {