1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 16:25:31 -04:00

bump some deps

This commit is contained in:
2023-03-23 10:49:36 -04:00
parent 88b1633d7a
commit a4a402bcde
4 changed files with 424 additions and 456 deletions

View File

@@ -4,27 +4,29 @@ import {
Comic_Neue as ComicNeueLoader,
} from "@next/font/google";
// note: subsets are set to 'latin' globally in next.config.js
// https://beta.nextjs.org/docs/optimizing/fonts#specifying-a-subset
export const Inter = InterLoader({
const Inter = InterLoader({
weight: "variable",
subsets: ["latin"],
display: "fallback",
preload: true,
});
export const SourceCodePro = SourceCodeProLoader({
const SourceCodePro = SourceCodeProLoader({
weight: "variable",
subsets: ["latin"],
display: "fallback",
preload: true,
});
// only for use in pages/previously.tsx (and tree-shaken out everywhere else in production)
export const ComicNeue = ComicNeueLoader({
const ComicNeue = ComicNeueLoader({
weight: ["400", "700"],
style: ["normal", "italic"],
subsets: ["latin"],
display: "swap",
fallback: ["'Comic Sans MS'", "'Comic Sans'"],
adjustFontFallback: false,
preload: false,
});
export { Inter, SourceCodePro, ComicNeue };