diff --git a/components/Info.tsx b/components/Info.tsx index 19bb538..f7ddd56 100644 --- a/components/Info.tsx +++ b/components/Info.tsx @@ -18,12 +18,18 @@ justify-content: center; export default function Info(){ const [open, setOpen] = useState(false); + var classNameCondition = "" + if (open) { + classNameCondition="fixed z-90 top-8 right-8 bg-sky-300 w-14 h-14 rounded-full drop-shadow-lg flex justify-center items-center text-sky-900 text-2xl hover:bg-sky-500 hover:drop-shadow-2xl" + } else { + classNameCondition="fixed z-90 top-8 right-8 bg-slate-100 w-14 h-14 rounded-full drop-shadow-lg flex justify-center items-center text-sky-900 text-2xl hover:bg-sky-500 hover:drop-shadow-2xl" + } + return ( <>