Skip to content

Commit

Permalink
♻️ [Font] Update some headings for the new font
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Jul 25, 2024
1 parent ae5dde8 commit 27cf559
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/Contact.astro
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ import {SecretEmail} from '@scripts/SecretEmail';
display: block;
padding-left: 1rem;
font-size: var(--h4-size);
font-weight: 600;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.2em;
white-space: nowrap;
Expand Down
4 changes: 4 additions & 0 deletions src/components/ContentBlock.astro
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ const inactive = !title || !subtitle;
/* Just a small nudge for better vertical centering */
padding-top: calc(var(--space-tightest) + 0.1rem);

& > h3 {
font-weight: 800;
}

@media (--min-tablet) {
padding: var(--space-tighter);
}
Expand Down
3 changes: 1 addition & 2 deletions src/components/Hamburger.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ const {id, controlsId} = Astro.props;
@import '@styles/shared.css';

:root {
/* `height` and `padding` variables come from `globla.css` */
--hamburger-width-min: 2.4rem;
--hamburger-width-max: 3rem;
--hamburger-height: 2rem;
--hamburger-line-height: 0.3rem;
--hamburger-padding: var(--space-tightest);

/* Computed value: `height - line-height` */
--hamburger-patty3-y: 1.7rem;
Expand Down
8 changes: 1 addition & 7 deletions src/components/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ const {id, items = []} = Astro.props;
@import '@styles/shared.css';

:root {
/* TODO: Figure out how to share `Hamburger` variables. */
--hamburger-height: 2rem;
--hamburger-padding: var(--space-tightest);

/* Component */

--nav-offset-safety: 0.2rem;
--nav-item-shift-x: 0.3rem;

Expand Down Expand Up @@ -162,7 +156,7 @@ const {id, items = []} = Astro.props;
padding-bottom: var(--nav-label-padding-y);
padding-left: var(--nav-label-padding-left);
font-size: var(--p-size);
font-weight: 700;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.2rem;
white-space: nowrap;
Expand Down
24 changes: 23 additions & 1 deletion src/sections/Intro.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ const {id, thumbnail} = Astro.props;
<article class="section-interior">
<div class="Content">
<h1 class="heading heading--1">Dulmage</h1>
<h2 class="heading heading--2">UX Developer</h2>

<div class="Details">
<h2 class="heading heading--2">UX Developer</h2>
<h2 class="heading heading--2">Ottawa, ON</h2>
</div>

<p class="heading heading--3 visually-hidden">
Background image photographed by: Curtis Dulmage
Expand All @@ -35,6 +39,10 @@ const {id, thumbnail} = Astro.props;
<style>
@import '@styles/shared.css';

:root {
--intro-detail-before: none;
}

.Content {
display: grid;
place-items: center;
Expand All @@ -45,4 +53,18 @@ const {id, thumbnail} = Astro.props;
gap: var(--space);
}
}

.Details {
display: grid;
gap: var(--space-tightest);

& > h2 + h2::before {
content: var(--intro-detail-before);
}

@media (--min-tablet) {
--intro-detail-before: '\002F\0020';
grid-auto-flow: column;
}
}
</style>

0 comments on commit 27cf559

Please sign in to comment.