Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 49 additions & 6 deletions _assets/styles/_error.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,55 @@
width: 100%;
font-size: 10rem;
transform: translateY(-50%);
}
}

.btn {
width: fit-content;
margin: 0 auto;
color: $secondary;
text-transform: uppercase;
}
/* The site draws in strokes: the ring is stroked rather than filled, a
heading carries a rule, a link carries an underline. So this is a box at
rest that fills only under the pointer, the way the news chips read. The
wrapper sets a 10rem font size for the ghosted numerals, so the size here
is stated rather than inherited.
*/

.error .error-home {
display: inline-flex;
gap: 0.5rem;
align-items: center;
align-self: center;
padding: 0.6875rem 1.25rem;
font-family: $font-family-monospace;
font-size: 0.75rem;
font-weight: 700;
line-height: 1;
color: $body-color;
text-transform: uppercase;
letter-spacing: 0.06em;
text-decoration: none;
background-color: transparent;
border: 2px solid $body-color;
transition:
color 0.15s ease,
background-color 0.15s ease;
}

.error .error-home:hover,
.error .error-home:focus-visible {
color: $body-bg;
background-color: $body-color;
}

.error .error-home-arrow {
display: inline-block;
transition: transform 0.15s ease;
}

.error .error-home:hover .error-home-arrow {
transform: translateX(-3px);
}

@media (prefers-reduced-motion: reduce) {
.error .error-home,
.error .error-home-arrow {
transition: none;
}
}
1 change: 0 additions & 1 deletion _assets/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
@import '../../node_modules/bootstrap/scss/root';

// Layout & bespoke theme components.
@import '../../node_modules/bootstrap/scss/buttons';
@import '../../node_modules/bootstrap/scss/nav';
@import '../../node_modules/bootstrap/scss/navbar';
@import 'about';
Expand Down
5 changes: 4 additions & 1 deletion collections/_pages/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<h1>404</h1>
<div class="wrapper">
<h2 class="mb-4">Page Not Found</h2>
<a class="btn btn-primary" href="/" role="button">Back to Home</a>
<a class="error-home" href="/">
<span class="error-home-arrow" aria-hidden="true">&larr;</span>
Back to Home
</a>
</div>
</main>
Loading