Add divider to home
This commit is contained in:
+24
-8
@@ -1,5 +1,7 @@
|
|||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import {Container, Typography, Box} from '@mui/material'
|
import {Container, Typography, Box, Divider, Chip} from '@mui/material'
|
||||||
|
import ArrowCircleDownIcon from '@mui/icons-material/ArrowCircleDown'
|
||||||
|
import {createTheme, ThemeProvider} from '@mui/material/styles'
|
||||||
|
|
||||||
import HeadLayout from '../components/head-layout'
|
import HeadLayout from '../components/head-layout'
|
||||||
import Footer from '../components/footer'
|
import Footer from '../components/footer'
|
||||||
@@ -7,12 +9,24 @@ import RezoDialog from '../components/rezo/rezo-dialog'
|
|||||||
import DenyeTeks from '../components/teks/denye-teks'
|
import DenyeTeks from '../components/teks/denye-teks'
|
||||||
import {jwennDenyeTeks} from '../lib/oki-api'
|
import {jwennDenyeTeks} from '../lib/oki-api'
|
||||||
|
|
||||||
|
const theme = createTheme({
|
||||||
|
components: {
|
||||||
|
MuiDivider: {
|
||||||
|
styleOverrides: {
|
||||||
|
root: {
|
||||||
|
color: 'black',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
export default function Home({teks}) {
|
export default function Home({teks}) {
|
||||||
return (
|
return (
|
||||||
<HeadLayout tab={0}>
|
<HeadLayout tab={0}>
|
||||||
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
||||||
<Box sx={{flexGrow: 1, marginBottom: 3}}>
|
<Box sx={{flexGrow: 1, marginBottom: 4}}>
|
||||||
<Container sx={{marginBottom: 3}} align='center'>
|
<Container sx={{marginBottom: 2}} align='center'>
|
||||||
<Typography sx={{fontWeight: 'bold'}} variant='h6' component='h1'>
|
<Typography sx={{fontWeight: 'bold'}} variant='h6' component='h1'>
|
||||||
#OKi
|
#OKi
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -27,12 +41,14 @@ export default function Home({teks}) {
|
|||||||
<RezoDialog />
|
<RezoDialog />
|
||||||
</Container>
|
</Container>
|
||||||
</Box>
|
</Box>
|
||||||
<Container align='center'>
|
<Container>
|
||||||
<Typography sx={{fontWeight: 'bold'}} variant='h6' component='h2'>
|
<ThemeProvider theme={theme}>
|
||||||
⬇️ Derniers textes publiés ⬇️
|
<Divider variant='middle' sx={{marginBottom: 1}}>
|
||||||
</Typography>
|
<Chip icon={<ArrowCircleDownIcon />} label='Derniers textes publiés ' variant='outlined' />
|
||||||
</Container>
|
</Divider>
|
||||||
|
</ThemeProvider>
|
||||||
<DenyeTeks {...teks} />
|
<DenyeTeks {...teks} />
|
||||||
|
</Container>
|
||||||
<Footer />
|
<Footer />
|
||||||
</Box>
|
</Box>
|
||||||
</HeadLayout>
|
</HeadLayout>
|
||||||
|
|||||||
Reference in New Issue
Block a user