From f7744a64b2a0b0d5b3786e5d63da7e2cd5286aca Mon Sep 17 00:00:00 2001 From: listlessbird <124798751+listlessbird@users.noreply.github.com> Date: Fri, 8 Nov 2024 14:38:40 +0530 Subject: [PATCH] feat: add source attr and some tooltips --- web/src/components/logo.tsx | 2 +- web/src/components/nav/header.tsx | 69 +++++++++++++++++-------- web/src/components/nav/user-button.tsx | 70 +++++++++++++++----------- 3 files changed, 90 insertions(+), 51 deletions(-) diff --git a/web/src/components/logo.tsx b/web/src/components/logo.tsx index e5c6e1f..0add358 100644 --- a/web/src/components/logo.tsx +++ b/web/src/components/logo.tsx @@ -5,7 +5,7 @@ import Link from "next/link"; export function Logo() { return (
-
-
- - - Sparkles - -
+ +
+
+
+ + + Sparkles + +
-
- +
+ {/* */} +
-
+
); } diff --git a/web/src/components/nav/user-button.tsx b/web/src/components/nav/user-button.tsx index 6bb2dac..3a78a98 100644 --- a/web/src/components/nav/user-button.tsx +++ b/web/src/components/nav/user-button.tsx @@ -20,6 +20,11 @@ import { useQueryClient } from "@tanstack/react-query"; import { Check, LogOutIcon, Monitor, Moon, Sun, UserIcon } from "lucide-react"; import Link from "next/link"; import Image from "next/image"; +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from "@/components/ui/tooltip"; export function UserButton({ className, }: React.ButtonHTMLAttributes) { @@ -28,40 +33,49 @@ export function UserButton({ const queryClient = useQueryClient(); return ( - - - - - - Logged in as @{user.username} - - { - queryClient.clear(); - await logOut(); - }} - className="cursor-pointer" - > - - Logout - - - + + + Logged in as @{user.username} + + { + queryClient.clear(); + await logOut(); + }} + className="cursor-pointer" + > + + Logout + + + + + User Settings + + ); }