diff --git a/GZCTF/ClientApp/src/pages/games/[id]/Index.tsx b/GZCTF/ClientApp/src/pages/games/[id]/Index.tsx index 1c9b4fecd..6769951f0 100644 --- a/GZCTF/ClientApp/src/pages/games/[id]/Index.tsx +++ b/GZCTF/ClientApp/src/pages/games/[id]/Index.tsx @@ -30,7 +30,7 @@ const useStyles = createStyles((theme) => ({ position: 'relative', height: '40vh', display: 'flex', - background: ` rgba(0,0,0,0.2)`, + background: theme.colorScheme === "dark" ? ` rgba(0,0,0,0.2)` : theme.white, justifyContent: 'center', backgroundSize: 'cover', backgroundPosition: 'center center', @@ -56,7 +56,7 @@ const useStyles = createStyles((theme) => ({ maxWidth: 600, }, title: { - color: theme.white, + color: theme.colorScheme === 'dark' ? theme.colors.white[0] : theme.colors.gray[6], fontSize: 50, fontWeight: 900, lineHeight: 1.1, @@ -78,6 +78,9 @@ const useStyles = createStyles((theme) => ({ display: 'none', }, }, + date: { + color: theme.colorScheme === 'dark' ? theme.colors.white[0] : theme.colors.gray[6] + } })) const GameAlertMap = new Map([ @@ -239,18 +242,18 @@ const GameDetail: FC = () => {