From 722ab565b90abd93c86cc8db2862f31d8f2501e7 Mon Sep 17 00:00:00 2001 From: Tizzz-555 <103275021+Tizzz-555@users.noreply.github.com> Date: Sun, 23 Jun 2024 12:20:58 +0200 Subject: [PATCH 01/10] tooltip begin --- components/NavBar/NavBar.tsx | 58 ++++++++++++++------ components/NavBar/Tooltip/Tooltip.jsx | 11 ++++ components/NavBar/Tooltip/Tooltip.module.css | 46 ++++++++++++++++ 3 files changed, 98 insertions(+), 17 deletions(-) create mode 100644 components/NavBar/Tooltip/Tooltip.jsx create mode 100644 components/NavBar/Tooltip/Tooltip.module.css diff --git a/components/NavBar/NavBar.tsx b/components/NavBar/NavBar.tsx index f41c700..75e081c 100644 --- a/components/NavBar/NavBar.tsx +++ b/components/NavBar/NavBar.tsx @@ -1,18 +1,19 @@ -'use client'; - -import { getOsuModeCookie } from '@/app/actions'; -import logo from '@/public/logos/small.svg'; -import Image from 'next/image'; -import Link from 'next/link'; -import { useEffect, useState } from 'react'; -import HamburgerMobile from './HamburgerMobile/HamburgerMobile'; -import ModeSwitcher from './ModeSwitcher/ModeSwitcher'; -import styles from './NavBar.module.css'; -import Routes from './Routes/Routes'; -import SearchButton from './SearchButton/SearchButton'; -import ThemeSwitcher from './ThemeSwitcher/ThemeSwitcher'; -import UserLogged from './UserLogged/UserLogged'; +"use client"; +import { getOsuModeCookie } from "@/app/actions"; +import logo from "@/public/logos/small.svg"; +import Image from "next/image"; +import Link from "next/link"; +import { useEffect, useState } from "react"; +import HamburgerMobile from "./HamburgerMobile/HamburgerMobile"; +import ModeSwitcher from "./ModeSwitcher/ModeSwitcher"; +import styles from "./NavBar.module.css"; +import Routes from "./Routes/Routes"; +import SearchButton from "./SearchButton/SearchButton"; +import ThemeSwitcher from "./ThemeSwitcher/ThemeSwitcher"; +import UserLogged from "./UserLogged/UserLogged"; +import moonSVG from "@/public/icons/moon.svg"; +import Tooltip from "./Tooltip/Tooltip"; export default function NavBar() { const [cookieMode, setCookieMode] = useState({}); @@ -23,10 +24,30 @@ export default function NavBar() { }); }, []); + const tooltipContent = ( +
+
Friends
+
Sign out
+
+ Moon Icon +
+
+ ); + return (