From 7353a99f033b37382c68c295c7f428163342687d Mon Sep 17 00:00:00 2001 From: Claire Nord Date: Fri, 12 Jul 2024 22:47:21 -0700 Subject: [PATCH] app components: restyle with more dark mode, Inter font, etc. --- app/components/board/board.tsx | 2 +- app/components/board/category.tsx | 4 +- app/components/board/clue.tsx | 6 +- app/components/copy-link-button.tsx | 4 +- app/components/dialog.tsx | 8 +-- app/components/dropdown-menu.tsx | 10 +-- app/components/footer.tsx | 4 +- app/components/game.tsx | 69 +++++++++++++------ app/components/header.tsx | 6 +- app/components/player/edit-player.tsx | 42 ++++++----- app/components/player/player.tsx | 37 +++++----- app/components/preview/preview.tsx | 4 +- app/components/prompt/lockout.tsx | 2 +- app/components/prompt/next-clue-form.tsx | 4 +- app/components/prompt/prompt.tsx | 6 +- app/components/upload.tsx | 2 +- app/root.tsx | 2 +- app/routes/_index/route.tsx | 2 +- app/routes/room.$roomName_.summary/chart.tsx | 2 +- app/routes/room.$roomName_.summary/route.tsx | 2 +- .../room.$roomName_.summary/summary.tsx | 6 +- app/supabase/client.ts | 2 +- app/utils/index.ts | 2 +- package.json | 2 +- tailwind.config.js | 10 ++- 25 files changed, 141 insertions(+), 99 deletions(-) diff --git a/app/components/board/board.tsx b/app/components/board/board.tsx index 98f9f0c8..ee8da6ee 100644 --- a/app/components/board/board.tsx +++ b/app/components/board/board.tsx @@ -54,7 +54,7 @@ function BoardComponent({ className="mx-auto max-w-screen-lg" style={{ minWidth: `${board.categoryNames.length * 50}px` }} > - +
{board.categories.map((category) => ( diff --git a/app/components/board/category.tsx b/app/components/board/category.tsx index 8a264685..f0718473 100644 --- a/app/components/board/category.tsx +++ b/app/components/board/category.tsx @@ -4,13 +4,13 @@ export function Category({ name, note }: { name: string; note?: string }) { const { fontSize, ref } = useFitText({ maxFontSize: 300 }); return ( -
+

- + {name}

diff --git a/app/components/board/clue.tsx b/app/components/board/clue.tsx index 47489949..743ffbc4 100644 --- a/app/components/board/clue.tsx +++ b/app/components/board/clue.tsx @@ -59,7 +59,7 @@ const ClueButton = React.forwardRef( onKeyDown(event); }} className={classNames( - "group relative h-full w-full bg-blue-1000 px-4 py-3 transition-colors", + "group relative h-full w-full bg-blue-bright px-4 py-3 transition-colors", { "hover:bg-blue-700 focus:bg-blue-700": playable, "bg-slate-800": !playable, @@ -71,7 +71,7 @@ const ClueButton = React.forwardRef( >

+

{props.answered ? ( { diff --git a/app/components/dialog.tsx b/app/components/dialog.tsx index 758cfb3d..c48535c7 100644 --- a/app/components/dialog.tsx +++ b/app/components/dialog.tsx @@ -40,17 +40,17 @@ export default function Dialog({ - + {title} - + {description} {children} diff --git a/app/components/dropdown-menu.tsx b/app/components/dropdown-menu.tsx index 243416db..49fe3d4d 100644 --- a/app/components/dropdown-menu.tsx +++ b/app/components/dropdown-menu.tsx @@ -4,8 +4,8 @@ function Item(props: DropdownMenu.MenuItemProps) { return ( {props.children} @@ -16,7 +16,7 @@ function Item(props: DropdownMenu.MenuItemProps) { function Content(props: DropdownMenu.MenuContentProps) { return ( {props.children} - + ); } @@ -37,4 +37,4 @@ const Portal = DropdownMenu.Portal; const Label = DropdownMenu.Label; const Separator = DropdownMenu.Separator; -export { Root, Trigger, Portal, Content, Item, Label, Separator }; +export { Content, Item, Label, Portal, Root, Separator, Trigger }; diff --git a/app/components/footer.tsx b/app/components/footer.tsx index 4bcb820b..c4bb8d0e 100644 --- a/app/components/footer.tsx +++ b/app/components/footer.tsx @@ -70,7 +70,7 @@ export default function Footer() { return (