Use bundled Arimo instead of Google Fonts so Docker builds work without fetching Inter.
This commit is contained in:
+17
-3
@@ -1,9 +1,23 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
import { Inter } from "next/font/google";
|
import localFont from "next/font/local";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import { Providers } from "./providers";
|
import { Providers } from "./providers";
|
||||||
|
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
const sans = localFont({
|
||||||
|
src: [
|
||||||
|
{
|
||||||
|
path: "../assets/fonts/Arimo-Regular.ttf",
|
||||||
|
weight: "400",
|
||||||
|
style: "normal",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "../assets/fonts/Arimo-Bold.ttf",
|
||||||
|
weight: "700",
|
||||||
|
style: "normal",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
display: "swap",
|
||||||
|
});
|
||||||
|
|
||||||
const SITE_NAME = "Songs2VID";
|
const SITE_NAME = "Songs2VID";
|
||||||
const DEFAULT_TITLE = "Songs2VID";
|
const DEFAULT_TITLE = "Songs2VID";
|
||||||
@@ -26,7 +40,7 @@ export default function RootLayout({
|
|||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<body className={inter.className} suppressHydrationWarning>
|
<body className={sans.className} suppressHydrationWarning>
|
||||||
<Providers>{children}</Providers>
|
<Providers>{children}</Providers>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user