lsp-yggdrasil-web/src/pages/notfound.tsx

42 lines
2.0 KiB
TypeScript
Raw Normal View History

2022-07-06 16:06:18 +00:00
import { Box, Button, CssBaseline, Grid, Typography } from "@mui/material"
import { ThemeProvider } from "@mui/material/styles"
import { theme } from ".."
import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline'
import { useNavigate } from "react-router-dom"
export const PageNotFound = () => {
const navigate = useNavigate()
return <ThemeProvider theme={theme}>
<CssBaseline />
<Box style={{ 'minWidth': '100%', 'minHeight': '100%', 'display': 'flex' }}>
<Grid container direction="row" justifyContent="center" alignItems="center" spacing={3}>
<Grid item>
<ErrorOutlineIcon style={{width: '11rem', height: '11rem'}}/>
</Grid>
<Grid item style={{ 'maxWidth': '50%', 'maxHeight': '80%'}}>
<Grid container direction="column" justifyContent="center" alignItems="flex-start" spacing={1}>
<Grid item>
<Typography variant="h3">
Oops! Page not found!
</Typography>
</Grid>
<Grid item style={{ 'maxWidth': '85%', 'maxHeight': '60%'}}>
<Typography variant="body1" display="block" gutterBottom>
访URL然后就访问bug了访URL截图发给<strong> Lama </strong><div style={{'color': 'rgba(0,0,0,0)'}}></div>
</Typography>
</Grid>
<Grid item>
<Button variant="contained" color="primary" onClick={() => { navigate('/') }}>
</Button>
</Grid>
</Grid>
</Grid>
</Grid>
</Box>
</ThemeProvider>
}