Skip to content

Commit 3bd68ba

Browse files
committed
Add Hans Grotesk as --font-sans
1 parent 7361ab3 commit 3bd68ba

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

src/app/conf/2025/layout.tsx

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ import { Header } from "../_components/header"
44
import { Footer } from "../_components/footer"
55
import { GraphQLConf, HostedByGraphQLFoundation } from "@/icons"
66
import NextLink from "next/link"
7-
import { Rubik } from "next/font/google"
8-
9-
const rubik = Rubik({
10-
weight: ["700", "600", "500", "400", "300"],
11-
subsets: ["latin"],
12-
})
7+
import { hostGrotesk } from "../../fonts"
138

149
export const metadata = {
1510
description:
@@ -36,6 +31,15 @@ export default function Layout({
3631
}): ReactElement {
3732
return (
3833
<>
34+
<style
35+
dangerouslySetInnerHTML={{
36+
__html: /* css */ `
37+
html.fonts {
38+
--font-sans: ${hostGrotesk.style.fontFamily};
39+
font-family: var(--font-sans);
40+
}`,
41+
}}
42+
/>
3943
<Header
4044
logo={
4145
<NextLink
@@ -56,13 +60,7 @@ export default function Layout({
5660
]}
5761
is2025
5862
/>
59-
<div
60-
style={{
61-
fontFamily: rubik.style.fontFamily,
62-
}}
63-
>
64-
{children}
65-
</div>
63+
<div>{children}</div>
6664
<Footer
6765
logo={
6866
<NextLink href="/conf/2025" className="nextra-logo text-white">
Binary file not shown.
Binary file not shown.

src/app/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ export default function RootLayout({
2828
children: ReactNode
2929
}): ReactElement {
3030
return (
31-
<html lang="en" className={`scroll-smooth ${font.className}`}>
31+
// eslint-disable-next-line tailwindcss/no-custom-classname
32+
<html lang="en" className={`fonts scroll-smooth ${font.className}`}>
3233
<head>
3334
<style>{`html { scroll-padding-top: 5rem }`}</style>
3435
</head>

0 commit comments

Comments
 (0)