Skip to content

The only tool you need to know what is happening and how to fix it.

1.6 KB
Raw Blame
import { SiteHeader } from "@/components/site-header";
import { SiteFooter } from "@/components/site-footer";
import { MotionPolish } from "@/components/motion-polish";
import { CookieConsent } from "@/components/cookie-consent";
import type { Metadata } from "next";
import { JetBrains_Mono, IBM_Plex_Mono, Inter } from "next/font/google";
import "./globals.css";

// Dark-only site, no theme toggle.

const jetbrainsMono = JetBrains_Mono({
  variable: "--font-display",
  subsets: ["latin"],
  weight: ["400", "500", "600", "700"],
  display: "swap",
});

const ibmPlexMono = IBM_Plex_Mono({
  variable: "--font-mono",
  subsets: ["latin"],
  weight: ["400", "500", "600"],
  display: "swap",
});

const inter = Inter({
  variable: "--font-body",
  subsets: ["latin"],
  display: "swap",
});

export const metadata: Metadata = {
  metadataBase: new URL("https://tracewayapp.com"),
  alternates: {
    canonical: "./",
  },
  title: "Traceway · Your OpenTelemetry home",
  description:
    "Bring your data. Get the whole picture. Open-source observability. Self-host or run on Traceway Cloud.",
  icons: {
    icon: [
      { url: "/favicon.svg", type: "image/svg+xml" },
      { url: "/favicon.ico", sizes: "any" },
    ],
    apple: "/apple-touch-icon.png",
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html
      lang="en"
      className={`${jetbrainsMono.variable} ${ibmPlexMono.variable} ${inter.variable}`}
    >
      <body className="antialiased">
        <SiteHeader />
        {children}
        <SiteFooter />
        <MotionPolish />
        <CookieConsent />
      </body>
    </html>
  );
}