2020-12-04 20:16:24 +01:00
|
|
|
import React from 'react'
|
|
|
|
|
import PropTypes from 'prop-types'
|
|
|
|
|
import Head from 'next/head'
|
2020-12-12 03:26:40 +01:00
|
|
|
import {createMuiTheme, ThemeProvider} from '@material-ui/core/styles'
|
2020-12-04 20:16:24 +01:00
|
|
|
import CssBaseline from '@material-ui/core/CssBaseline'
|
2020-12-12 03:26:40 +01:00
|
|
|
|
|
|
|
|
const darkTheme = createMuiTheme({
|
|
|
|
|
palette: {
|
|
|
|
|
type: 'dark',
|
|
|
|
|
primary: {
|
|
|
|
|
light: '#81c784',
|
|
|
|
|
main: '#4caf50',
|
|
|
|
|
dark: '#388e3c',
|
|
|
|
|
contrastText: '#fff'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
2020-12-04 20:16:24 +01:00
|
|
|
|
|
|
|
|
export default function MyApp(props) {
|
|
|
|
|
const {Component, pageProps} = props
|
|
|
|
|
|
|
|
|
|
React.useEffect(() => {
|
|
|
|
|
const jssStyles = document.querySelector('#jss-server-side')
|
|
|
|
|
if (jssStyles) {
|
|
|
|
|
jssStyles.remove()
|
|
|
|
|
}
|
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<Head>
|
|
|
|
|
<title>#OKi - Organisation KA Internationale</title>
|
|
|
|
|
<meta charSet='utf-8' />
|
|
|
|
|
<meta name='description' content='#OKi (Organisation KA Internationale) a pour but de promouvoir les langues afro-diasporiques.' />
|
|
|
|
|
<meta name='author' content='Ced' />
|
|
|
|
|
<meta name='viewport' content='minimum-scale=1, initial-scale=1, width=device-width' />
|
|
|
|
|
<meta property='og:url' content='https://o-k-i.net' />
|
|
|
|
|
<meta property='og:type' content='website' />
|
|
|
|
|
<meta property='og:site_name' content='#OKi' />
|
|
|
|
|
<meta property='og:title' content='#OKi - Organisation KA Internationale' />
|
|
|
|
|
<meta property='og:description' content='#OKi (Organisation KA Internationale) a pour but de promouvoir les langues afro-diasporiques.' />
|
|
|
|
|
<meta property='og:locale' content='fr_FR' />
|
|
|
|
|
<meta property='og:image' content='http://o-k-i.net/logo.png' />
|
|
|
|
|
<meta property='og:image:secure_url' content='https://o-k-i.net/logo.png' />
|
|
|
|
|
<meta property='og:image:type' content='image/png' />
|
2020-12-19 01:48:19 +01:00
|
|
|
<meta property='og:image:width' content='551' />
|
|
|
|
|
<meta property='og:image:height' content='315' />
|
2020-12-04 20:16:24 +01:00
|
|
|
<meta property='og:image:alt' content='Logo #OKi - Organisation KA Internationale' />
|
|
|
|
|
</Head>
|
2020-12-12 03:26:40 +01:00
|
|
|
<ThemeProvider theme={darkTheme}>
|
2020-12-04 20:16:24 +01:00
|
|
|
<CssBaseline />
|
|
|
|
|
<Component {...pageProps} />
|
|
|
|
|
</ThemeProvider>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MyApp.propTypes = {
|
|
|
|
|
Component: PropTypes.elementType.isRequired,
|
|
|
|
|
pageProps: PropTypes.object.isRequired
|
|
|
|
|
}
|