mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-14 20:23:46 +08:00
feat: add new theme berry (#860)
* feat: add theme berry * docs: add development notes * fix: fix blank page * chore: update implementation * fix: fix package.json * chore: update ui copy --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
This commit is contained in:
47
web/berry/src/views/Error/index.js
Normal file
47
web/berry/src/views/Error/index.js
Normal file
@@ -0,0 +1,47 @@
|
||||
import Box from '@mui/material/Box';
|
||||
import Button from '@mui/material/Button';
|
||||
import Container from '@mui/material/Container';
|
||||
import NotFound from 'assets/images/404.svg';
|
||||
import { useNavigate } from 'react-router';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export default function NotFoundView() {
|
||||
const navigate = useNavigate();
|
||||
const goBack = () => {
|
||||
navigate(-1);
|
||||
};
|
||||
return (
|
||||
<>
|
||||
<Container>
|
||||
<Box
|
||||
sx={{
|
||||
py: 12,
|
||||
maxWidth: 480,
|
||||
mx: 'auto',
|
||||
display: 'flex',
|
||||
minHeight: 'calc(100vh - 136px)',
|
||||
textAlign: 'center',
|
||||
alignItems: 'center',
|
||||
flexDirection: 'column',
|
||||
justifyContent: 'center'
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
component="img"
|
||||
src={NotFound}
|
||||
sx={{
|
||||
mx: 'auto',
|
||||
height: 260,
|
||||
my: { xs: 5, sm: 10 }
|
||||
}}
|
||||
/>
|
||||
|
||||
<Button size="large" variant="contained" onClick={goBack}>
|
||||
返回
|
||||
</Button>
|
||||
</Box>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user