feat: add a root layout

This commit is contained in:
Dorian Niemiec 2024-11-05 19:19:02 +01:00
parent 4fd97f1bdf
commit 99fc22eccc
3 changed files with 40 additions and 1 deletions

37
app/(root)/layout.js Normal file
View file

@ -0,0 +1,37 @@
import { ThemeProvider } from "next-themes";
export const metadata = {
title: "MERNMail - a MERN stack webmail application",
description:
"MERNMail: Open-source webmail app built with MERN stack. Send, receive, & manage emails easily. Explore and contribute today!",
openGraph: {
title: "MERNMail - a MERN stack webmail application",
description:
"MERNMail: Open-source webmail app built with MERN stack. Send, receive, & manage emails easily. Explore and contribute today!",
url: `${process.env.NEXT_PUBLIC_WEBSITE_URL}`,
type: "website",
images: [
{
url: `${process.env.NEXT_PUBLIC_WEBSITE_URL}/metadata/mernmail-cover.png`,
width: 2560,
height: 1440,
alt: "MERNMail - a MERN stack webmail application",
},
],
},
twitter: {
card: "summary_large_image",
site: "@MERNMail",
title: "MERNMail - a MERN stack webmail application",
description:
"MERNMail: Open-source webmail app built with MERN stack. Send, receive, & manage emails easily. Explore and contribute today!",
images: [
`${process.env.NEXT_PUBLIC_WEBSITE_URL}/metadata/mernmail-cover.png`,
],
creator: "@MERNMail",
},
};
export default function RootLayout({ children }) {
return <>{children}</>;
}

View file

@ -32,7 +32,9 @@ export const metadata = {
title: "MERNMail - a MERN stack webmail application",
description:
"MERNMail: Open-source webmail app built with MERN stack. Send, receive, & manage emails easily. Explore and contribute today!",
images: [`${process.env.NEXT_PUBLIC_WEBSITE_URL}/metadata/svrjs-cover.png`],
images: [
`${process.env.NEXT_PUBLIC_WEBSITE_URL}/metadata/mernmail-cover.png`,
],
creator: "@MERNMail",
},
};