From e48a885309840e48506901bc1b5b667aea6e5578 Mon Sep 17 00:00:00 2001 From: Seth Forsgren Date: Thu, 24 Nov 2022 20:58:44 -0800 Subject: [PATCH] Better buttons and color consistency --- components/Info.tsx | 12 +++++++++--- components/Pause.tsx | 11 +++++++++-- components/PromptPanel.tsx | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) 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 ( <>