Skip to content

Commit 5951a56

Browse files
committed
Fix fonts
1 parent b171892 commit 5951a56

2 files changed

Lines changed: 25 additions & 9 deletions

File tree

app/layout.tsx

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1-
import {Metadata} from 'next';
1+
import { Metadata } from 'next';
22
import packageInfo from '../package.json';
33
import React from 'react';
44
import styles from './layout.module.scss';
5+
import { Martel, Open_Sans } from 'next/font/google';
6+
7+
const martel = Martel({
8+
weight: ['200', '300', '400', '600', '700', '800', '900'],
9+
subsets: ['latin'],
10+
});
11+
12+
const openSans = Open_Sans({
13+
weight: ['300', '400', '800'],
14+
subsets: ['latin'],
15+
});
516

617
export const metadata: Metadata = {
718
title: 'Franklin Clark',
819
description: packageInfo.description,
9-
authors: {name: packageInfo.author},
20+
authors: { name: packageInfo.author },
1021
keywords: packageInfo.keywords,
11-
icons: { icon: '/img/favico.png' }
22+
icons: { icon: '/img/favico.png' },
1223
};
1324

1425
/**
@@ -19,14 +30,19 @@ export const metadata: Metadata = {
1930
export default function RootLayout({
2031
children,
2132
}: {
22-
children: React.ReactNode
33+
children: React.ReactNode;
2334
}) {
2435
return (
2536
<>
26-
<html lang="en" className={styles.normalize}>
27-
<body>
28-
{children}
29-
</body>
37+
<html
38+
lang='en'
39+
className={[
40+
styles.normalize,
41+
martel.className,
42+
openSans.className,
43+
].join(' ')}
44+
>
45+
<body>{children}</body>
3046
</html>
3147
</>
3248
);

styles/athena/_type.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,800,300|Martel:200,300,400,600,700,800,900');
1+
//@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,800,300|Martel:200,300,400,600,700,800,900');
22

33
// We use these to define default font stacks
44
$font-family-open-sans: "Open Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;

0 commit comments

Comments
 (0)