Add don button
This commit is contained in:
@@ -61,7 +61,7 @@ export default function RezoMenu({data}) {
|
|||||||
<Button
|
<Button
|
||||||
ref={anchorRef}
|
ref={anchorRef}
|
||||||
startIcon={<PublicIcon />}
|
startIcon={<PublicIcon />}
|
||||||
size='large'
|
size='small'
|
||||||
aria-controls='customized-menu'
|
aria-controls='customized-menu'
|
||||||
aria-haspopup='true'
|
aria-haspopup='true'
|
||||||
variant='contained'
|
variant='contained'
|
||||||
|
|||||||
+21
-16
@@ -1,10 +1,10 @@
|
|||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import {Box, Container, Grid, Typography} from '@material-ui/core'
|
import {Box, Container, Grid, Typography, Button} from '@material-ui/core'
|
||||||
import {makeStyles} from '@material-ui/core/styles'
|
import {makeStyles} from '@material-ui/core/styles'
|
||||||
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 {Pleroma, Peertube} from '@icons-pack/react-simple-icons'
|
import {Pleroma, Peertube, Paypal} from '@icons-pack/react-simple-icons'
|
||||||
import TelegramIcon from '@material-ui/icons/Telegram'
|
import TelegramIcon from '@material-ui/icons/Telegram'
|
||||||
import TwitterIcon from '@material-ui/icons/Twitter'
|
import TwitterIcon from '@material-ui/icons/Twitter'
|
||||||
|
|
||||||
@@ -18,14 +18,7 @@ import okiLogo from '../public/logo-192x110.png'
|
|||||||
|
|
||||||
const TELEGRAM_GROUP = process.env.NEXT_PUBLIC_TELEGRAM_GROUP || 'OrganisationKA'
|
const TELEGRAM_GROUP = process.env.NEXT_PUBLIC_TELEGRAM_GROUP || 'OrganisationKA'
|
||||||
const TWITTER_USERNAME = process.env.NEXT_PUBLIC_TWITTER_USERNAME || 'OrganisationKA'
|
const TWITTER_USERNAME = process.env.NEXT_PUBLIC_TWITTER_USERNAME || 'OrganisationKA'
|
||||||
|
const PAYPAL_DONATE_ID = process.env.NEXT_PUBLIC_PAYPAL_ADDRESS || '5Q3KPR79CAZVW'
|
||||||
const useStyles = makeStyles(theme => ({
|
|
||||||
root: {
|
|
||||||
'& > *': {
|
|
||||||
margin: theme.spacing(1.2)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}))
|
|
||||||
|
|
||||||
const REZO = [
|
const REZO = [
|
||||||
{
|
{
|
||||||
@@ -63,8 +56,6 @@ const REZO = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
export default function Home({kantiteAwtis, kantiteTeks}) {
|
export default function Home({kantiteAwtis, kantiteTeks}) {
|
||||||
const classes = useStyles()
|
|
||||||
|
|
||||||
const kantite = [
|
const kantite = [
|
||||||
{id: 1, tit: 'Tèks', soutit: 'Texte', kantite: kantiteTeks, route: '/teks'},
|
{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: 2, tit: 'Awtis', soutit: 'Artiste', kantite: kantiteAwtis, route: '/awtis?paj&paj=1'}
|
||||||
@@ -85,10 +76,24 @@ export default function Home({kantiteAwtis, kantiteTeks}) {
|
|||||||
Organisation KA Internationale
|
Organisation KA Internationale
|
||||||
</Typography>
|
</Typography>
|
||||||
</Container>
|
</Container>
|
||||||
<Container className={classes.root} style={{display: 'flex', justifyContent: 'center'}} align='center'>
|
<Container style={{marginBlock: '1em'}}>
|
||||||
<Box style={{display: 'flex', flexDirection: 'column'}}>
|
<Grid container align='center' spacing={2}>
|
||||||
<RezoMenu data={REZO} />
|
<Grid item xs={12}>
|
||||||
</Box>
|
<RezoMenu data={REZO} />
|
||||||
|
</Grid>
|
||||||
|
<Grid item xs={12}>
|
||||||
|
<Button
|
||||||
|
size='small'
|
||||||
|
variant='contained'
|
||||||
|
color='primary'
|
||||||
|
startIcon={<Paypal />}
|
||||||
|
onClick={() => window.open(`https://www.paypal.com/donate?hosted_button_id=${PAYPAL_DONATE_ID}`, '_blank')}
|
||||||
|
>
|
||||||
|
Don
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
</Container>
|
</Container>
|
||||||
<Container style={{marginBlock: '1em'}}>
|
<Container style={{marginBlock: '1em'}}>
|
||||||
<Grid container spacing={3}>
|
<Grid container spacing={3}>
|
||||||
|
|||||||
Reference in New Issue
Block a user