From 6da6231c9282268dd1f2c0e2e8167a964157dbdd Mon Sep 17 00:00:00 2001 From: Lumither Tao Date: Tue, 10 Dec 2024 04:00:57 -0800 Subject: [PATCH] feat(lab) add link to lab --- frontend/components/Navbar.tsx | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/frontend/components/Navbar.tsx b/frontend/components/Navbar.tsx index b0381b0..ea0238c 100644 --- a/frontend/components/Navbar.tsx +++ b/frontend/components/Navbar.tsx @@ -3,7 +3,16 @@ import React, { useEffect, useState } from 'react'; import { Button } from '@nextui-org/react'; import Image from 'next/image'; -import { IoHome, IoInformationCircle, IoLink, IoLogoGithub, IoMail, IoPencil, IoSearch } from 'react-icons/io5'; +import { + IoFlask, + IoHome, + IoInformationCircle, + IoLink, + IoLogoGithub, + IoMail, + IoPencil, + IoSearch +} from 'react-icons/io5'; import Link from 'next/link'; import ThemeSwitcher from '@/components/ThemeSwitcher'; import { usePathname } from 'next/navigation'; @@ -34,6 +43,10 @@ const entries: { display_name: string; href: string; icon: React.ReactNode }[] = icon: , display_name: 'Search', href: '/search' + }, { + icon: , + display_name: 'Lab', + href: 'https://lab.lmt.moe' } ]; @@ -51,18 +64,6 @@ const connections: { label: string, href: string, icon: React.ReactNode }[] = [ ]; function Navbar() { - // const [ scrolled, setScrolled ] = useState(false); - // useEffect(() => { - // const handleScroll = () => { - // const isScrolled = window.scrollY > 0; - // setScrolled(isScrolled); - // }; - // window.addEventListener('scroll', handleScroll); - // return () => { - // window.removeEventListener('scroll', handleScroll); - // }; - // }, []); - const path = usePathname(); const [ shownPath, setShownPath ] = useState(path);