Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use "brand" fonts in title #4

Merged
merged 2 commits into from Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 1 addition & 11 deletions src/components/Font.astro
Expand Up @@ -26,17 +26,7 @@ const makeFontPath = (filePath: string) =>
preload: false,
display: "swap",
fallback: "sans-serif",
selector: ".font-apricot",
},
{
src: [],
name: "Inter",
googleFontsURL:
"https://fonts.googleapis.com/css2?family=Inter:wght@100..900",
preload: false,
display: "swap",
fallback: "sans-serif",
cssVariable: "neo-Grotesque",
cssVariable: "font-apricot",
},
]}
/>
2 changes: 1 addition & 1 deletion src/consts.ts
Expand Up @@ -3,7 +3,7 @@ export const SITE_TITLE = "Data in the Wild";
export const SITE_DESCRIPTION = "";

export const SHOW_TITLE =
'<span class="font-black font-neo text-primary">DATA</span> <span class="font-apricot">in the Wild</span>';
'<em>DATA</em> <span>in the Wild</span>';

// export const SHOW_DESCRIPTION =
// "A podcast where your favorite indie hackers share their data model journey so you can learn from their experience, both good and bad!";
Expand Down
14 changes: 2 additions & 12 deletions src/global.css
Expand Up @@ -5,6 +5,8 @@
"Sitka Small", serif;
--industrial: Bahnschrift, "DIN Alternate", "Franklin Gothic Medium",
"Nimbus Sans Narrow", sans-serif-condensed, sans-serif;
--neo-Grotesque: Inter, Roboto, "Helvetica Neue", "Arial Nova", "Nimbus Sans",
Arial, sans-serif;

--paper: #fffaf0;
--paper-inverted: #000;
Expand Down Expand Up @@ -103,15 +105,3 @@ nav {
margin-top: 4em;
}
}

.font-neo {
font-family: var(--neo-Grotesque);
}

.font-black {
font-weight: 900;
}

.text-primary {
color: var(--color-primary);
}
10 changes: 10 additions & 0 deletions src/pages/index.astro
Expand Up @@ -96,6 +96,16 @@ import { Content as Sponsor } from "./_sponsor.md";
line-height: 1;
font-weight: 900;

em {
rishi-raj-jain marked this conversation as resolved.
Show resolved Hide resolved
font-family: var(--neo-Grotesque);
color: var(--color-primary);
font-weight: 900;
}

span {
rishi-raj-jain marked this conversation as resolved.
Show resolved Hide resolved
font-family: var(--font-apricot);
}

+ p {
margin-top: min(1.5vw, 1em);
font-size: 1.3em;
Expand Down