From 048ce82b2b71af27f256e2592155f726f31f3091 Mon Sep 17 00:00:00 2001 From: Lumither Tao Date: Sat, 16 Mar 2024 02:19:01 +0800 Subject: [PATCH] feat(Navbar) update navbar --- .gitignore | 2 +- app/globals.css | 1 + app/navbar.tsx | 28 +++++++++++++++++++++++----- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 75dce35..e32600d 100644 --- a/.gitignore +++ b/.gitignore @@ -36,7 +36,7 @@ yarn-error.log* next-env.d.ts # bun -./bun.lockb +/bun.lockb # ide related .idea diff --git a/app/globals.css b/app/globals.css index 1c09402..b184015 100644 --- a/app/globals.css +++ b/app/globals.css @@ -38,6 +38,7 @@ .dark { --background: radial-gradient(circle at center bottom, rgb(2, 35, 96) 0%, rgb(14, 26, 91) 25%, rgba(2, 0, 36, 1) 61%); background: var(--background); + background-attachment: fixed; --foreground: 210 40% 98%; diff --git a/app/navbar.tsx b/app/navbar.tsx index 139cf24..b9e31a9 100644 --- a/app/navbar.tsx +++ b/app/navbar.tsx @@ -3,6 +3,7 @@ import { useEffect, useState } from 'react'; import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { NavigationMenu, NavigationMenuItem, NavigationMenuList } from '@/components/ui/navigation-menu'; +import Link from 'next/link'; const components: { title: string; href: string; description: string }[] = [ { @@ -32,12 +33,13 @@ export default function Navbar() {
+ : 'w-full border-slate-200/15 border-b shadow' }` }>
- - + + - + Tao @@ -45,7 +47,23 @@ export default function Navbar() { -

{"Lumither\'s Blog"}

+ +

{ 'Lumither\'s Blog' }

+ +
+ +
+ + + +

{ 'About' }

+ +
+ + + +

{ 'Archives' }

+