This repository was archived by the owner on May 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy pathlayout.tsx
More file actions
113 lines (106 loc) · 2.6 KB
/
Copy pathlayout.tsx
File metadata and controls
113 lines (106 loc) · 2.6 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import React from "react"
import type { Metadata } from "next"
import { Inter } from "next/font/google"
import { SEO } from "@/lib/seo"
import { ogImageUrl } from "@/lib/og"
import { CookieConsentWrapper } from "@/components/CookieConsentWrapper"
import { RoomoteAnnouncementBanner } from "@/components/RoomoteAnnouncementBanner"
import { Providers } from "@/components/providers"
import Shell from "./shell"
import "./globals.css"
const inter = Inter({ subsets: ["latin"] })
const OG_TITLE = "Meet Roo Code"
const OG_DESCRIPTION = "Your AI Software Engineering Team in the IDE and the Cloud."
export const metadata: Metadata = {
metadataBase: new URL(SEO.url),
title: {
template: "%s | Roo Code",
default: SEO.title,
},
description: SEO.description,
alternates: {
canonical: SEO.url,
},
icons: {
icon: [
{ url: "/favicon.ico" },
{ url: "/favicon-16x16.png", sizes: "16x16", type: "image/png" },
{ url: "/favicon-32x32.png", sizes: "32x32", type: "image/png" },
],
apple: [{ url: "/apple-touch-icon.png" }],
other: [
{
rel: "android-chrome-192x192",
url: "/android-chrome-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
rel: "android-chrome-512x512",
url: "/android-chrome-512x512.png",
sizes: "512x512",
type: "image/png",
},
],
},
openGraph: {
title: SEO.title,
description: SEO.description,
url: SEO.url,
siteName: SEO.name,
images: [
{
url: ogImageUrl(OG_TITLE, OG_DESCRIPTION),
width: 1200,
height: 630,
alt: OG_TITLE,
},
],
locale: SEO.locale,
type: "website",
},
twitter: {
card: SEO.twitterCard,
title: SEO.title,
description: SEO.description,
images: [ogImageUrl(OG_TITLE, OG_DESCRIPTION)],
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
"max-snippet": -1,
"max-image-preview": "large",
"max-video-preview": -1,
},
},
keywords: [...SEO.keywords],
applicationName: SEO.name,
category: SEO.category,
}
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" suppressHydrationWarning>
<head>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/devicon.min.css"
/>
</head>
<body className={inter.className}>
<RoomoteAnnouncementBanner />
<div itemScope itemType="https://schema.org/WebSite">
<link itemProp="url" href={SEO.url} />
<meta itemProp="name" content={SEO.name} />
</div>
<Providers>
<Shell>{children}</Shell>
<CookieConsentWrapper />
</Providers>
</body>
</html>
)
}