diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 565f064f..47428463 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -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 ( - + diff --git a/src/css/variables.css b/src/css/variables.css index ffae123b..17570f82 100644 --- a/src/css/variables.css +++ b/src/css/variables.css @@ -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; diff --git a/src/font/SNPro-Bold.woff2 b/src/font/SNPro-Bold.woff2 new file mode 100644 index 00000000..3a160d58 Binary files /dev/null and b/src/font/SNPro-Bold.woff2 differ diff --git a/src/font/SNPro-BoldItalic.woff2 b/src/font/SNPro-BoldItalic.woff2 new file mode 100644 index 00000000..841ee2f1 Binary files /dev/null and b/src/font/SNPro-BoldItalic.woff2 differ diff --git a/src/font/SNPro-Light.woff2 b/src/font/SNPro-Light.woff2 new file mode 100644 index 00000000..182f7890 Binary files /dev/null and b/src/font/SNPro-Light.woff2 differ diff --git a/src/font/SNPro-LightItalic.woff2 b/src/font/SNPro-LightItalic.woff2 new file mode 100644 index 00000000..1b1ff2fc Binary files /dev/null and b/src/font/SNPro-LightItalic.woff2 differ diff --git a/src/font/SNPro-Medium.woff2 b/src/font/SNPro-Medium.woff2 new file mode 100644 index 00000000..dfaafe85 Binary files /dev/null and b/src/font/SNPro-Medium.woff2 differ diff --git a/src/font/SNPro-MediumItalic.woff2 b/src/font/SNPro-MediumItalic.woff2 new file mode 100644 index 00000000..46973106 Binary files /dev/null and b/src/font/SNPro-MediumItalic.woff2 differ diff --git a/src/font/SNPro-Regular.woff2 b/src/font/SNPro-Regular.woff2 new file mode 100644 index 00000000..e1924160 Binary files /dev/null and b/src/font/SNPro-Regular.woff2 differ diff --git a/src/font/SNPro-RegularItalic.woff2 b/src/font/SNPro-RegularItalic.woff2 new file mode 100644 index 00000000..330bbee7 Binary files /dev/null and b/src/font/SNPro-RegularItalic.woff2 differ diff --git a/src/font/SNPro-Semibold.woff2 b/src/font/SNPro-Semibold.woff2 new file mode 100644 index 00000000..b439f672 Binary files /dev/null and b/src/font/SNPro-Semibold.woff2 differ diff --git a/src/font/SNPro-SemiboldItalic.woff2 b/src/font/SNPro-SemiboldItalic.woff2 new file mode 100644 index 00000000..6c7be746 Binary files /dev/null and b/src/font/SNPro-SemiboldItalic.woff2 differ diff --git a/src/font/SNPro-Thin.woff2 b/src/font/SNPro-Thin.woff2 new file mode 100644 index 00000000..00bc3d8b Binary files /dev/null and b/src/font/SNPro-Thin.woff2 differ diff --git a/src/font/SNPro-ThinItalic.woff2 b/src/font/SNPro-ThinItalic.woff2 new file mode 100644 index 00000000..a6935f4e Binary files /dev/null and b/src/font/SNPro-ThinItalic.woff2 differ