mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-09 11:01:45 +00:00
feat(fontes): substituir fonte local America por Inter (Google Fonts)
Next.js self-hosta a Inter em build time — elimina os arquivos .woff2 do repositório e a dependência de localFont. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,18 +1,9 @@
|
||||
import localFont from "next/font/local";
|
||||
import { Inter } from "next/font/google";
|
||||
|
||||
export const america = localFont({
|
||||
src: [
|
||||
{
|
||||
path: "./america-regular.woff2",
|
||||
weight: "400",
|
||||
style: "normal",
|
||||
},
|
||||
{
|
||||
path: "./america-medium.woff2",
|
||||
weight: "500",
|
||||
style: "normal",
|
||||
},
|
||||
],
|
||||
display: "fallback",
|
||||
variable: "--font-america",
|
||||
export const inter = Inter({
|
||||
subsets: ["latin"],
|
||||
display: "swap",
|
||||
variable: "--font-inter",
|
||||
fallback: ["ui-sans-serif", "system-ui"],
|
||||
preload: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user