Skip to content

Commit

Permalink
new year new font, one month early
Browse files Browse the repository at this point in the history
Don't ask me where I found this font :chisatoderp:

Signed-off-by: Vu Van Dung <[email protected]>
  • Loading branch information
joulev committed Dec 8, 2023
1 parent 1ab6cc6 commit 40ec63f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SpeedInsights } from "@vercel/speed-insights/next";
import { Github } from "lucide-react";
import type { Metadata } from "next";
import { AxiomWebVitals } from "next-axiom";
import { Hanken_Grotesk as HankenGrotesk } from "next/font/google";
import { Quattrocento_Sans as QuattrocentoSans } from "next/font/google";
import localFont from "next/font/local";

import { Link } from "~/components/ui/link";
Expand All @@ -12,7 +12,7 @@ import { cn } from "~/lib/cn";
import { Background } from "./background";
import "./globals.css";

const sans = HankenGrotesk({ subsets: ["latin"], variable: "--sans" });
const sans = QuattrocentoSans({ subsets: ["latin"], weight: ["400", "700"], variable: "--sans" });
const mono = localFont({
src: [
{ path: "../../.fonts/ia-writer-mono/regular.woff2", weight: "normal", style: "normal" },
Expand Down
4 changes: 2 additions & 2 deletions src/components/og.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export async function getOpengraphImage({ title, subtitle }: { title: string; su
fonts: await Promise.all(
([400, 700] as const).map(async weight => {
const fontRes = await fetch(
`https://cdn.jsdelivr.net/fontsource/fonts/hanken-grotesk@latest/latin-${weight}-normal.woff`,
`https://cdn.jsdelivr.net/fontsource/fonts/quattrocento-sans@latest/latin-${weight}-normal.woff`,
);
const font = await fontRes.arrayBuffer();
return { name: "Hanken Grotesk", data: font, style: "normal", weight };
return { name: "quattrocento-sans", data: font, style: "normal", weight };
}),
),
},
Expand Down

0 comments on commit 40ec63f

Please sign in to comment.