From b36f353ae6666d71773f725fdc6b6118af10b07d Mon Sep 17 00:00:00 2001 From: Timothy Date: Sat, 10 Feb 2024 19:43:21 +0800 Subject: [PATCH] add logout button --- web/app/page.tsx | 3 ++- web/components/icons.tsx | 28 ++++++++++++++++++++++++++ web/components/logout-button.tsx | 20 +++++++++++++++++++ web/components/navbar.tsx | 2 ++ web/config/site.ts | 34 -------------------------------- 5 files changed, 52 insertions(+), 35 deletions(-) create mode 100644 web/components/logout-button.tsx diff --git a/web/app/page.tsx b/web/app/page.tsx index 53e5353a..42227465 100644 --- a/web/app/page.tsx +++ b/web/app/page.tsx @@ -2,7 +2,7 @@ import { Code, Snippet, Link } from "@nextui-org/react"; import { button as buttonStyles } from "@nextui-org/theme"; import { siteConfig } from "@/config/site"; import { title, subtitle } from "@/components/primitives"; -import { GithubIcon } from "@/components/icons"; +import { GithubIcon, UserIcon } from "@/components/icons"; import { Counter } from "@/components/counter"; export default function Home() { @@ -27,6 +27,7 @@ export default function Home() { href={siteConfig.links.github} > + GitHub diff --git a/web/components/icons.tsx b/web/components/icons.tsx index 0d31fa0b..4fcc2e8e 100644 --- a/web/components/icons.tsx +++ b/web/components/icons.tsx @@ -93,6 +93,34 @@ export const HeartFilledIcon = ({ ); +export const UserIcon = (props: IconSvgProps) => ( + +); + export const SearchIcon = (props: IconSvgProps) => (