Skip to content

Commit 1751d5b

Browse files
authored
style(web): match the sign-in page to the reading room's Tufte theme
2 parents c57ff1e + 5109fae commit 1751d5b

1 file changed

Lines changed: 22 additions & 13 deletions

File tree

internal/adapter/inbound/web/templates/login.html

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,40 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>Sign in — demarkus Library</title>
77
<style>
8-
:root { color-scheme: dark; }
8+
/* Match the reading room's Tufte palette (page.html): off-white/off-black
9+
paper+ink, Charter serif, light-dark() adaptive — so the turnstile and the
10+
library feel like one place. */
11+
:root {
12+
color-scheme: light dark;
13+
--paper: light-dark(#fffff8, #151515);
14+
--ink: light-dark(#111111, #dddddd);
15+
--faint: light-dark(#11111120, #dddddd28);
16+
--muted: light-dark(#11111199, #dddddd99);
17+
}
918
* { box-sizing: border-box; }
1019
html, body { height: 100%; }
1120
body { margin: 0; min-height: 100%;
1221
display: flex; align-items: center; justify-content: center;
13-
background: #000; color: #f4f4f4;
14-
font: 16px/1.6 system-ui, sans-serif; text-align: center; }
15-
/* Faint full-page knowledge graph, sits behind the card. */
22+
background: var(--paper); color: var(--ink); text-align: center;
23+
font: 17px/1.55 Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif; }
24+
/* Faint full-page knowledge graph, sits behind the card — ink at low opacity
25+
so it reads on light and dark alike. */
1626
.graph { position: fixed; inset: 0; width: 100%; height: 100%;
1727
z-index: 0; pointer-events: none;
18-
opacity: .22; color: #fff; }
28+
opacity: .12; color: var(--ink); }
1929
.graph .edges line { stroke: currentColor; stroke-width: .7; }
2030
.graph .node { fill: currentColor; }
21-
.graph .hub { fill: #fff; }
2231
.card { position: relative; z-index: 1;
2332
max-width: 26rem; padding: 4rem 1.25rem;
24-
background: radial-gradient(60% 60% at 50% 50%, #000 55%, transparent);
33+
background: radial-gradient(60% 60% at 50% 50%, var(--paper) 55%, transparent);
2534
border-radius: 1rem; }
26-
h1 { font-size: 1.4rem; font-weight: 600; }
27-
p { color: #cfcfcf; }
28-
p.error { color: #ff6b5e; }
29-
button { font: inherit; padding: .55rem 1.4rem; border-radius: 8px;
30-
border: 1px solid #fff6; background: transparent; color: inherit;
35+
h1 { font-size: 1.7rem; font-weight: 500; line-height: 1.2; }
36+
p { color: var(--muted); }
37+
p.error { color: light-dark(#cf222e, #f85149); }
38+
button { font: inherit; padding: .5rem 1.4rem; border-radius: 6px;
39+
border: 1px solid var(--muted); background: transparent; color: inherit;
3140
cursor: pointer; transition: background .15s; }
32-
button:hover { background: #ffffff14; }
41+
button:hover { background: var(--faint); }
3342
</style>
3443
</head>
3544
<!-- No htmx on this page: the turnstile is a plain form so signing in works

0 commit comments

Comments
 (0)