diff options
| author | duckyriley <[email protected]> | 2026-11-27 06:47:49 +0800 |
|---|---|---|
| committer | duckyriley <[email protected]> | 2026-11-27 06:47:49 +0800 |
| commit | f44ac7f08579a11f5be89fbb47f7af05730a02ac (patch) | |
| tree | c793ec5077b6810f60eb75d94f802e4464290177 /index.html | |
| download | riley-website-f44ac7f08579a11f5be89fbb47f7af05730a02ac.tar.gz riley-website-f44ac7f08579a11f5be89fbb47f7af05730a02ac.zip | |
Add homepage
Diffstat (limited to '')
| -rw-r--r-- | index.html | 386 |
1 files changed, 386 insertions, 0 deletions
diff --git a/index.html b/index.html new file mode 100644 index 0000000..623491b --- /dev/null +++ b/index.html @@ -0,0 +1,386 @@ +<!doctype html> +<html lang="en"> +<head> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> +<title>riley</title> +<link rel="preconnect" href="https://fonts.googleapis.com"> +<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> +<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;0,800;1,400&display=swap"> +<style> +/* Layout: the page is the desktop. A Fastbar-style band of islands on top, + a Ducky window running fastfetch as the hero, two smaller windows below, + all floating over a rose → cobalt → ink sky. Single dark world, by choice. */ +:root { + color-scheme: dark; + --ink: #121722; /* bar band, window glass base */ + --island: #1e2533; /* islands, rows */ + --edge: #2d3647; /* hairlines, pressed islands */ + --text: #e6e3ee; + --muted: #8e97ad; + --rose: #f2b8c6; /* the one accent: focused pill, prompt, labels */ + --lilac: #d3b1ea; + --blue: #8fb4f2; + --cyan: #8fd5e3; + --green: #a6dcb4; + --peach: #f2d8a7; + --red: #f28fa6; + --frame: #c9b2dc; /* the pastel window frame */ + --glass: rgba(18, 23, 34, 0.78); + --mono: "JetBrains Mono", "JetBrainsMono Nerd Font", ui-monospace, "SF Mono", Menlo, monospace; + --step--1: 0.78rem; + --step-0: 0.92rem; + --step-1: 1.05rem; + --step-2: 1.4rem; +} + +* { box-sizing: border-box; } +html { background: var(--ink); } +body { + margin: 0; + min-height: 100vh; + font-family: var(--mono); + font-size: var(--step-0); + line-height: 1.6; + color: var(--text); + background: + radial-gradient(60rem 28rem at 18% -6%, rgba(242, 184, 198, 0.55), transparent 70%), + radial-gradient(48rem 26rem at 88% 4%, rgba(211, 177, 234, 0.35), transparent 70%), + radial-gradient(70rem 40rem at 60% 42%, rgba(64, 98, 196, 0.38), transparent 70%), + linear-gradient(180deg, #3a3550 0%, #1d2a4a 34%, #141b2b 62%, var(--ink) 100%); + background-attachment: fixed; + -webkit-font-smoothing: antialiased; +} +body::before { + content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); + z-index: 10; background: var(--ink); +} +a { color: inherit; } +::selection { background: rgba(242, 184, 198, 0.3); } +:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 6px; } + +/* ── the bar ─────────────────────────────────────────── */ +.bar { + position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; + display: flex; justify-content: space-between; align-items: center; gap: 8px; + padding-block: 6px; + padding-left: max(16px, env(safe-area-inset-left, 0px)); + padding-right: max(16px, env(safe-area-inset-right, 0px)); + background: var(--ink); + font-size: var(--step--1); +} +.group { display: flex; align-items: center; gap: 6px; min-width: 0; } +.island { + display: flex; align-items: center; gap: 2px; + height: 30px; padding: 0 4px; border-radius: 15px; + background: var(--island); white-space: nowrap; flex-shrink: 0; +} +.island.pad { padding: 0 12px; gap: 8px; } +.pill { + display: inline-flex; align-items: center; height: 22px; padding: 0 11px; + border-radius: 11px; background: var(--rose); color: var(--ink); font-weight: 800; + text-decoration: none; +} +.menu a { + display: inline-flex; align-items: center; height: 22px; padding: 0 9px; + border-radius: 11px; color: var(--muted); text-decoration: none; +} +.menu a:hover { color: var(--rose); background: var(--edge); } +.dots { display: flex; gap: 5px; } +.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; } +.clock { font-weight: 700; font-variant-numeric: tabular-nums; } + +/* ── windows ─────────────────────────────────────────── */ +main { + max-width: 1040px; margin: 0 auto; + padding-block: clamp(24px, 6vw, 64px) 48px; + padding-left: max(16px, env(safe-area-inset-left, 0px)); + padding-right: max(16px, env(safe-area-inset-right, 0px)); + display: grid; gap: 22px; +} +.window { + background: var(--glass); + backdrop-filter: blur(18px) saturate(1.2); + -webkit-backdrop-filter: blur(18px) saturate(1.2); + border: 1.5px solid var(--frame); + border-radius: 16px; + min-width: 0; + box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7); +} +.titlebar { + display: flex; align-items: center; gap: 10px; + padding: 12px 16px 0; + color: var(--muted); font-size: var(--step--1); +} +.titlebar .tab { + display: inline-flex; align-items: center; gap: 8px; + padding: 3px 12px; border-radius: 8px; background: var(--island); color: var(--text); +} +.titlebar .tab::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); } +.body { padding: 18px clamp(16px, 4vw, 30px) 24px; } +.prompt { color: var(--muted); } +.prompt b { color: var(--rose); font-weight: 400; } +.prompt em { color: var(--blue); font-style: normal; } +.prompt u { color: var(--lilac); text-decoration: none; } + +/* fastfetch hero */ +.fetch { + display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 5vw, 56px); + align-items: center; margin-top: 18px; +} +.logo { + margin: 0; font-size: clamp(0.5rem, 1.5vw, 0.78rem); line-height: 1.12; font-weight: 800; + background: linear-gradient(160deg, var(--rose), var(--lilac) 45%, var(--blue)); + -webkit-background-clip: text; background-clip: text; color: transparent; + user-select: none; +} +.facts { min-width: 0; } +.facts h1 { + margin: 0 0 2px; font-size: var(--step-2); line-height: 1.2; font-weight: 800; text-wrap: balance; +} +.facts h1 span { color: var(--rose); } +.facts .rule { color: var(--edge); margin: 0 0 10px; overflow: hidden; white-space: nowrap; } +dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; row-gap: 2px; } +dt { font-weight: 700; } +dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; } +dt:nth-of-type(8n+1) { color: var(--rose); } +dt:nth-of-type(8n+2) { color: var(--green); } +dt:nth-of-type(8n+3) { color: var(--peach); } +dt:nth-of-type(8n+4) { color: var(--blue); } +dt:nth-of-type(8n+5) { color: var(--lilac); } +dt:nth-of-type(8n+6) { color: var(--cyan); } +dt:nth-of-type(8n+7) { color: var(--red); } +dt:nth-of-type(8n+8) { color: var(--frame); } +.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } +.swatches i { width: 14px; height: 14px; border-radius: 50%; display: block; } + +/* interactive shell */ +.shell { margin-top: 22px; border-top: 1px dashed var(--edge); padding-top: 14px; } +.out { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: inherit; } +.out .ok { color: var(--green); } +.out .err { color: var(--red); } +.out .k { color: var(--rose); } +.out .dim { color: var(--muted); } +.line { display: flex; align-items: center; gap: 0; } +.line label { white-space: nowrap; } +#cmd { + flex: 1; min-width: 0; background: transparent; border: 0; outline: none; + color: var(--text); font: inherit; caret-color: var(--rose); padding: 0; +} +.hint { color: var(--muted); font-size: var(--step--1); margin-top: 8px; } +.hint code { color: var(--rose); } + +/* lower windows */ +.pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; } +.window h2 { + margin: 0 0 14px; font-size: var(--step-1); font-weight: 700; color: var(--rose); +} +.window h2::before { content: "❯ "; color: var(--blue); } +.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } +.projects li { + background: var(--island); border-radius: 12px; padding: 12px 14px; + display: grid; gap: 4px; +} +.projects .name { font-weight: 700; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; } +.projects .tag { color: var(--muted); font-weight: 400; font-size: var(--step--1); } +.projects p { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.65; max-width: 62ch; } +.stack { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; } +.stack li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--edge); } +.stack li:last-child { border-bottom: 0; } +.stack span:first-child { color: var(--muted); } +.stack span:last-child { text-align: right; } +.palette { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } +.palette div { border-radius: 10px; padding: 26px 8px 6px; font-size: 0.66rem; color: var(--ink); font-weight: 700; } + +footer { + text-align: center; color: var(--muted); font-size: var(--step--1); + padding-block: 8px 36px; + padding-left: max(16px, env(safe-area-inset-left, 0px)); + padding-right: max(16px, env(safe-area-inset-right, 0px)); +} +footer b { color: var(--rose); font-weight: 400; } + +@media (max-width: 760px) { + .pair { grid-template-columns: minmax(0, 1fr); } + .fetch { grid-template-columns: minmax(0, 1fr); } + .logo { justify-self: start; } +} +@media (max-width: 560px) { + .menu a:not(:first-child) { display: none; } + .hide-sm { display: none; } +} +@media (prefers-reduced-motion: no-preference) { + .window { animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both; } + .pair .window:nth-child(1) { animation-delay: 0.08s; } + .pair .window:nth-child(2) { animation-delay: 0.14s; } + @keyframes rise { from { transform: translateY(10px); } to { transform: none; } } +} +</style> +</head> +<body> + +<header class="bar" aria-label="Top bar"> + <nav class="group" aria-label="Sections"> + <div class="island menu"> + <a class="pill" href="#about">riley</a> + <a href="#about">about</a> + <a href="#projects">projects</a> + <a href="#stack">stack</a> + </div> + </nav> + <div class="group"> + <div class="island pad hide-sm" aria-hidden="true"> + <span class="dots"><i style="background:var(--rose)"></i><i style="background:var(--lilac)"></i><i style="background:var(--blue)"></i><i style="background:var(--cyan)"></i></span> + </div> + <div class="island pad"><span class="clock" id="clock">Fri 27 Nov 02:53</span></div> + </div> +</header> + +<main> + <section class="window" id="about" aria-label="About Riley"> + <div class="titlebar"><span class="tab">riley — zsh</span><span class="hide-sm">ducky</span></div> + <div class="body"> + <div class="prompt"><b>>_</b> <em>▸</em><u>❯</u> fastfetch</div> + <div class="fetch"> +<pre class="logo" aria-hidden="true"> + ██████╗ ██╗██╗ ███████╗██╗ ██╗ + ██╔══██╗██║██║ ██╔════╝╚██╗ ██╔╝ + ██████╔╝██║██║ █████╗ ╚████╔╝ + ██╔══██╗██║██║ ██╔══╝ ╚██╔╝ + ██║ ██║██║███████╗███████╗ ██║ + ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝ ╚═╝ +</pre> + <div class="facts"> + <h1><span>riley</span>@macbook</h1> + <div class="rule" aria-hidden="true">──────────────────────────────────────────────</div> + <dl> + <dt>user</dt><dd>riley</dd> + <dt>os</dt><dd>macOS, managed by nix-darwin</dd> + <dt>shell</dt><dd>zsh + starship</dd> + <dt>term</dt><dd>ducky (my own, rust + gpui)</dd> + <dt>bar</dt><dd>fastbar (also mine)</dd> + <dt>editor</dt><dd>zed</dd> + <dt>font</dt><dd>JetBrainsMono Nerd Font</dd> + <dt>theme</dt><dd>dissociation</dd> + </dl> + <div class="swatches" aria-label="Terminal palette"> + <i style="background:#262e3d"></i><i style="background:var(--red)"></i><i style="background:var(--green)"></i><i style="background:var(--peach)"></i><i style="background:var(--blue)"></i><i style="background:var(--lilac)"></i><i style="background:var(--cyan)"></i><i style="background:#d9d6e2"></i> + </div> + </div> + </div> + + <div class="shell" aria-label="Interactive shell"> + <pre class="out" id="out" aria-live="polite"></pre> + <form class="line" id="line" autocomplete="off"> + <label for="cmd" class="prompt"><b>>_</b> <em>▸</em><u>❯</u> </label> + <input id="cmd" name="cmd" spellcheck="false" autocapitalize="off" aria-label="Type a command"> + </form> + <div class="hint">try <code>help</code>, <code>projects</code> or <code>colors</code></div> + </div> + </div> + </section> + + <div class="pair"> + <section class="window" id="projects" aria-labelledby="projects-h"> + <div class="body"> + <h2 id="projects-h">projects</h2> + <ul class="projects"> + <li> + <div class="name">fastbar <span class="tag">rust · gpui · lua</span></div> + <p>A replacement macOS menu bar. Reads the focused app's menus through Accessibility, keeps clear of the notch, and has its own control center for wi-fi, bluetooth, brightness and sound. Configured in Lua.</p> + </li> + <li> + <div class="name">ducky <span class="tag">rust · gpui · lua</span></div> + <p>A GPU-rendered terminal with tabs, a Lua config, swappable themes and a translucent, blurred window. The one you're looking at is styled after it.</p> + </li> + <li> + <div class="name">dissociation <span class="tag">rice</span></div> + <p>One palette, everywhere: the bar, the terminal, Zed and T3 Code share the same ink, slate and pastel rose, drawn from the wallpaper it's named after.</p> + </li> + </ul> + </div> + </section> + + <section class="window" id="stack" aria-labelledby="stack-h"> + <div class="body"> + <h2 id="stack-h">stack</h2> + <ul class="stack"> + <li><span>packages</span><span>nix + nix-darwin</span></li> + <li><span>install</span><span>pkg install <name></span></li> + <li><span>windows</span><span>yabai + skhd</span></li> + <li><span>languages</span><span>rust, swift, python</span></li> + <li><span>python</span><span>3.14, via nix</span></li> + </ul> + <div class="palette" aria-label="Dissociation palette"> + <div style="background:var(--rose)">rose</div> + <div style="background:var(--lilac)">lilac</div> + <div style="background:var(--blue)">blue</div> + <div style="background:var(--frame)">frame</div> + </div> + </div> + </section> + </div> +</main> + +<footer><b>❯</b> made by riley, riced in dissociation</footer> + +<script> +(() => { + // Live clock in the same format as Fastbar's. + const clock = document.getElementById('clock'); + const days = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']; + const months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; + const pad = n => String(n).padStart(2, '0'); + const tick = () => { + const d = new Date(); + clock.textContent = `${days[d.getDay()]} ${pad(d.getDate())} ${months[d.getMonth()]} ${pad(d.getHours())}:${pad(d.getMinutes())}`; + }; + tick(); setInterval(tick, 15000); + + // A tiny shell. + const out = document.getElementById('out'); + const form = document.getElementById('line'); + const input = document.getElementById('cmd'); + const esc = s => s.replace(/[&<>]/g, c => ({ '&': '&', '<': '<', '>': '>' })[c]); + const commands = { + help: () => [ + '<span class="k">whoami</span> who this is', + '<span class="k">projects</span> things riley made', + '<span class="k">stack</span> what this setup runs on', + '<span class="k">colors</span> the dissociation palette', + '<span class="k">clear</span> clear the screen', + ].join('\n'), + whoami: () => 'riley. builds tools for their own desktop, then makes them pretty.', + projects: () => [ + '<span class="k">fastbar</span> macOS menu bar <span class="dim">rust · gpui · lua</span>', + '<span class="k">ducky</span> terminal <span class="dim">rust · gpui · lua</span>', + '<span class="k">dissociation</span> the rice <span class="dim">one palette everywhere</span>', + ].join('\n'), + stack: () => 'nix-darwin · zsh · starship · ducky · fastbar · zed · yabai', + colors: () => { + const c = ['#262e3d','#f28fa6','#a6dcb4','#f2d8a7','#8fb4f2','#d3b1ea','#8fd5e3','#d9d6e2']; + return c.map(x => `<span style="color:${x}">██</span>`).join('') + '\n' + + c.map(x => `<span class="dim">${x}</span>`).slice(0, 4).join(' ') + '\n' + + c.map(x => `<span class="dim">${x}</span>`).slice(4).join(' '); + }, + fastfetch: () => 'already on screen ↑', + sudo: () => '<span class="err">nice try.</span>', + ls: () => 'fastbar/ ducky/ dissociation/', + }; + const print = (cmd, html) => { + out.innerHTML += `<span class="prompt"><b>>_</b> <em>▸</em><u>❯</u></span> ${esc(cmd)}\n` + (html ? html + '\n' : ''); + }; + form.addEventListener('submit', e => { + e.preventDefault(); + const raw = input.value.trim(); + input.value = ''; + if (!raw) { print('', ''); return; } + const name = raw.split(/\s+/)[0].toLowerCase(); + if (name === 'clear') { out.innerHTML = ''; return; } + const run = commands[name]; + print(raw, run ? run() : `<span class="err">zsh: command not found: ${esc(name)}</span> <span class="dim">(try help)</span>`); + }); +})(); +</script> +</body> +</html> |