import {Container, Typography, Box, Grid} from '@mui/material'

import HeadLayout from '../components/head-layout'
import Footer from '../components/footer'
import {rezoNou} from '../lib/rezo-lis'
import KatRezoNou from '../components/kat-rezo-nou'

export default function Home() {
  return (
    <HeadLayout tab={0}>
      <Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
        <Box sx={{flexGrow: 1, marginTop: 1}}>
          <Container sx={{marginBottom: 3}} align='center'>
            <Typography sx={{fontWeight: 'bold'}} variant='h6' component='h1'>
              #OKi
            </Typography>
            <Typography sx={{fontWeight: 'bold'}} variant='h6' component='h2'>
              Organisation KA Internationale
            </Typography>
            <Typography sx={{fontStyle: 'italic'}} variant='caption' component='h3'>
              Paroles, traductions et actualités
            </Typography>
          </Container>
          <Container align='center'>
            <Typography gutterBottom variant='body' component='h4'>
              ⬇️ Nos réseaux ! ⬇️
            </Typography>
            <Grid container rowSpacing={1} columnSpacing={{xs: 1, sm: 2, md: 3}}>
              {rezoNou.map(({tit, img, soutit, ko, lyen}) => <KatRezoNou key={tit} tit={tit} img={img} soutit={soutit} ko={ko} lyen={lyen} />)}
            </Grid>
          </Container>
        </Box>
        <Footer />
      </Box>
    </HeadLayout>
  )
}
