Skip to content

Commit eed628a

Browse files
authored
🎨 Improve styles (#673)
1 parent 6b40df5 commit eed628a

File tree

5 files changed

+7
-74
lines changed

5 files changed

+7
-74
lines changed

frontend/src/components/Common/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import SidebarItems from './SidebarItems'
2424
const Sidebar: React.FC = () => {
2525
const queryClient = useQueryClient()
2626
const bgColor = useColorModeValue('ui.white', 'ui.dark')
27-
const textColor = useColorModeValue('ui.light', 'ui.white')
27+
const textColor = useColorModeValue('ui.dark', 'ui.white')
2828
const secBgColor = useColorModeValue('ui.secondary', 'ui.darkSlate')
2929
const currentUser = queryClient.getQueryData<UserOut>('currentUser')
3030
const { isOpen, onOpen, onClose } = useDisclosure()

frontend/src/components/Common/SidebarItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface SidebarItemsProps {
1818

1919
const SidebarItems: React.FC<SidebarItemsProps> = ({ onClose }) => {
2020
const queryClient = useQueryClient()
21-
const textColor = useColorModeValue('ui.main', 'ui.light')
21+
const textColor = useColorModeValue('ui.main', 'ui.white')
2222
const bgActive = useColorModeValue('#E2E8F0', '#4A5568')
2323
const currentUser = queryClient.getQueryData<UserOut>('currentUser')
2424

frontend/src/index.css

Lines changed: 0 additions & 68 deletions
This file was deleted.

frontend/src/routes/_layout/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Container, Text } from '@chakra-ui/react'
1+
import { Box, Container, Text } from '@chakra-ui/react'
22
import { useQueryClient } from 'react-query'
33
import { createFileRoute } from '@tanstack/react-router'
44

@@ -15,11 +15,13 @@ function Dashboard() {
1515

1616
return (
1717
<>
18-
<Container maxW="full" pt={12}>
18+
<Container maxW="full">
19+
<Box pt={12} m={4}>
1920
<Text fontSize="2xl">
2021
Hi, {currentUser?.full_name || currentUser?.email} 👋🏼
2122
</Text>
2223
<Text>Welcome back, nice to see you again!</Text>
24+
</Box>
2325
</Container>
2426
</>
2527
)

frontend/src/theme.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ const theme = extendTheme({
1313
secondary: '#EDF2F7',
1414
success: '#48BB78',
1515
danger: '#E53E3E',
16-
light: '#E2E8F0',
17-
dark: '#1A202C',
1816
white: '#FFFFFF',
17+
dark: '#1A202C',
1918
darkSlate: '#252D3D',
2019
},
2120
},

0 commit comments

Comments
 (0)