mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(lab) add link to lab
This commit is contained in:
1 file changed
+14
-13
@@ -3,7 +3,16 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Button } from '@nextui-org/react';
|
import { Button } from '@nextui-org/react';
|
||||||
import Image from 'next/image';
|
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 Link from 'next/link';
|
||||||
import ThemeSwitcher from '@/components/ThemeSwitcher';
|
import ThemeSwitcher from '@/components/ThemeSwitcher';
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from 'next/navigation';
|
||||||
@@ -34,6 +43,10 @@ const entries: { display_name: string; href: string; icon: React.ReactNode }[] =
|
|||||||
icon: <IoSearch size={ `20px` }></IoSearch>,
|
icon: <IoSearch size={ `20px` }></IoSearch>,
|
||||||
display_name: 'Search',
|
display_name: 'Search',
|
||||||
href: '/search'
|
href: '/search'
|
||||||
|
}, {
|
||||||
|
icon: <IoFlask size={ '20px' } />,
|
||||||
|
display_name: 'Lab',
|
||||||
|
href: 'https://lab.lmt.moe'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -51,18 +64,6 @@ const connections: { label: string, href: string, icon: React.ReactNode }[] = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
function Navbar() {
|
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 path = usePathname();
|
||||||
const [ shownPath, setShownPath ] = useState(path);
|
const [ shownPath, setShownPath ] = useState(path);
|
||||||
|
|||||||
Reference in new issue
Block a user