mirror of
https://github.com/prometheus/docs.git
synced 2026-02-05 15:45:27 +01:00
Package Lato font for Prometheus logo
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
// import type { Metadata } from "next";
|
||||
import { Inter } from "next/font/google";
|
||||
import { Lato } from "next/font/google";
|
||||
import {
|
||||
Anchor,
|
||||
AppShell,
|
||||
@@ -33,6 +34,14 @@ const interFont = Inter({
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
const latoFont = Lato({
|
||||
variable: "--font-lato",
|
||||
preload: true,
|
||||
subsets: ["latin"],
|
||||
weight: "300",
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
// export const metadata: Metadata = {
|
||||
// title: "Create Next App",
|
||||
// description: "Generated by create next app",
|
||||
@@ -46,7 +55,11 @@ export default function RootLayout({
|
||||
const [burgerOpened, { toggle: toggleBurger }] = useDisclosure();
|
||||
|
||||
return (
|
||||
<html lang="en" {...mantineHtmlProps} className={interFont.variable}>
|
||||
<html
|
||||
lang="en"
|
||||
{...mantineHtmlProps}
|
||||
className={`${interFont.variable} ${latoFont.variable}`}
|
||||
>
|
||||
<head>
|
||||
<ColorSchemeScript />
|
||||
</head>
|
||||
|
||||
@@ -109,7 +109,7 @@ export const Header = ({
|
||||
<Image src={prometheusLogo} height={32} alt="Prometheus logo" />
|
||||
<Text
|
||||
fz={25}
|
||||
ff="Lato Light"
|
||||
ff="var(--font-lato)"
|
||||
c="light-dark(var(--mantine-color-gray-7), var(--mantine-color-gray-0))"
|
||||
>
|
||||
Prometheus
|
||||
|
||||
Reference in New Issue
Block a user