Skip to content

Commit f26dbee

Browse files
TMHSDigitalclaude
andcommitted
feat(site): center the 404 card and make Open the gallery the primary action
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 83e973b commit f26dbee

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎scripts/site/404.html.j2‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@
2222
align-items: center; justify-content: center; padding: 1.25rem;
2323
font-family: var(--font-body); line-height: 1.6; }
2424
main { max-width: 34rem; width: 100%; background: var(--panel); border: 1px solid var(--border);
25-
border-radius: 6px; padding: 2rem 1.75rem; }
26-
.hud { font-family: var(--font-mono); font-size: 0.6875rem;
25+
border-radius: 6px; padding: 2.25rem 1.75rem; text-align: center; }
26+
.hud { font-family: var(--font-mono); font-size: var(--fs-xs);
2727
letter-spacing: 0.04em; color: var(--dim); text-transform: uppercase; }
2828
h1 { font-family: var(--font-display); font-weight: 600;
2929
text-transform: uppercase; font-size: 2.4rem; line-height: 1; margin: 0.5rem 0 0.75rem; }
3030
p { color: var(--dim); }
31-
nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
32-
nav a { color: var(--select); text-decoration: none; font-weight: 500; padding: 0.25rem 0; }
33-
nav a:hover { text-decoration: underline; }
31+
nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1.25rem; margin-top: 1.75rem; }
32+
nav a { color: var(--dim); text-decoration: none; font-weight: 500; padding: 0.4rem 0.25rem; }
33+
nav a:hover { color: var(--select); text-decoration: underline; }
34+
nav a.primary { background: var(--select); color: var(--on-select); border-radius: 4px; padding: 0.6rem 1.25rem; }
35+
nav a.primary:hover { text-decoration: none; filter: brightness(1.12); color: var(--on-select); }
3436
:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; border-radius: 2px; }
3537
</style>
3638
</head>
@@ -41,7 +43,7 @@
4143
<p>The page may have moved, or an example may have been renamed. The gallery lists
4244
every example and showcase piece that ships today.</p>
4345
<nav>
44-
<a href="{{ base }}gallery/">Open the gallery &rarr;</a>
46+
<a class="primary" href="{{ base }}gallery/">Open the gallery</a>
4547
<a href="{{ base }}">Home</a>
4648
<a href="{{ site.links.github | default(plugin.repository) }}">GitHub</a>
4749
</nav>

0 commit comments

Comments
 (0)