diff --git a/apps/web/components/filter/index.tsx b/apps/web/components/filter/index.tsx index e769ff771..5a0ddd371 100644 --- a/apps/web/components/filter/index.tsx +++ b/apps/web/components/filter/index.tsx @@ -1,21 +1,75 @@ +"use client"; + import { twMerge } from "tailwind-merge"; import SearchFilter from "./search"; import SearchToggles from "./toggles"; +import { useEffect, useState } from "react"; +import { + AdjustmentsHorizontalIcon, + XMarkIcon, +} from "@heroicons/react/24/solid"; export default function Filter() { + const [drawerVisible, setDrawerVisible] = useState(false); + + useEffect(() => { + if (drawerVisible) { + document.body.style.overflow = "hidden"; + } else { + document.body.style.overflow = ""; + } + }, [drawerVisible]); + + function openDrawer() { + setDrawerVisible(true); + } + + function closeDrawer() { + setDrawerVisible(false); + } + return ( - <> +
+ ); } diff --git a/apps/web/components/header/tab-entry.tsx b/apps/web/components/header/tab-entry.tsx index b7b78982b..1310529f7 100644 --- a/apps/web/components/header/tab-entry.tsx +++ b/apps/web/components/header/tab-entry.tsx @@ -10,8 +10,9 @@ import { twMerge } from "tailwind-merge"; const tabClassName = twMerge( "min-w-[90px] flex-shrink-0 whitespace-nowrap p-4 text-sm uppercase hover:opacity-80", - "ring-primary-dark dark:ring-primary border-primary-light dark:border-primary-elevated-light", - "aria-current-page:border-b-2 outline-none ring-inset ring-primary focus:ring-2", + "border-primary-light dark:border-primary-elevated-light", + "aria-current-page:border-b-2 outline-none", + "focus:border-b-2 focus:border-primary-dark focus:dark:border-primary", ); interface DropdownProps {