From 43994c237c06b23a6207836f16a4e9a3bb8ff30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Famibelle-Pronzola?= Date: Sat, 22 Jul 2023 13:02:11 +0400 Subject: [PATCH] Replace index pages by app folder --- app/layout.js | 74 ++++++++++++++++++++ app/page.js | 32 +++++++++ pages/_app.js | 164 --------------------------------------------- pages/_document.js | 58 ---------------- pages/index.js | 106 ----------------------------- 5 files changed, 106 insertions(+), 328 deletions(-) create mode 100644 app/layout.js create mode 100644 app/page.js delete mode 100644 pages/_app.js delete mode 100644 pages/_document.js delete mode 100644 pages/index.js diff --git a/app/layout.js b/app/layout.js new file mode 100644 index 0000000..a32c715 --- /dev/null +++ b/app/layout.js @@ -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 ( + + + + + + {children} +