Add Twitter link to index
This commit is contained in:
+20
-5
@@ -1,11 +1,12 @@
|
|||||||
import {useState} from 'react'
|
import {useState} from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import {Button, Container, Grid, Typography, useMediaQuery} from '@material-ui/core'
|
import {Box, Button, Container, Grid, Link, Typography, useMediaQuery} from '@material-ui/core'
|
||||||
import {makeStyles} from '@material-ui/core/styles'
|
import {makeStyles} from '@material-ui/core/styles'
|
||||||
import HelpIcon from '@material-ui/icons/Help'
|
import HelpIcon from '@material-ui/icons/Help'
|
||||||
import GroupIcon from '@material-ui/icons/Group'
|
import GroupIcon from '@material-ui/icons/Group'
|
||||||
import MusicNoteIcon from '@material-ui/icons/MusicNote'
|
import MusicNoteIcon from '@material-ui/icons/MusicNote'
|
||||||
|
import TwitterIcon from '@material-ui/icons/Twitter'
|
||||||
import {Pleroma, Peertube, Nextcloud} from '@icons-pack/react-simple-icons'
|
import {Pleroma, Peertube, Nextcloud} from '@icons-pack/react-simple-icons'
|
||||||
|
|
||||||
import KatKayLa from '../components/kat-kay-la'
|
import KatKayLa from '../components/kat-kay-la'
|
||||||
@@ -52,6 +53,8 @@ const REZO = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const twitterUrl = `https://twitter.com/${process.env.NEXT_PUBLIC_TWITTER_USERNAME || ''}`
|
||||||
|
|
||||||
export default function Home({kantiteAwtis, kantiteTeks}) {
|
export default function Home({kantiteAwtis, kantiteTeks}) {
|
||||||
const classes = useStyles()
|
const classes = useStyles()
|
||||||
const [handleOpen, setHandleOpen] = useState(false)
|
const [handleOpen, setHandleOpen] = useState(false)
|
||||||
@@ -80,8 +83,12 @@ export default function Home({kantiteAwtis, kantiteTeks}) {
|
|||||||
Organisation KA Internationale
|
Organisation KA Internationale
|
||||||
</Typography>
|
</Typography>
|
||||||
</Container>
|
</Container>
|
||||||
<Container className={classes.root} align='center'>
|
<Container className={classes.root} style={{display: 'flex', justifyContent: 'center'}} align='center'>
|
||||||
|
<Box style={{display: 'flex', flexDirection: 'column'}}>
|
||||||
<RezoMenu data={REZO} />
|
<RezoMenu data={REZO} />
|
||||||
|
<JwennSesyon />
|
||||||
|
</Box>
|
||||||
|
<Box style={{display: 'flex', flexDirection: 'column'}}>
|
||||||
<Button
|
<Button
|
||||||
startIcon={<HelpIcon style={{fontSize: 25}} />}
|
startIcon={<HelpIcon style={{fontSize: 25}} />}
|
||||||
size='large'
|
size='large'
|
||||||
@@ -91,9 +98,17 @@ export default function Home({kantiteAwtis, kantiteTeks}) {
|
|||||||
>
|
>
|
||||||
Èd
|
Èd
|
||||||
</Button>
|
</Button>
|
||||||
</Container>
|
<Link target='_blank' rel='noopener noreferrer' href={twitterUrl}>
|
||||||
<Container align='center'>
|
<Button style={{marginTop: 10}} variant='outlined' color='primary'>
|
||||||
<JwennSesyon />
|
<Box paddingTop={1}>
|
||||||
|
<TwitterIcon style={{fontSize: 55}} />
|
||||||
|
<Typography style={{fontWeight: 'bold'}} variant='h6' component='h1'>
|
||||||
|
Twitter
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
</Box>
|
||||||
</Container>
|
</Container>
|
||||||
<Container style={{marginBlock: '1.5em'}}>
|
<Container style={{marginBlock: '1.5em'}}>
|
||||||
<Grid container spacing={3}>
|
<Grid container spacing={3}>
|
||||||
|
|||||||
Reference in New Issue
Block a user