Add an alert about stopping updating in-game data

This commit is contained in:
Sakura Knoll
2023-09-17 21:14:58 +09:00 Unverified
parent 5b25c616ad
commit cae35ab79e
+64 -51
View File
@@ -40,65 +40,78 @@ const Honkai3rdLayout: React.FC = ({ children }) => {
<Flex <Flex
sx={{ sx={{
height: '100%', height: '100%',
overflow: 'hidden' overflow: 'hidden',
flexDirection: 'column'
}} }}
> >
<Box <Box sx={{ flexShrink: 0, px: 3 }}>
sx={{ <h3>We have decided to stop updating in-game data since v6.9</h3>
width: ['100%', 240], <p>
borderRightWidth: 1, This is because we cannot extract in-game data anymore. If you can help us to extract the data, please join
borderRightStyle: 'solid', our discord channel and ping @s4kuraknoll.{' '}
borderRightColor: 'border', <a href="https://discord.gg/UnrM9T9PRs" target="_blank" rel="noreferrer">
overflowY: 'auto', https://discord.gg/UnrM9T9PRs
overflowX: 'hidden', </a>
display: [hiddenMobileNav ? 'none' : 'block', 'block'] </p>
}}
>
<Honkai3rdNavigator close={close} />
</Box> </Box>
<Box <Flex sx={{ flexGrow: 1 }}>
sx={{ <Box
flex: 1,
overflowY: 'auto',
overflowX: 'hidden',
scrollBehavior: 'smooth'
}}
onScroll={handleScroll}
ref={contentBoxRef}
>
<IconButton
sx={{ sx={{
width: 50, width: ['100%', 240],
height: 50, borderRightWidth: 1,
position: 'absolute', borderRightStyle: 'solid',
bottom: 1, borderRightColor: 'border',
right: 1, overflowY: 'auto',
zIndex: 1000, overflowX: 'hidden',
pointerEvents: scrolled ? 'auto' : 'none', display: [hiddenMobileNav ? 'none' : 'block', 'block']
opacity: scrolled ? 1 : 0,
transition: 'opacity 200ms ease-in-out',
backgroundColor: 'transparent'
}}
onClick={scrollToTop}
>
<Icon path={mdiArrowUp} size={1} />
</IconButton>
<Flex
sx={{
position: 'sticky',
display: ['block', 'none'],
top: 0,
height: 50,
bg: 'transparent'
}} }}
> >
<IconButton sx={{ width: 50, height: 50 }} onClick={() => setHiddenMobileNav(false)}> <Honkai3rdNavigator close={close} />
<Icon path={mdiMenu} size={1} /> </Box>
<Box
sx={{
flex: 1,
overflowY: 'auto',
overflowX: 'hidden',
scrollBehavior: 'smooth'
}}
onScroll={handleScroll}
ref={contentBoxRef}
>
<IconButton
sx={{
width: 50,
height: 50,
position: 'absolute',
bottom: 1,
right: 1,
zIndex: 1000,
pointerEvents: scrolled ? 'auto' : 'none',
opacity: scrolled ? 1 : 0,
transition: 'opacity 200ms ease-in-out',
backgroundColor: 'transparent'
}}
onClick={scrollToTop}
>
<Icon path={mdiArrowUp} size={1} />
</IconButton> </IconButton>
</Flex> <Flex
sx={{
position: 'sticky',
display: ['block', 'none'],
top: 0,
height: 50,
bg: 'transparent'
}}
>
<IconButton sx={{ width: 50, height: 50 }} onClick={() => setHiddenMobileNav(false)}>
<Icon path={mdiMenu} size={1} />
</IconButton>
</Flex>
{children} {children}
</Box> </Box>
</Flex>
</Flex> </Flex>
) )
} }