Skip to content

Commit

Permalink
Improve typography
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Sep 28, 2024
1 parent de85a35 commit f2d0ea4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/components/qwixx/PlayerSheet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
</script>

<header>
<h1><span aria-hidden>🎲</span> Qwixx</h1>
<div class="brand">
<a href="/" aria-label="All games" class="logo">🎲</a>
<h1>Qwixx™</h1>
</div>
<button on:click={reset} class="button">Reset</button>
</header>

Expand Down Expand Up @@ -56,9 +59,27 @@
margin-bottom: var(--layout-gutter);
}
h1 {
.brand {
display: flex;
align-items: center;
gap: 1rem;
font-family: var(--font-family-display);
font-size: 2rem;
font-size: 2.25rem;
line-height: var(--line-height-heading);
}
h1 {
font-size: inherit;
}
.logo {
text-decoration: none;
transition: transform var(--transition-micro);
}
.logo:hover,
.logo:focus {
transform: scale(1.1);
}
.numbers {
Expand Down
5 changes: 5 additions & 0 deletions src/layouts/qwixx.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ h2 {
line-height: var(--line-height-heading);
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.2px;
}

.button {
font-weight: var(--font-weight-ui-bold);
}

0 comments on commit f2d0ea4

Please sign in to comment.