Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
fix(website): load fonts correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed May 19, 2023
1 parent 33badc2 commit 7285b5e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 15 deletions.
36 changes: 28 additions & 8 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,32 @@
/* You can override the default Infima variables here. */

@font-face {
font-family: 'RockfordSans';
src: url('../../static/fonts/RockfordSans-Bold.otf') format('opentype'),
url('../../static/fonts/RockfordSans-ExtraBold.otf') format('opentype'),
url('../../static/fonts/RockfordSans-Light.otf') format('opentype'),
url('../../static/fonts/RockfordSans-Medium.otf') format('opentype'),
url('../../static/fonts/RockfordSans-Regular.otf') format('opentype');
font-family: 'RockfordSans Bold';
src: url('../../static/fonts/RockfordSans-Bold.otf') format('opentype');
/* Add more font formats if necessary */
}

@font-face {
font-family: 'RockfordSans ExtraBold';
src: url('../../static/fonts/RockfordSans-ExtraBold.otf') format('opentype');
/* Add more font formats if necessary */
}

@font-face {
font-family: 'RockfordSans Light';
src: url('../../static/fonts/RockfordSans-Light.otf') format('opentype');
/* Add more font formats if necessary */
}

@font-face {
font-family: 'RockfordSans Medium';
src: url('../../static/fonts/RockfordSans-Medium.otf') format('opentype');
/* Add more font formats if necessary */
}

@font-face {
font-family: 'RockfordSans Regular';
src: url('../../static/fonts/RockfordSans-Regular.otf') format('opentype');
/* Add more font formats if necessary */
}

Expand Down Expand Up @@ -101,15 +121,15 @@ html[data-theme='dark'] .header-github-link:before {
}

body {
font-family: 'RockfordSans-Regular';
font-family: 'RockfordSans Regular';
}

.navbar {
background-color: #f2efdb;
color: #000;
box-shadow: none;
position: initial;
font-family: 'RockfordSans-Bold';
font-family: 'RockfordSans Bold';
}

.footer {
Expand Down
14 changes: 7 additions & 7 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ function HomepageHeader() {
style={{
color: "#000",
fontSize: "2rem",
fontFamily: "RockfordSans-Medium",
fontFamily: "RockfordSans Medium",
padding: "0 4rem",
textAlign: "left",
}}
>
Compose your{" "}
<span
style={{
fontFamily: "RockfordSans-Bold",
fontFamily: "RockfordSans Bold",
color: "#ffad62",
}}
>
Expand All @@ -49,15 +49,15 @@ function HomepageHeader() {
and{" "}
<span
style={{
fontFamily: "RockfordSans-Bold",
fontFamily: "RockfordSans Bold",
color: "#ffad62",
}}
>
non-containerized
</span>{" "}
<span
style={{
fontFamily: "RockfordSans-Bold",
fontFamily: "RockfordSans Bold",
color: "#3bcbce",
}}
>
Expand All @@ -66,7 +66,7 @@ function HomepageHeader() {
for localdev and deployments in{" "}
<span
style={{
fontFamily: "RockfordSans-Bold",
fontFamily: "RockfordSans Bold",
color: "#f780fb",
}}
>
Expand All @@ -75,7 +75,7 @@ function HomepageHeader() {
or{" "}
<span
style={{
fontFamily: "RockfordSans-Bold",
fontFamily: "RockfordSans Bold",
color: "#f780fb",
}}
>
Expand All @@ -84,7 +84,7 @@ function HomepageHeader() {
with an{" "}
<span
style={{
fontFamily: "RockfordSans-Bold",
fontFamily: "RockfordSans Bold",
color: "#f780fb",
}}
>
Expand Down

0 comments on commit 7285b5e

Please sign in to comment.