|
1 | | -import type { Metadata } from "next"; |
| 1 | +import { Metadata } from "next" |
2 | 2 | import { Inter } from "next/font/google"; |
3 | 3 | import "./globals.css"; |
| 4 | +import { ThemeProvider } from "@/components/theme"; |
| 5 | +import { Navigation } from "@/components/navigation" |
| 6 | +import { cn } from "@/lib/utils"; |
| 7 | +import { Footer } from "@/components/footer"; |
4 | 8 |
|
5 | 9 | const inter = Inter({ subsets: ["latin"] }); |
6 | 10 |
|
7 | 11 | export const metadata: Metadata = { |
8 | | - title: "D_D RPC", |
9 | | - description: "D_D RPC is a dashboard for managing your decentralized RPCs.", |
10 | | -}; |
| 12 | + title: { |
| 13 | + default: "D_D RPC", |
| 14 | + template: `%s - "D_D RPC"`, |
| 15 | + }, |
| 16 | + //chore add real url |
| 17 | + metadataBase: new URL("https://ddrpc.developerdao.com"), |
| 18 | + description: "D_D RPC is a gatweay to Web3 world.", |
| 19 | + keywords: [ |
| 20 | + "Developer DAO", |
| 21 | + "Web3", |
| 22 | + "RPC", |
| 23 | + "Gateway", |
| 24 | + "Decentralized", |
| 25 | + ], |
| 26 | + authors: [ |
| 27 | + { |
| 28 | + //chore add other authors |
| 29 | + name: "@PSkinnerTech, @vorcigernix", |
| 30 | + }, |
| 31 | + ], |
| 32 | + openGraph: { |
| 33 | + type: "website", |
| 34 | + locale: "en_US", |
| 35 | + url: "https://ddrpc.developerdao.com", |
| 36 | + title: "D_D RPC", |
| 37 | + description: "D_D RPC is a gatweay to Web3 world.", |
| 38 | + siteName: "D_D RPC", |
| 39 | + images: [ |
| 40 | + { |
| 41 | + url: "https://ddrpc.developerdao.com/og-image.png", |
| 42 | + width: 1200, |
| 43 | + height: 630, |
| 44 | + alt: "D_D RPC", |
| 45 | + }, |
| 46 | + ], |
| 47 | + }, |
| 48 | + twitter: { |
| 49 | + card: "summary_large_image", |
| 50 | + title: "D_D RPC", |
| 51 | + description: "D_D RPC is a gatweay to Web3 world.", |
| 52 | + images: "https://ddrpc.developerdao.com/og-image.png", |
| 53 | + }, |
| 54 | + icons: { |
| 55 | + icon: "/favicon.ico", |
| 56 | + shortcut: "/favicon-16x16.png", |
| 57 | + apple: "/apple-touch-icon.png", |
| 58 | + }, |
| 59 | + manifest: "site.webmanifest", |
| 60 | +} |
| 61 | + |
| 62 | +interface RootLayoutProps { |
| 63 | + children: React.ReactNode |
| 64 | +} |
11 | 65 |
|
12 | | -export default function RootLayout({ |
13 | | - children, |
14 | | -}: { |
15 | | - children: React.ReactNode; |
16 | | -}) { |
| 66 | +export default function RootLayout({ children }: RootLayoutProps) { |
17 | 67 | return ( |
18 | | - <html lang="en"> |
19 | | - <body className={inter.className}>{children}</body> |
| 68 | + <html lang="en" suppressHydrationWarning> |
| 69 | + <head /> |
| 70 | + |
| 71 | + <body |
| 72 | + className={cn( |
| 73 | + "min-h-screen bg-background font-sans antialiased", |
| 74 | + inter.className |
| 75 | + )} |
| 76 | + > <ThemeProvider |
| 77 | + attribute="class" |
| 78 | + defaultTheme="system" |
| 79 | + enableSystem |
| 80 | + disableTransitionOnChange |
| 81 | + > |
| 82 | + <div> |
| 83 | + {children} |
| 84 | + </div> |
| 85 | + </ThemeProvider></body> |
| 86 | + |
20 | 87 | </html> |
21 | 88 | ); |
22 | 89 | } |
0 commit comments