Add back 'soumet' link

This commit is contained in:
2023-03-21 23:16:51 +04:00
parent 70e9162dae
commit 230d99594f
+13
View File
@@ -1,8 +1,10 @@
import {useRouter} from 'next/router'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import Container from '@mui/material/Container' import Container from '@mui/material/Container'
import Typography from '@mui/material/Typography' import Typography from '@mui/material/Typography'
import Box from '@mui/material/Box' import Box from '@mui/material/Box'
import Grid from '@mui/material/Grid' import Grid from '@mui/material/Grid'
import Button from '@mui/material/Button'
import HeadLayout from '../components/head-layout' import HeadLayout from '../components/head-layout'
import Footer from '../components/footer' import Footer from '../components/footer'
@@ -13,6 +15,8 @@ import KatKayLa from '../components/kat-kay-la'
import Custom500 from './500' import Custom500 from './500'
export default function Home({errorCode, errorMessage, stats}) { export default function Home({errorCode, errorMessage, stats}) {
const router = useRouter()
if (errorCode) { if (errorCode) {
console.log('⚠️ error', errorMessage) console.log('⚠️ error', errorMessage)
return <Custom500 statusCode={errorCode} /> return <Custom500 statusCode={errorCode} />
@@ -33,6 +37,15 @@ export default function Home({errorCode, errorMessage, stats}) {
Paroles, traductions et Fédiverse Paroles, traductions et Fédiverse
</Typography> </Typography>
</Container> </Container>
<Container sx={{marginTop: 2}}>
<Grid container justifyContent='center' spacing={2}>
<Grid item>
<Button variant='outlined' onClick={() => router.push('/soumet')}>
<strong>Soumettre des paroles</strong>
</Button>
</Grid>
</Grid>
</Container>
</Box> </Box>
<Container sx={{flexGrow: 100}}> <Container sx={{flexGrow: 100}}>
<Grid container spacing={2} sx={{marginBottom: 3}}> <Grid container spacing={2} sx={{marginBottom: 3}}>