feat: add a root layout
This commit is contained in:
parent
4fd97f1bdf
commit
99fc22eccc
3 changed files with 40 additions and 1 deletions
37
app/(root)/layout.js
Normal file
37
app/(root)/layout.js
Normal 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}</>;
|
||||||
|
}
|
|
@ -32,7 +32,9 @@ export const metadata = {
|
||||||
title: "MERNMail - a MERN stack webmail application",
|
title: "MERNMail - a MERN stack webmail application",
|
||||||
description:
|
description:
|
||||||
"MERNMail: Open-source webmail app built with MERN stack. Send, receive, & manage emails easily. Explore and contribute today!",
|
"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",
|
creator: "@MERNMail",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue