-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
67 lines (63 loc) · 1.44 KB
/
layout.tsx
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
56
57
58
59
60
61
62
63
64
65
66
67
import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next";
import type { Metadata, Viewport } from "next";
import { siteConfig } from "~/config";
import "~/styles/globals.css";
export const metadata: Metadata = {
title: siteConfig.name,
description: siteConfig.description,
openGraph: {
title: siteConfig.name,
description: siteConfig.description,
siteName: siteConfig.name,
type: "website",
url: siteConfig.url,
images: [
{
url: "/og.png",
width: 1200,
height: 630,
alt: siteConfig.name,
},
],
},
twitter: {
card: "summary_large_image",
title: siteConfig.name,
description: siteConfig.description,
creator: "@aabuhijleh_dev",
images: ["/og.png"],
},
creator: siteConfig.name,
authors: [{ name: siteConfig.name, url: siteConfig.url }],
keywords: [
"Abed",
"Abdurrahman",
"Abu-Hijleh",
"developer",
"software engineer",
"web development",
"full stack",
],
};
export const viewport: Viewport = {
themeColor: siteConfig.themeColor,
colorScheme: "dark",
};
type RootLayoutProps = {
children: React.ReactNode;
};
export default function RootLayout({ children }: RootLayoutProps) {
return (
<>
<html lang="en">
<head />
<body>
{children}
<Analytics />
<SpeedInsights />
</body>
</html>
</>
);
}