Add about page

This commit is contained in:
Sakura Knoll
2022-11-07 10:04:44 +09:00 Unverified
parent a0c9cd1cd5
commit 3fcc12ce69
4 changed files with 162 additions and 20 deletions
+26 -14
View File
@@ -9,6 +9,7 @@ import {
Flex,
IconButton,
Switch,
Label,
} from '@theme-ui/components'
import NextLink from 'next/link'
import { useRouter } from 'next/router'
@@ -86,23 +87,34 @@ const Honkai3rdNavigator = ({ close }: Honkai3rdNavigatorProps) => {
<Icon path={mdiMenuSwap} size='20px' />
</NavLink>
</NextLink>
<Box>
<Switch
checked={colorMode === 'dark'}
onChange={(event) => {
setColorMode(event.target.checked ? 'dark' : 'default')
}}
<Flex
sx={{
'input ~ &': {
backgroundColor: 'muted',
},
'input:checked ~ &': {
backgroundColor: 'primary',
},
display: 'flex',
alignItems: 'center',
justifyContent: 'left',
mb: 2,
}}
label={colorMode === 'default' ? '☀️' : '🌙'}
/>
>
<Box>
<Switch
checked={colorMode === 'dark'}
onChange={(event) => {
setColorMode(event.target.checked ? 'dark' : 'default')
}}
sx={{
width: 50,
'input ~ &': {
backgroundColor: 'muted',
},
'input:checked ~ &': {
backgroundColor: 'primary',
},
}}
/>
</Box>
<Label>{colorMode === 'default' ? '☀️' : '🌙'}</Label>
</Flex>
</Box>
</Box>
)