You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mvfront-react/pages/_app.tsx

45 lines
1.4 KiB

import Head from 'next/head';
import '@styles/globals.css';
import '@styles/loader.css';
import '@styles/scss/config.scss';
import '@fortawesome/fontawesome-svg-core/styles.css';
// import nextI18NextConfig from '../next-i18next.config.js'
import {appWithTranslation} from 'next-i18next';
import {AppProvider} from '@services/context';
import Header from '@components/layouts/Header';
import Footer from '@components/layouts/Footer';
function Application({Component, pageProps}) {
const origin =
typeof window !== 'undefined' && window.location.origin
? window.location.origin
: 'http://localhost';
return (
<AppProvider>
<Head>
<link rel="icon" key="favicon" href="/favicon.ico" />
<meta property="og:type" content="website" key="og:type" />
<meta property="og:url" content={origin} key="og:url" />
<meta
property="og:image"
content="https://app.mieuxvoter.fr/app-mieux-voter.png"
key="og:image"
/>
</Head>
<main className="d-flex flex-column justify-content-between">
<div className="d-flex flex-grow-1 justify-content-center">
<Header />
<div className="d-flex flex-column h-100 w-100 align-items-start">
<Component {...pageProps} />
</div>
</div>
<Footer />
</main>
</AppProvider>
);
}
export default appWithTranslation(Application);