|
| 1 | +import type { Metadata } from "next"; |
| 2 | +import { IBM_Plex_Sans, JetBrains_Mono } from "next/font/google"; |
| 3 | + |
| 4 | +import "./globals.css"; |
| 5 | + |
| 6 | +const ibmPlexSans = IBM_Plex_Sans({ |
| 7 | + subsets: ["latin"], |
| 8 | + weight: ["400", "500", "600", "700"], |
| 9 | + variable: "--font-sans" |
| 10 | +}); |
| 11 | + |
| 12 | +const jetbrainsMono = JetBrains_Mono({ |
| 13 | + subsets: ["latin"], |
| 14 | + weight: ["400", "500"], |
| 15 | + variable: "--font-mono" |
| 16 | +}); |
| 17 | + |
| 18 | +const productionOrigin = "https://webcompass.ai"; |
| 19 | +const productionPath = "/WebCompass/"; |
| 20 | +const productionUrl = `${productionOrigin}${productionPath}`; |
| 21 | +const siteUrl = process.env.NODE_ENV === "production" ? productionUrl : "http://localhost:3000/"; |
| 22 | +const ogImagePath = "/WebCompass/og-image.svg"; |
| 23 | +const faviconPath = "/WebCompass/favicon.svg"; |
| 24 | +const paperTitle = "WebCompass: Towards Holistic Evaluation of Web Coding for Multimodal Code Models"; |
| 25 | + |
| 26 | +export const metadata: Metadata = { |
| 27 | + title: paperTitle, |
| 28 | + description: |
| 29 | + "WebCompass: Towards Holistic Evaluation of Web Coding for Multimodal Code Models.", |
| 30 | + metadataBase: new URL(process.env.NODE_ENV === "production" ? productionOrigin : "http://localhost:3000"), |
| 31 | + alternates: { |
| 32 | + canonical: process.env.NODE_ENV === "production" ? productionPath : "/" |
| 33 | + }, |
| 34 | + openGraph: { |
| 35 | + title: paperTitle, |
| 36 | + description: "Towards Holistic Evaluation of Web Coding for Multimodal Code Models", |
| 37 | + url: siteUrl, |
| 38 | + siteName: "WebCompass", |
| 39 | + images: [ |
| 40 | + { |
| 41 | + url: ogImagePath, |
| 42 | + width: 1200, |
| 43 | + height: 630, |
| 44 | + alt: "WebCompass Project Page" |
| 45 | + } |
| 46 | + ], |
| 47 | + locale: "en_US", |
| 48 | + type: "website" |
| 49 | + }, |
| 50 | + twitter: { |
| 51 | + card: "summary_large_image", |
| 52 | + title: paperTitle, |
| 53 | + description: "Towards Holistic Evaluation of Web Coding for Multimodal Code Models", |
| 54 | + images: [ogImagePath] |
| 55 | + }, |
| 56 | + icons: { |
| 57 | + icon: faviconPath |
| 58 | + } |
| 59 | +}; |
| 60 | + |
| 61 | +export default function RootLayout({ children }: { children: React.ReactNode }) { |
| 62 | + return ( |
| 63 | + <html lang="en" suppressHydrationWarning> |
| 64 | + <body className={`${ibmPlexSans.variable} ${jetbrainsMono.variable} font-sans antialiased`}>{children}</body> |
| 65 | + </html> |
| 66 | + ); |
| 67 | +} |
| 68 | + |
0 commit comments