Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit b01f1ae

Browse files
committed
Update index.tsx
1 parent 4a42e05 commit b01f1ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/Components/Intro/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
GridItem,
77
Image,
88
Text,
9+
useColorMode,
910
} from '@chakra-ui/react';
1011
import '@fontsource/inter/500.css';
1112
import '@fontsource/inter/700.css';
@@ -16,6 +17,7 @@ import { FaDiscord } from 'react-icons/fa';
1617
const codeLaunched = false;
1718

1819
const IntroComponent = () => {
20+
const { colorMode } = useColorMode();
1921
return (
2022
<Flex
2123
flexDirection={{ base: 'column', lg: 'row' }}
@@ -83,7 +85,8 @@ const IntroComponent = () => {
8385
pl="1rem"
8486
border="1px solid black"
8587
fontWeight="bold"
86-
color="black"
88+
color={colorMode === 'dark' ? 'black' : 'white '}
89+
backgroundColor={colorMode === 'dark' ? 'white' : 'black'}
8790
pr={{ base: '1rem', xl: '1.2rem' }}
8891
py={{ base: '1rem', xl: '1.5rem' }}
8992
borderRadius={{ base: '.438rem', xl: '0.688rem' }}

0 commit comments

Comments
 (0)