Add back 'soumet' link
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import {useRouter} from 'next/router'
|
||||
import PropTypes from 'prop-types'
|
||||
import Container from '@mui/material/Container'
|
||||
import Typography from '@mui/material/Typography'
|
||||
import Box from '@mui/material/Box'
|
||||
import Grid from '@mui/material/Grid'
|
||||
import Button from '@mui/material/Button'
|
||||
|
||||
import HeadLayout from '../components/head-layout'
|
||||
import Footer from '../components/footer'
|
||||
@@ -13,6 +15,8 @@ import KatKayLa from '../components/kat-kay-la'
|
||||
import Custom500 from './500'
|
||||
|
||||
export default function Home({errorCode, errorMessage, stats}) {
|
||||
const router = useRouter()
|
||||
|
||||
if (errorCode) {
|
||||
console.log('⚠️ error', errorMessage)
|
||||
return <Custom500 statusCode={errorCode} />
|
||||
@@ -33,6 +37,15 @@ export default function Home({errorCode, errorMessage, stats}) {
|
||||
Paroles, traductions et Fédiverse
|
||||
</Typography>
|
||||
</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>
|
||||
<Container sx={{flexGrow: 100}}>
|
||||
<Grid container spacing={2} sx={{marginBottom: 3}}>
|
||||
|
||||
Reference in New Issue
Block a user