diff --git a/client/src/ErrorPage.tsx b/client/src/ErrorPage.tsx index 1aa878af..d57a3559 100644 --- a/client/src/ErrorPage.tsx +++ b/client/src/ErrorPage.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { Container, Alert, AlertIcon, AlertTitle, AlertDescription, Box } from '@chakra-ui/react' +import { Container, Alert, AlertIcon, AlertTitle, AlertDescription, Box, Center } from '@chakra-ui/react' import { AxiosError } from 'axios' import { useRouteError } from 'react-router-dom' import { HeaderTemplate } from './shared/navigation/molecules/HeaderTemplate' @@ -10,17 +10,19 @@ export const ErrorPage = () => { return ( <> - - - - - - Uh oh! - - {message} - - - +
+ + + + + + Uh oh! + + {message} + + + +
) } diff --git a/client/src/features/Home.tsx b/client/src/features/Home.tsx index 38c7ef6a..b0566254 100644 --- a/client/src/features/Home.tsx +++ b/client/src/features/Home.tsx @@ -1,5 +1,32 @@ +import { Alert, Button, Center, Container, Flex } from '@chakra-ui/react' import React from 'react' +import { useAuth } from './auth' +import { LoadingIndicator } from '../shared/molecules/LoadingIndicator' +import { RoomSelector } from '../shared/navigation/organisms/RoomSelector' export const HomePage = () => { - return

Home

+ const { isAuthenticated, isLoading, signIn } = useAuth() + if (isLoading) { + return + } + return ( +
+ + + {isAuthenticated ? ( + + + + ) : ( + + {' '} + to get started. + + )} + + +
+ ) } diff --git a/client/src/shared/navigation/organisms/RoomSelector.tsx b/client/src/shared/navigation/organisms/RoomSelector.tsx index 76df32d3..a09893c4 100644 --- a/client/src/shared/navigation/organisms/RoomSelector.tsx +++ b/client/src/shared/navigation/organisms/RoomSelector.tsx @@ -15,7 +15,7 @@ export const RoomSelector = () => { return ( <> - Rooms + Your Rooms