diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8fab069 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/assets/fonts"] + path = src/assets/fonts + url = https://github.com/now-u/now-u-fonts.git diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 5089e35..db11697 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -2,7 +2,7 @@ import React, { lazy } from "react"; import { Navbar } from "@/components/Navbar"; import "./globals.css"; -import { Nunito, Nunito_Sans } from "next/font/google"; +import localFont from "next/font/local"; import { Footer } from "@/components/Footer"; import { getRequiredEnvironmentVariable } from "@/utils/getRequiredEnvironmentVariable"; import { Toaster } from "@/components/ui/toaster"; @@ -14,16 +14,31 @@ const GA_TAG = getRequiredEnvironmentVariable("GA_TAG_ID"); const GTAG_TAG = getRequiredEnvironmentVariable("GTAG_TAG_ID"); const AW_TAG = getRequiredEnvironmentVariable("AW_TAG_ID"); -const nunito = Nunito({ - subsets: ["latin"], - variable: "--font-nunito", -}); - -const nunitoSans = Nunito_Sans({ - subsets: ["latin"], - variable: "--font-nunito-sans", - weight: ["400"], -}); +const ppPangram = localFont({ + src: [ + { + path: '../assets/fonts/PPPangramSansRounded-Regular/PPPangramSansRounded-Regular.woff2', + weight: '400', + style: 'normal' + }, + { + path: '../assets/fonts/PPPangramSansRounded-Medium/PPPangramSansRounded-Medium.woff2', + weight: '500', + style: 'normal' + }, + { + path: '../assets/fonts/PPPangramSansRounded-Semibold/PPPangramSansRounded-Semibold.woff2', + weight: '600', + style: 'normal' + }, + { + path: '../assets/fonts/PPPangramSansRounded-Bold/PPPangramSansRounded-Bold.woff2', + weight: '700', + style: 'normal' + } + ], + variable: '--font-pppangram' +}) interface RootLayoutProps { children: React.ReactNode; @@ -31,7 +46,7 @@ interface RootLayoutProps { export default function RootLayout({ children }: RootLayoutProps): JSX.Element { return ( - + diff --git a/src/assets/fonts b/src/assets/fonts new file mode 160000 index 0000000..9e183a2 --- /dev/null +++ b/src/assets/fonts @@ -0,0 +1 @@ +Subproject commit 9e183a299b354fd22c78ccf272d06088212c8c15 diff --git a/tailwind.config.js b/tailwind.config.js index 600c6ba..9b1fab5 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -96,9 +96,9 @@ module.exports = { "accordion-up": "accordion-up 0.2s ease-out", }, fontFamily: { - sans: ["var(--font-nunito-sans)"], - heading: ["var(--font-nunito)"], - subheading: ["var(--font-nunito-sans)"], + sans: ["var(--font-pppangram)"], + heading: ["var(--font-pppangram)"], + subheading: ["var(--font-pppangram)"], }, }, },