feat: use snpro font
This commit is contained in:
@@ -8,6 +8,7 @@ import "~/css/main.css"
|
||||
import { Viewport } from "next"
|
||||
import { NextIntlClientProvider } from "next-intl"
|
||||
import { getMessages, unstable_setRequestLocale } from "next-intl/server"
|
||||
import localFont from "next/font/local"
|
||||
import { headers } from "next/headers"
|
||||
import { notFound } from "next/navigation"
|
||||
import Script from "next/script"
|
||||
@@ -100,6 +101,73 @@ export const generateMetadata = withHrefLang(async () => ({
|
||||
},
|
||||
}))
|
||||
|
||||
const snPro = localFont({
|
||||
variable: "--font-fans",
|
||||
preload: false,
|
||||
src: [
|
||||
{
|
||||
path: "../../font/SNPro-Thin.woff2",
|
||||
weight: "100",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-ThinItalic.woff2",
|
||||
weight: "100",
|
||||
style: "italic",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-Light.woff2",
|
||||
weight: "300",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-LightItalic.woff2",
|
||||
weight: "300",
|
||||
style: "italic",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-Regular.woff2",
|
||||
weight: "400",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-RegularItalic.woff2",
|
||||
weight: "400",
|
||||
style: "italic",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-Medium.woff2",
|
||||
weight: "500",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-MediumItalic.woff2",
|
||||
weight: "500",
|
||||
style: "italic",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-Semibold.woff2",
|
||||
weight: "600",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-SemiboldItalic.woff2",
|
||||
weight: "600",
|
||||
style: "italic",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-Bold.woff2",
|
||||
weight: "700",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "../../font/SNPro-BoldItalic.woff2",
|
||||
weight: "700",
|
||||
style: "italic",
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
modal,
|
||||
@@ -132,7 +200,11 @@ export default async function RootLayout({
|
||||
const messages = await getMessages()
|
||||
|
||||
return (
|
||||
<html lang={params.locale} className={colorScheme} suppressHydrationWarning>
|
||||
<html
|
||||
lang={params.locale}
|
||||
className={`${colorScheme} ${snPro.variable}`}
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<head>
|
||||
<ColorSchemeInjector />
|
||||
<ColorSchemeScript />
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
html {
|
||||
--border-color: #eee;
|
||||
--font-fans: theme("fontFamily.sans");
|
||||
--theme-color: var(--auto-theme-color, theme("colors.orange.500"));
|
||||
--hover-color: var(--auto-hover-color, theme("colors.zinc.100"));
|
||||
--header-height: auto;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user