forked from Nutlope/llamacoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
60 lines (57 loc) · 1.35 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
import type { Metadata } from "next";
import "./globals.css";
import Image from "next/image";
import bgImg from "@/public/halo.png";
import PlausibleProvider from "next-plausible";
let title = "Llama Coder – AI Code Generator";
let description = "Generate your next app with Llama 3.1 405B";
let url = "https://llamacoder.io/";
let ogimage = "https://llamacoder.io/og-image.png";
let sitename = "llamacoder.io";
export const metadata: Metadata = {
metadataBase: new URL(url),
title,
description,
icons: {
icon: "/favicon.ico",
},
openGraph: {
images: [ogimage],
title,
description,
url: url,
siteName: sitename,
locale: "en_US",
type: "website",
},
twitter: {
card: "summary_large_image",
images: [ogimage],
title,
description,
},
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<head>
<PlausibleProvider domain="llamacoder.io" />
</head>
<body className="bg-brand antialiased">
<div className="absolute inset-x-0 flex justify-center">
<Image
src={bgImg}
alt=""
className="w-full max-w-[1200px] mix-blend-screen"
priority
/>
</div>
<div className="isolate">{children}</div>
</body>
</html>
);
}