@@ -4,29 +4,14 @@ import 'prism-sentry/index.css';
4
4
import { ReactNode } from 'react' ;
5
5
import { Theme } from '@radix-ui/themes' ;
6
6
import type { Metadata } from 'next' ;
7
- import localFont from 'next/font/local ' ;
7
+ import { Rubik } from 'next/font/google ' ;
8
8
9
9
import { Navbar } from 'sentry-docs/components/changelog/navbar' ;
10
10
11
- const rubik = localFont ( {
12
- src : [
13
- {
14
- path : '../../src/fonts/rubik-regular.woff2' ,
15
- weight : 'normal' ,
16
- style : 'normal' ,
17
- } ,
18
- {
19
- path : '../../src/fonts/rubik-medium.woff2' ,
20
- weight : '500' ,
21
- style : 'normal' ,
22
- } ,
23
- {
24
- path : '../../src/fonts/rubik-italic.woff2' ,
25
- weight : 'normal' ,
26
- style : 'italic' ,
27
- } ,
28
- ] ,
29
- variable : '--font-rubik' ,
11
+ const rubik = Rubik ( {
12
+ weight : [ '400' , '500' , '700' ] ,
13
+ style : [ 'normal' , 'italic' ] ,
14
+ subsets : [ 'latin' ] ,
30
15
} ) ;
31
16
32
17
export const metadata : Metadata = {
@@ -36,7 +21,7 @@ export const metadata: Metadata = {
36
21
export default function ChangelogLayout ( { children} : { children : ReactNode } ) {
37
22
return (
38
23
< Theme accentColor = "violet" grayColor = "sand" radius = "large" scaling = "95%" >
39
- < div className = { `${ rubik . variable } font-sans` } >
24
+ < div className = { `${ rubik . className } font-sans` } >
40
25
< Navbar />
41
26
< div className = "bg-gray-100" > { children } </ div >
42
27
< div className = "w-full mx-auto h-16 relative bg-darkPurple" >
0 commit comments