Skip to content

Commit

Permalink
Merge pull request #612 from nwplus/import-font
Browse files Browse the repository at this point in the history
  • Loading branch information
martincai8 authored Oct 2, 2024
2 parents c2f18c7 + 42f657a commit f504579
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
<title>Hacker Portal</title>
</head>

Expand Down
2 changes: 1 addition & 1 deletion src/components/Pagination.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const BasePaginationButton = styled.button`
line-height: normal;
content: url(${p.contentUrl});
}`}
font-family: HK Grotesk;
font-family: ${p => p.theme.typography.bodyFont};
font-weight: ${p => (p.active ? `600` : `normal`)};
font-style: normal;
font-size: 24px;
Expand Down
4 changes: 2 additions & 2 deletions src/theme/ThemeProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const SCREEN_BREAKPOINTS = {

const base = {
typography: {
headerFont: 'HK Grotesk',
bodyFont: 'HK Grotesk',
headerFont: 'Hanken Grotesk',
bodyFont: 'Hanken Grotesk',
h1: {
weight: 700,
size: '2em',
Expand Down

0 comments on commit f504579

Please sign in to comment.