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:
@@ -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 };
|
||||
|
Reference in New Issue
Block a user