feat(Navbar) add avatar link

This commit is contained in:
lumither committed 2024-03-23 23:13:45 +08:00
1 parent d412d631d1
commit f883ca6798
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ yarn-error.log*
next-env.d.ts
# bun
/bun.lockb
bun.lockb
# ide related
.idea
+4 -1
View File
@@ -12,7 +12,7 @@ const entries: { display_name: string; href: string; }[] = [
},
{
display_name: 'Archive',
href: 'archive'
href: '/archive'
}
];
@@ -42,11 +42,14 @@ export default function Navbar() {
<NavigationMenuList
className={ `flex space-x-4 transition-all duration-500 ${ scrolled ? 'space-x-3' : '' }` }>
<NavigationMenuItem>
<Link href={ '/about' }>
<Avatar className={ 'transition-all duration-300 hover:scale-125' }>
<AvatarImage src={ 'https://avatars.githubusercontent.com/u/46409277' }
alt={ 'Lumither\'s Avatar' } />
<AvatarFallback>Tao</AvatarFallback>
</Avatar>
</Link>
</NavigationMenuItem>
BIN
View File
Binary file not shown.