diff --git a/components/jwenn-sesyon/index.js b/components/jwenn-sesyon/index.js
deleted file mode 100644
index 40ad025..0000000
--- a/components/jwenn-sesyon/index.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import {useState} from 'react'
-import {Box, Button, Typography} from '@material-ui/core'
-import Image from 'next/image'
-
-import sessionLogo from '../../public/session-logo-50.png'
-
-import SesyonDialog from './sesyon-dialog'
-
-export default function JwennSesyon() {
- const [ouve, meteOuve] = useState(false)
-
- const handleClickOuve = () => {
- meteOuve(true)
- }
-
- const handleFemen = () => {
- meteOuve(false)
- }
-
- return (
- <>
-
- {ouve && (
-
- )}
- >
- )
-}
diff --git a/components/jwenn-sesyon/sesyon-dialog.js b/components/jwenn-sesyon/sesyon-dialog.js
deleted file mode 100644
index 91c628a..0000000
--- a/components/jwenn-sesyon/sesyon-dialog.js
+++ /dev/null
@@ -1,215 +0,0 @@
-import {useEffect, useState} from 'react'
-import Image from 'next/image'
-import PropTypes from 'prop-types'
-import {withStyles} from '@material-ui/core/styles'
-import {Box, Button, Divider, Snackbar, useMediaQuery, Link, Dialog} from '@material-ui/core'
-import MuiDialogTitle from '@material-ui/core/DialogTitle'
-import MuiDialogContent from '@material-ui/core/DialogContent'
-import IconButton from '@material-ui/core/IconButton'
-import CloseIcon from '@material-ui/icons/Close'
-import Typography from '@material-ui/core/Typography'
-import MuiAlert from '@material-ui/lab/Alert'
-import FileCopyIcon from '@material-ui/icons/FileCopy'
-import AndroidIcon from '@material-ui/icons/Android'
-import AppleIcon from '@material-ui/icons/Apple'
-import GetAppIcon from '@material-ui/icons/GetApp'
-import {Windows, Linux} from '@icons-pack/react-simple-icons'
-
-import sessionMobile from '../../public/session-mobile-914x1024.png'
-import sessionDesktop from '../../public/session-desktop-1024x549.png'
-import QRCode from '../../public/sesyon-qr-code.png'
-
-const sessionUrl = process.env.NEXT_PUBLIC_SESSION_URL || 'http://sesyon.o-k-i.net'
-
-function Alert(props) {
- return
-}
-
-const styles = theme => ({
- root: {
- margin: 0,
- padding: theme.spacing(2)
- },
- closeButton: {
- position: 'absolute',
- right: theme.spacing(1),
- top: theme.spacing(1),
- color: theme.palette.grey[500]
- }
-})
-
-const DialogTitle = withStyles(styles)(props => {
- const {children, classes, onClose, ...other} = props
- return (
-
- {children}
- {onClose ? (
-
-
-
- ) : null}
-
- )
-})
-
-const DialogContent = withStyles(theme => ({
- root: {
- padding: theme.spacing(2)
- }
-}))(MuiDialogContent)
-
-export default function SesyonDialog({ouve, handleFemen}) {
- const isMobile = useMediaQuery('(max-width:800px)')
- const [error, setError] = useState('')
- const [success, setSuccess] = useState('')
- const [ouveSnack, meteOuveSnack] = useState(false)
-
- const handleFemenSnack = (event, reason) => {
- if (reason === 'clickaway') {
- return
- }
-
- meteOuveSnack(false)
- setSuccess('')
- setError('')
- }
-
- const handleCopyUrl = () => {
- if (typeof window !== 'undefined') {
- navigator.clipboard.writeText(sessionUrl)
- .then(
- () => setSuccess('URL copiée avec succès'),
- () => setError('Error lors de la copie du lien')
- )
- }
-
- meteOuveSnack(false)
- }
-
- useEffect(() => {
- if (error || success) {
- meteOuveSnack(true)
- }
- }, [error, success, meteOuveSnack])
-
- return (
-
-
- {success && (
-
-
- {success}
-
-
- )}
- {error && (
-
-
- Une erreur s’est produite : {error.message}
-
-
- )}
-
- )
-}
-
-SesyonDialog.propTypes = {
- ouve: PropTypes.bool.isRequired,
- handleFemen: PropTypes.func.isRequired
-}
diff --git a/components/jwenn-signal/index.js b/components/jwenn-signal/index.js
deleted file mode 100644
index c7024e0..0000000
--- a/components/jwenn-signal/index.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import {useState} from 'react'
-import {Box, Button, Typography} from '@material-ui/core'
-import {Signal} from '@icons-pack/react-simple-icons'
-
-import SignalDialog from './signal-dialog'
-
-export default function JwennSignal() {
- const [ouve, meteOuve] = useState(false)
-
- const handleClickOuve = () => {
- meteOuve(true)
- }
-
- const handleFemen = () => {
- meteOuve(false)
- }
-
- return (
- <>
-
- {ouve && (
-
- )}
- >
- )
-}
diff --git a/components/jwenn-signal/signal-dialog.js b/components/jwenn-signal/signal-dialog.js
deleted file mode 100644
index b375fe0..0000000
--- a/components/jwenn-signal/signal-dialog.js
+++ /dev/null
@@ -1,91 +0,0 @@
-import Image from 'next/image'
-import {useRouter} from 'next/router'
-import PropTypes from 'prop-types'
-import {withStyles} from '@material-ui/core/styles'
-import {Box, Button, Dialog} from '@material-ui/core'
-import MuiDialogTitle from '@material-ui/core/DialogTitle'
-import MuiDialogContent from '@material-ui/core/DialogContent'
-import IconButton from '@material-ui/core/IconButton'
-import CloseIcon from '@material-ui/icons/Close'
-import Typography from '@material-ui/core/Typography'
-import {Signal} from '@icons-pack/react-simple-icons'
-
-import QRCode from '../../public/signal-qr-code.jpg'
-
-const signalGourpUrl = process.env.NEXT_PUBLIC_SIGNAL_URL || 'https://signal.org/fr/download/'
-
-const styles = theme => ({
- root: {
- margin: 0,
- padding: theme.spacing(2)
- },
- closeButton: {
- position: 'absolute',
- right: theme.spacing(1),
- top: theme.spacing(1),
- color: theme.palette.grey[500]
- }
-})
-
-const DialogTitle = withStyles(styles)(props => {
- const {children, classes, onClose, ...other} = props
- return (
-
- {children}
- {onClose ? (
-
-
-
- ) : null}
-
- )
-})
-
-const DialogContent = withStyles(theme => ({
- root: {
- padding: theme.spacing(2)
- }
-}))(MuiDialogContent)
-
-export default function SignalDialog({ouve, handleFemen}) {
- const router = useRouter()
-
- const handleClick = () => {
- router.push(signalGourpUrl)
- }
-
- return (
-
-
-
- )
-}
-
-SignalDialog.propTypes = {
- ouve: PropTypes.bool.isRequired,
- handleFemen: PropTypes.func.isRequired
-}
diff --git a/pages/index.js b/pages/index.js
index 6de2824..86ffc52 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -1,7 +1,6 @@
-import {useState} from 'react'
import PropTypes from 'prop-types'
import Image from 'next/image'
-import {Box, Container, Grid, Typography, useMediaQuery} from '@material-ui/core'
+import {Box, Container, Grid, Typography} from '@material-ui/core'
import {makeStyles} from '@material-ui/core/styles'
import GroupIcon from '@material-ui/icons/Group'
import MusicNoteIcon from '@material-ui/icons/MusicNote'
@@ -11,7 +10,6 @@ import TwitterIcon from '@material-ui/icons/Twitter'
import KatKayLa from '../components/kat-kay-la'
import HeadLayout from '../components/head-layout'
-import Carousel from '../components/carousel'
import Footer from '../components/footer'
import {jwennTeksKantite, jwennAwtisKantite} from '../lib/oki-api'
import RezoMenu from '../components/rezo-menu'
@@ -66,15 +64,12 @@ const REZO = [
export default function Home({kantiteAwtis, kantiteTeks}) {
const classes = useStyles()
- const [handleOpen, setHandleOpen] = useState(false)
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'}
]
- const matches = useMediaQuery('(max-width:600px)')
-
return (
@@ -100,11 +95,6 @@ export default function Home({kantiteAwtis, kantiteTeks}) {
{kantite.map(k => )}
-