Skip to content

Commit 7fc5361

Browse files
committed
Convert CommitMono to .ttf
1 parent e441b5f commit 7fc5361

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

src/app/(development)/workroom/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import SpeakerOpengraphImage from "@/app/conf/2025/components/speaker-opengraph-
22
import ScheduleOpengraphImage from "@/app/conf/2025/components/session-opengraph-image"
33
import { SchedSpeaker } from "@/app/conf/2023/types"
44

5+
// todo: the images probably won't work after conversion
6+
57
/**
68
* This is cheaper than maintaining a Storybook config.
79
*/

src/app/conf/2025/components/speaker-opengraph-image.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default function SpeakerOpengraphImage({
131131
>
132132
<span
133133
style={{
134-
fontFamily: "monospace",
134+
fontFamily: "'Commit Mono'",
135135
fontSize: "1.5rem",
136136
fontWeight: "normal",
137137
textTransform: "uppercase",
@@ -204,12 +204,13 @@ export function ConferenceOpengraphImageHeader({
204204
borderRight: `2px solid ${colors.neu600}`,
205205
padding: "2.5rem",
206206
paddingRight: "4rem",
207+
height: "154px",
207208
}}
208209
>
209210
<div style={{ display: "flex", alignItems: "center", gap: "1rem" }}>
210211
<div
211212
style={{
212-
fontFamily: "monospace",
213+
fontFamily: "'Commit Mono'",
213214
display: "flex",
214215
fontWeight: "normal",
215216
textTransform: "uppercase",
@@ -276,7 +277,7 @@ export function ConferenceOpengraphImageHeader({
276277
/>
277278
<span
278279
style={{
279-
fontFamily: "monospace",
280+
fontFamily: "'Commit Mono'",
280281
display: "flex",
281282
fontSize: "1.25rem",
282283
fontWeight: "normal",
@@ -312,7 +313,7 @@ export function ConferenceOpengraphImageHeader({
312313
/>
313314
<span
314315
style={{
315-
fontFamily: "monospace",
316+
fontFamily: "'Commit Mono'",
316317
fontSize: "1.25rem",
317318
fontWeight: "normal",
318319
textTransform: "uppercase",
-268 KB
Binary file not shown.
243 KB
Binary file not shown.

src/app/fonts/og/load-fonts-for-og.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export async function loadFontsForOG(): Promise<FontOptions[]> {
2121
data: await readFile(resolve(cwd, dirname, "HostGrotesk-Regular.ttf")),
2222
name: "Host Grotesk",
2323
},
24-
// {
25-
// data: await readFile(resolve(cwd, dirname, "CommitMono-400-Regular.otf")),
26-
// name: "Commit Mono",
27-
// },
24+
{
25+
data: await readFile(resolve(cwd, dirname, "CommitMono-400-Regular.ttf")),
26+
name: "Commit Mono",
27+
},
2828
]
2929
}

0 commit comments

Comments
 (0)