-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_app.tsx
More file actions
55 lines (42 loc) · 1.63 KB
/
_app.tsx
File metadata and controls
55 lines (42 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import type { AppProps } from "next/app";
import { generateDefaultSeo } from "next-seo/pages";
import Head from "next/head";
import { ContentfulLivePreviewProvider } from "@contentful/live-preview/react";
import "../scss/globals.scss";
import Footer from "@/layout/Footer";
import Header from "@/layout/Header";
import { DEFAULT_SEO_OPTIONS, LOCALE } from "@/helpers/constants";
const App = ({ Component, pageProps }: AppProps) => {
const preview = pageProps.preview || false;
return (
<>
<Head>
{/* General */}
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
{/* Favicons */}
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v2" />
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png?v2" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v2" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v2" />
<meta name="apple-mobile-web-app-title" content="CRRU" />
<link rel="manifest" href="/site.webmanifest" />
<meta name="theme-color" content="#000" />
{/* SEO */}
{generateDefaultSeo(DEFAULT_SEO_OPTIONS)}
</Head>
<Header />
<main>
<ContentfulLivePreviewProvider
locale={LOCALE}
enableInspectorMode={preview}
enableLiveUpdates={preview}
>
<Component {...pageProps} />
</ContentfulLivePreviewProvider>
</main>
<Footer />
</>
);
};
export default App;