refactor(website): move fonts to lib (#5963)

Add manrope
This commit is contained in:
Jamil
2024-07-22 15:07:10 -07:00
committed by GitHub
parent 45879ba481
commit 420d712bad
2 changed files with 13 additions and 5 deletions

View File

@@ -7,11 +7,7 @@ import RootNavbar from "@/components/RootNavbar";
import Banner from "@/components/Banner";
import Script from "next/script";
import Footer from "@/components/Footer";
import { Source_Sans_3 } from "next/font/google";
const source_sans_3 = Source_Sans_3({
subsets: ["latin"],
weight: ["200", "300", "400", "500", "600", "700", "800", "900"],
});
import { source_sans_3 } from "@/lib/fonts";
import { HiArrowLongRight } from "react-icons/hi2";
import { usePathname, useSearchParams } from "next/navigation";
import Analytics from "@/components/Analytics";

12
website/src/lib/fonts.ts Normal file
View File

@@ -0,0 +1,12 @@
import { Source_Sans_3, Manrope } from "next/font/google";
const source_sans_3 = Source_Sans_3({
subsets: ["latin"],
weight: ["200", "300", "400", "500", "600", "700", "800", "900"],
});
const manrope = Manrope({
subsets: ["latin"],
weight: ["200", "300", "400", "500", "600", "700", "800"],
});
export { source_sans_3, manrope };