From 5d726595fc2b73117114ee7433176b1b301f24ee Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Tue, 8 Sep 2026 20:25:38 -0400 Subject: [PATCH] fix(auth): center home and login layouts with full viewport height - Remove content margins when logged out in App - Switch Home to minH 100dvh full width - Center LoginForm vertically in full-height flex layout - Tidy Create Game button padding and border --- src/App.tsx | 2 +- src/components/Header.tsx | 5 +++-- src/components/Home.tsx | 2 +- src/components/authComponents/LoginForm.tsx | 11 ++++++----- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index d93755b..9b33405 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -58,7 +58,7 @@ function App() { <> {loggedIn ?
: ''} - + {/**/} : } /> diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 43c2b64..e9df194 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -191,9 +191,10 @@ export default function NavBar() { colorPalette={'blue'} size={'md'} asChild - w={'70%'} + px={4} + borderWidth={0} > - Create Game + Create Game Keyboard Shortcuts diff --git a/src/components/Home.tsx b/src/components/Home.tsx index 161f02f..006400b 100644 --- a/src/components/Home.tsx +++ b/src/components/Home.tsx @@ -4,7 +4,7 @@ import { VStack, Image, Button, Heading, Flex, Center } from '@chakra-ui/react' const Home = () => { return ( - +
Games Database Logo diff --git a/src/components/authComponents/LoginForm.tsx b/src/components/authComponents/LoginForm.tsx index 47ab793..c738eab 100644 --- a/src/components/authComponents/LoginForm.tsx +++ b/src/components/authComponents/LoginForm.tsx @@ -5,7 +5,7 @@ import { login } from '../../stateManagement/userState' import { Container, Button, - Input, HStack, Center, + Input, Center, Flex, } from '@chakra-ui/react' import {Field} from '../ui/field' import {useColorModeValue} from '../ui/color-mode' @@ -35,7 +35,8 @@ export default function LoginForm() { ) return ( - + +
-
- +
- +
+
) }