Fix display

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-01-22 13:42:09 +04:00
parent 09932ac27b
commit 0097ac8254
5 changed files with 14 additions and 16 deletions
+6 -8
View File
@@ -8,14 +8,14 @@ import {jwennTeksKantite, jwennAwtisKantite} from '../lib/oki-api'
export default function Home({kantiteAwtis, kantiteTeks}) {
const kantite = [
{id: 1, tit: 'Tèks', soutit: 'Texte', kantite: kantiteTeks, route: '/teks'},
{id: 2, tit: 'Awtis', soutit: 'Artiste', kantite: kantiteAwtis, route: '/awtis?paj&paj=1'}
{id: 1, tit: 'Textes', kantite: kantiteTeks, route: '/teks'},
{id: 2, tit: 'Artistes', kantite: kantiteAwtis, route: '/awtis?paj&paj=1'}
]
return (
<HeadLayout tab={0}>
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
<Box sx={{flexGrow: 1, marginTop: 6}}>
<Box sx={{flexGrow: 1, marginTop: 1}}>
<Container align='center'>
<Typography variant='h6' component='h1'>
#OKi
@@ -24,11 +24,9 @@ export default function Home({kantiteAwtis, kantiteTeks}) {
Organisation KA Internationale
</Typography>
</Container>
<Container style={{marginBlock: '1em'}}>
<Grid container spacing={3}>
{kantite.map(k => <KatKayLa key={k.id} tit={k.tit} soutit={k.soutit} kantite={k.kantite} route={k.route} />)}
</Grid>
</Container>
<Grid container sx={{flexGrow: 1}} justifyContent='center' spacing={3}>
{kantite.map(k => <KatKayLa key={k.id} tit={k.tit} soutit={k.soutit} kantite={k.kantite} route={k.route} />)}
</Grid>
</Box>
<Footer />
</Box>