Replace index pages by app folder
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
import Footer from '../components/footer'
|
||||
import Navigasyon from '../components/navigasyon'
|
||||
import AuthProvider from './auth-provider'
|
||||
import ThemeRegistry from './theme-registy'
|
||||
|
||||
export const metadata = {
|
||||
metadataBase: new URL('https://oki.re'),
|
||||
manifest: '/manifest.json',
|
||||
title: 'OKI | Organisation KA Internationale. Paroles et traductions.',
|
||||
description: 'Organisation KA Internationale a pour but de promouvoir le Medukam (ou Wanni Wannan) et les productions afro-diasporiques.',
|
||||
author: 'OKI',
|
||||
category: 'music',
|
||||
creator: 'OKI',
|
||||
publisher: 'OKI',
|
||||
applicationName: 'OKI | Organisation KA Internationale. Paroles et traductions.',
|
||||
openGraph: {
|
||||
title: 'OKI | Organisation KA Internationale. Paroles et traductions.',
|
||||
description: 'Organisation KA Internationale a pour but de promouvoir le Medukam (ou Wanni Wannan) et les productions afro-diasporiques.',
|
||||
url: 'https://oki.re',
|
||||
siteName: 'OKI | Organisation KA Internationale. Paroles et traductions.',
|
||||
images: [
|
||||
{
|
||||
url: 'htts://oki.re/logo-512x512.png',
|
||||
width: 512,
|
||||
height: 512
|
||||
}
|
||||
],
|
||||
locale: 'fr_FR',
|
||||
type: 'website'
|
||||
},
|
||||
twitter: {
|
||||
site: '@OrganisationKA',
|
||||
card: 'summary_large_image',
|
||||
title: 'OKI | Organisation KA Internationale. Paroles et traductions.',
|
||||
description: 'Organisation KA Internationale a pour but de promouvoir le Medukam (ou Wanni Wannan) et les productions afro-diasporiques.',
|
||||
creator: '@OrganisationKA',
|
||||
images: {
|
||||
url: 'https://oki.re/logo-512x512.png',
|
||||
alt: 'OKI Logo',
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
const jsonLd = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Organization',
|
||||
url: 'https://oki.re',
|
||||
email: 'kontak@oki.re',
|
||||
keywords: ['OKI', 'Organisation KA Internationale', 'Paroles', 'Pawol', 'Medukam', 'Wanni Wannan'],
|
||||
legalName: 'Organisation KA Internationale',
|
||||
location: 'Île de La Réunion'
|
||||
}
|
||||
|
||||
export default async function RootLayout({children, Session}) {
|
||||
return (
|
||||
<html lang='fr'>
|
||||
<body>
|
||||
<AuthProvider session={Session}>
|
||||
<ThemeRegistry>
|
||||
<Navigasyon />
|
||||
{children}
|
||||
<Footer />
|
||||
</ThemeRegistry>
|
||||
</AuthProvider>
|
||||
<section>
|
||||
<script
|
||||
type='application/ld+json'
|
||||
dangerouslySetInnerHTML={{__html: JSON.stringify(jsonLd)}}
|
||||
/>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
import Box from '@mui/material/Box'
|
||||
import Container from '@mui/material/Container'
|
||||
import {notFound} from 'next/navigation'
|
||||
import {jwennStats} from '../lib/oki-api'
|
||||
|
||||
import Statistik from '../components/akey/statistik'
|
||||
import Akey from '../components/akey'
|
||||
|
||||
import okiLogo from '../public/logo-512x512.png'
|
||||
|
||||
async function jwennDone() {
|
||||
const statistik = await jwennStats()
|
||||
|
||||
if (!statistik) {
|
||||
notFound()
|
||||
}
|
||||
|
||||
return statistik
|
||||
}
|
||||
|
||||
export default async function Page() {
|
||||
const statistik = await jwennDone()
|
||||
|
||||
return (
|
||||
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
||||
<Akey logo={okiLogo} />
|
||||
<Container sx={{flexGrow: 100}}>
|
||||
<Statistik statistik={statistik} />
|
||||
</Container>
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user