fix: avoid remote font fetch during build
This commit is contained in:
@@ -7,6 +7,11 @@
|
|||||||
--font-mono: var(--font-geist-mono);
|
--font-mono: var(--font-geist-mono);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--font-geist-sans: Inter, Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||||
|
--font-geist-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
|
||||||
|
}
|
||||||
|
|
||||||
/* ═══ DARK THEME ═══ */
|
/* ═══ DARK THEME ═══ */
|
||||||
:root, [data-theme="dark"] {
|
:root, [data-theme="dark"] {
|
||||||
--background: #06080d;
|
--background: #06080d;
|
||||||
|
|||||||
@@ -1,20 +1,7 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Outfit, JetBrains_Mono } from "next/font/google";
|
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import { ClientProviders } from "@/components/ClientProviders";
|
import { ClientProviders } from "@/components/ClientProviders";
|
||||||
|
|
||||||
const outfit = Outfit({
|
|
||||||
variable: "--font-geist-sans",
|
|
||||||
subsets: ["latin"],
|
|
||||||
weight: ["300", "400", "500", "600", "700", "800"],
|
|
||||||
});
|
|
||||||
|
|
||||||
const jetbrains = JetBrains_Mono({
|
|
||||||
variable: "--font-geist-mono",
|
|
||||||
subsets: ["latin"],
|
|
||||||
weight: ["400", "500", "600"],
|
|
||||||
});
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "API Analytics — Neural Pulse",
|
title: "API Analytics — Neural Pulse",
|
||||||
description: "Real-time API usage analytics dashboard",
|
description: "Real-time API usage analytics dashboard",
|
||||||
@@ -26,7 +13,7 @@ export default function RootLayout({
|
|||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="zh" className={`${outfit.variable} ${jetbrains.variable} h-full antialiased`} suppressHydrationWarning>
|
<html lang="zh" className="h-full antialiased" suppressHydrationWarning>
|
||||||
<head>
|
<head>
|
||||||
<script dangerouslySetInnerHTML={{ __html: `
|
<script dangerouslySetInnerHTML={{ __html: `
|
||||||
(function(){
|
(function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user