Restyle in the look of radiance.stilldeadco.de
Dark only: near-black under grey light, frosted glass cards, white as the only accent, Geist. Hero text and section texts quoted from Deadcode's site; the cards lead to radiance git and to Models, Docs and Changelog there. Icons in white on near-black to match.
This commit is contained in:
parent
f0bc64d73b
commit
dad790318d
6 changed files with 163 additions and 146 deletions
185
style.css
185
style.css
|
|
@ -1,96 +1,119 @@
|
|||
/* radiance landing page. Tokens from the radiance brand package (dashboard source, Apache 2.0):
|
||||
"Cool neutrals with a slight blue cast, one blue accent, semantic hues kept apart from it."
|
||||
Light and dark follow the system setting. No external requests. */
|
||||
|
||||
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
|
||||
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
|
||||
/* Radiance landing page in the style of radiance.stilldeadco.de ("Obsidian", by Deadcode):
|
||||
near-black under grey light, frosted glass panels, monochrome; white is the only accent.
|
||||
Dark only. No external requests: fonts and icons are local. */
|
||||
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/Geist-Variable.woff2") format("woff2"); }
|
||||
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); }
|
||||
|
||||
:root {
|
||||
--logo: #6f9bff;
|
||||
--bg: #f9fafb;
|
||||
--fg: #111419;
|
||||
--card: #ffffff;
|
||||
--surface: #eef0f3;
|
||||
--hover: #e9edf2;
|
||||
--muted: #5e646c;
|
||||
--border: #dfe1e5;
|
||||
--primary: #2e62c9;
|
||||
--primary-fg: #ffffff;
|
||||
--focus: #5684da;
|
||||
--radius: 0.625rem;
|
||||
--sans: "Geist", ui-sans-serif, system-ui, sans-serif;
|
||||
--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
|
||||
color-scheme: light dark;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--bg: #0a0c10;
|
||||
--fg: #eceff2;
|
||||
--card: #121418;
|
||||
--surface: #1e2125;
|
||||
--hover: #202329;
|
||||
--muted: #9399a2;
|
||||
--border: rgb(255 255 255 / 0.09);
|
||||
--primary: #6d9df5;
|
||||
--primary-fg: #0a0c10;
|
||||
--focus: #547ecd;
|
||||
}
|
||||
color-scheme: dark;
|
||||
--bg: #09090a;
|
||||
--ink: #fafafa;
|
||||
--ink-2: #b8b8be;
|
||||
--muted: #86868e;
|
||||
--hair: rgba(255, 255, 255, 0.08);
|
||||
--edge: rgba(255, 255, 255, 0.12);
|
||||
--hi: rgba(255, 255, 255, 0.14);
|
||||
--glass: rgba(255, 255, 255, 0.09);
|
||||
--frost: blur(36px) saturate(170%);
|
||||
--sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
* { box-sizing: border-box; }
|
||||
html { -webkit-text-size-adjust: 100%; }
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
font: 400 1rem/1.6 var(--sans);
|
||||
padding-inline: max(1rem, env(safe-area-inset-left));
|
||||
margin: 0; min-height: 100vh; display: flex; flex-direction: column;
|
||||
background: var(--bg); color: var(--ink);
|
||||
font: 15px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased;
|
||||
}
|
||||
a { color: var(--primary); text-underline-offset: 0.15em; }
|
||||
a:focus-visible, .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: calc(var(--radius) * 0.6); }
|
||||
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); padding: 0.05em 0.35em; border-radius: calc(var(--radius) * 0.6); }
|
||||
|
||||
.top, main, .bottom { max-width: 60rem; margin-inline: auto; }
|
||||
|
||||
.top {
|
||||
display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
|
||||
padding-block: 1.25rem;
|
||||
/* the grey light the glass sits in */
|
||||
body::before {
|
||||
content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
|
||||
background:
|
||||
radial-gradient(48vmax 38vmax at 4% -8%, rgba(46, 46, 53, 0.95), transparent 70%),
|
||||
radial-gradient(42vmax 34vmax at 104% 42%, rgba(34, 36, 40, 0.95), transparent 70%),
|
||||
radial-gradient(40vmax 28vmax at 30% 108%, rgba(48, 46, 53, 0.9), transparent 70%);
|
||||
}
|
||||
.wordmark { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--fg); text-decoration: none; }
|
||||
.wordmark svg { width: 2.25rem; height: 2.25rem; fill: var(--logo); }
|
||||
.wordmark span { font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
|
||||
.top nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
|
||||
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
|
||||
.top nav a:hover { color: var(--fg); }
|
||||
|
||||
.hero { padding-block: clamp(3rem, 10vw, 6rem) 3rem; }
|
||||
.hero h1 {
|
||||
margin: 0 0 1rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1;
|
||||
font-size: clamp(2.25rem, 6vw, 3.75rem); max-width: 16ch;
|
||||
a { color: var(--ink); text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
|
||||
a:hover { text-decoration-color: var(--ink); }
|
||||
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
|
||||
::selection { background: rgba(255, 255, 255, 0.22); }
|
||||
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
||||
|
||||
h1, h2, h3 { line-height: 1.08; font-weight: 600; }
|
||||
h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); letter-spacing: -0.035em; margin: 0 0 14px; }
|
||||
h3 { font-size: 1rem; letter-spacing: -0.01em; margin: 0 0 6px; }
|
||||
p { margin: 0 0 12px; }
|
||||
|
||||
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
|
||||
main { flex: 1 0 auto; }
|
||||
|
||||
/* header: a frosted bar; the current page's label carries a lit bar on the bottom edge */
|
||||
.site-top {
|
||||
position: sticky; top: 0; z-index: 10;
|
||||
background: rgba(16, 16, 19, 0.5);
|
||||
-webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
|
||||
border-bottom: 1px solid var(--hair);
|
||||
}
|
||||
.lead { margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 46rem; }
|
||||
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
|
||||
.button {
|
||||
display: inline-block; padding: 0.65rem 1.1rem; border-radius: var(--radius);
|
||||
border: 1px solid var(--border); background: var(--card); color: var(--fg);
|
||||
font-weight: 550; text-decoration: none;
|
||||
.site-head { display: flex; align-items: stretch; gap: 0 28px; height: 56px; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
|
||||
.brand, .site-nav a, .ext-nav a { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
|
||||
.brand { position: relative; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
|
||||
.brand-mark { width: 22px; height: 22px; fill: var(--ink); }
|
||||
.brand[aria-current="page"]::after {
|
||||
content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0;
|
||||
background: var(--ink); box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
|
||||
}
|
||||
.site-nav { display: flex; gap: 6px; }
|
||||
.site-nav a { padding: 0 10px; color: var(--muted); font-size: 14px; transition: color .15s; }
|
||||
.site-nav a:hover, .ext-nav a:hover { color: var(--ink); }
|
||||
.ext-nav { display: flex; align-items: center; margin-left: auto; }
|
||||
.ext-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; transition: color .15s, background .15s; }
|
||||
.ext-nav a:hover { background: rgba(255, 255, 255, 0.06); }
|
||||
@media (max-width: 640px) {
|
||||
.site-head { gap: 0 10px; }
|
||||
.site-nav { gap: 0; }
|
||||
.site-nav a { padding: 0 6px; }
|
||||
.brand .label-text { display: none; }
|
||||
}
|
||||
.button:hover { background: var(--hover); }
|
||||
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
|
||||
.button.primary:hover { filter: brightness(1.08); background: var(--primary); }
|
||||
|
||||
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 1rem; }
|
||||
.facts, .about { padding-block: 2rem; border-top: 1px solid var(--border); }
|
||||
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.75rem; margin: 0; }
|
||||
.fact { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
|
||||
.fact dt { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.25rem; }
|
||||
.fact dd { margin: 0; }
|
||||
section { padding: 44px 0; }
|
||||
.hero { padding: 72px 0 32px; }
|
||||
.label { font: 500 13px var(--mono); color: var(--muted); margin: 0 0 12px; }
|
||||
.lede { font-size: clamp(1rem, 2.2vw, 1.1rem); line-height: 1.6; color: var(--ink-2); max-width: 620px; }
|
||||
|
||||
blockquote { margin: 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--logo); }
|
||||
blockquote p { margin: 0 0 1rem; max-width: 46rem; }
|
||||
cite { font-style: normal; color: var(--muted); font-size: 0.9rem; }
|
||||
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px;
|
||||
font-weight: 500; font-size: 14px; text-decoration: none; color: var(--ink);
|
||||
background: var(--glass); border: 1px solid var(--edge);
|
||||
-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
|
||||
transition: background .15s, border-color .15s;
|
||||
}
|
||||
.btn:hover { background: rgba(255, 255, 255, 0.13); }
|
||||
.btn.primary { color: var(--bg); background: var(--ink); border-color: var(--ink); }
|
||||
.btn.primary:hover { background: #ffffff; box-shadow: 0 0 22px rgba(255, 255, 255, 0.25); }
|
||||
|
||||
.bottom { padding-block: 2rem 3rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
|
||||
.bottom p { margin: 0; }
|
||||
/* frosted glass panels */
|
||||
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
|
||||
.card {
|
||||
display: block; padding: 20px; color: inherit; text-decoration: none;
|
||||
background: var(--glass); border: 1px solid var(--edge); border-radius: 16px;
|
||||
-webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
|
||||
box-shadow: inset 0 1px 0 var(--hi), 0 16px 40px rgba(0, 0, 0, 0.35);
|
||||
transition: background .15s, border-color .15s;
|
||||
}
|
||||
.card:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
|
||||
.card p { color: var(--ink-2); font-size: 14px; }
|
||||
.card p:last-child { margin-bottom: 0; }
|
||||
.card .meta { font: 12px var(--mono); color: var(--muted); }
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) { .button { transition: background-color 0.15s, filter 0.15s; } }
|
||||
.site-foot {
|
||||
display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
|
||||
padding: 26px 16px 44px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--hair); margin-top: 28px;
|
||||
}
|
||||
.site-foot a { color: var(--muted); text-decoration: none; }
|
||||
.site-foot a:hover { color: var(--ink); }
|
||||
.foot-right { margin-left: auto; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue