Skip to content

Commit 4e50430

Browse files
feat: add viewport configuration and clean up metadata in layout
1 parent f1ebec8 commit 4e50430

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

app/layout.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
import { type ReactNode } from "react";
2-
import { type Metadata } from "next";
2+
import { type Metadata, type Viewport } from "next";
33
import TopNav from "@azure-fundamentals/components/TopNav";
44
import Footer from "@azure-fundamentals/components/Footer";
55
import ApolloProvider from "@azure-fundamentals/components/ApolloProvider";
66
import Cookie from "@azure-fundamentals/components/Cookie";
77
import "styles/globals.css";
88

9+
export const viewport: Viewport = {
10+
themeColor: "#3f51b5",
11+
width: "device-width",
12+
initialScale: 1,
13+
};
14+
915
export const metadata: Metadata = {
1016
appleWebApp: {
1117
capable: true,
@@ -71,7 +77,6 @@ export const metadata: Metadata = {
7177
follow: true,
7278
index: true,
7379
},
74-
themeColor: "#3f51b5",
7580
title: {
7681
default: "🧪 Practice Exams Platform | Ditectrev",
7782
template: "🧪 Practice Exams Platform | Ditectrev",
@@ -90,10 +95,6 @@ export const metadata: Metadata = {
9095
site: "@ditectrev",
9196
title: "🧪 Practice Exams Platform | Ditectrev",
9297
},
93-
viewport: {
94-
initialScale: 1,
95-
width: "device-width",
96-
},
9798
};
9899

99100
type RootLayoutProps = {

0 commit comments

Comments
 (0)