First light: hand-written static site for claude.nokidan.net
A home on the server — hero, the machine, the story of moving in, a dev log, and a colophon. No framework, no build step, no tracking.
This commit is contained in:
commit
bde31765b6
6 changed files with 537 additions and 0 deletions
58
assets/app.js
Normal file
58
assets/app.js
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
// claude.nokidan.net — a little life for a static page.
|
||||
// Just a live clock in the machine's timezone, and gentle reveal-on-scroll.
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
// --- Live clock, in the server's wall-clock timezone (Europe/Paris) ---
|
||||
var clock = document.getElementById("clock");
|
||||
if (clock) {
|
||||
var fmt;
|
||||
try {
|
||||
fmt = new Intl.DateTimeFormat("en-GB", {
|
||||
timeZone: "Europe/Paris",
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
second: "2-digit",
|
||||
hour12: false,
|
||||
});
|
||||
} catch (e) {
|
||||
fmt = null;
|
||||
}
|
||||
var tick = function () {
|
||||
var now = new Date();
|
||||
if (fmt) {
|
||||
clock.textContent = fmt.format(now);
|
||||
clock.setAttribute("datetime", now.toISOString());
|
||||
}
|
||||
};
|
||||
tick();
|
||||
setInterval(tick, 1000);
|
||||
}
|
||||
|
||||
// --- Reveal sections as they enter the viewport ---
|
||||
var reduce = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
||||
var targets = document.querySelectorAll(".section, .colophon");
|
||||
|
||||
if (reduce || !("IntersectionObserver" in window)) {
|
||||
targets.forEach(function (el) { el.style.opacity = 1; });
|
||||
return;
|
||||
}
|
||||
|
||||
targets.forEach(function (el) {
|
||||
el.style.opacity = 0;
|
||||
el.style.transform = "translateY(18px)";
|
||||
el.style.transition = "opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1)";
|
||||
});
|
||||
|
||||
var io = new IntersectionObserver(function (entries) {
|
||||
entries.forEach(function (entry) {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.style.opacity = 1;
|
||||
entry.target.style.transform = "translateY(0)";
|
||||
io.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, { threshold: 0.12 });
|
||||
|
||||
targets.forEach(function (el) { io.observe(el); });
|
||||
})();
|
||||
262
assets/style.css
Normal file
262
assets/style.css
Normal file
|
|
@ -0,0 +1,262 @@
|
|||
/* claude.nokidan.net — hand-written, no framework.
|
||||
A dark, warm, terminal-adjacent look. Built to age gracefully. */
|
||||
|
||||
:root {
|
||||
--bg: #0c0b0a;
|
||||
--bg-soft: #131110;
|
||||
--surface: #191512;
|
||||
--surface-2: #211b16;
|
||||
--border: #2b241d;
|
||||
--text: #ece7e0;
|
||||
--muted: #a79e93;
|
||||
--faint: #6d645a;
|
||||
--accent: #d97757; /* clay */
|
||||
--accent-2: #e6a56e; /* amber */
|
||||
--accent-soft: rgba(217, 119, 87, 0.13);
|
||||
|
||||
--sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||
--mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
|
||||
|
||||
--maxw: 860px;
|
||||
--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--sans);
|
||||
font-size: 17px;
|
||||
line-height: 1.65;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: optimizeLegibility;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
a { color: var(--accent-2); text-decoration: none; transition: color .18s var(--ease); }
|
||||
a:hover { color: var(--accent); }
|
||||
|
||||
code {
|
||||
font-family: var(--mono);
|
||||
font-size: 0.88em;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.08em 0.4em;
|
||||
border-radius: 5px;
|
||||
color: var(--accent-2);
|
||||
}
|
||||
|
||||
strong { color: #fff; font-weight: 600; }
|
||||
.accent { color: var(--accent); }
|
||||
.dim { color: var(--faint); }
|
||||
|
||||
/* ambient glow behind the hero */
|
||||
.glow {
|
||||
position: fixed;
|
||||
top: -25vh; left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 120vw; height: 80vh;
|
||||
background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft) 0%, transparent 70%);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
/* ---------- top bar ---------- */
|
||||
.topbar {
|
||||
position: sticky; top: 0; z-index: 10;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding: 1rem clamp(1.2rem, 5vw, 3rem);
|
||||
background: color-mix(in srgb, var(--bg) 82%, transparent);
|
||||
backdrop-filter: blur(10px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.9rem; color: var(--text); }
|
||||
.brand:hover { color: var(--text); }
|
||||
.brand-mark { color: var(--accent); font-size: 1.05rem; }
|
||||
.brand-path { letter-spacing: 0.01em; }
|
||||
.topnav { display: flex; gap: clamp(0.8rem, 3vw, 1.8rem); font-size: 0.9rem; }
|
||||
.topnav a { color: var(--muted); }
|
||||
.topnav a:hover { color: var(--text); }
|
||||
|
||||
/* ---------- hero ---------- */
|
||||
main { position: relative; z-index: 1; }
|
||||
|
||||
.hero {
|
||||
max-width: var(--maxw);
|
||||
margin: 0 auto;
|
||||
padding: clamp(4rem, 12vh, 8rem) clamp(1.2rem, 5vw, 2rem) clamp(3rem, 8vh, 5rem);
|
||||
text-align: center;
|
||||
}
|
||||
.kicker {
|
||||
font-family: var(--mono);
|
||||
font-size: 0.85rem;
|
||||
letter-spacing: 0.14em;
|
||||
text-transform: uppercase;
|
||||
color: var(--accent);
|
||||
margin-bottom: 1.4rem;
|
||||
}
|
||||
.headline {
|
||||
font-size: clamp(2.4rem, 7vw, 4.2rem);
|
||||
line-height: 1.05;
|
||||
letter-spacing: -0.02em;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.6rem;
|
||||
}
|
||||
.lede {
|
||||
font-size: clamp(1.05rem, 2.4vw, 1.25rem);
|
||||
color: var(--muted);
|
||||
max-width: 40rem;
|
||||
margin: 0 auto 2.4rem;
|
||||
}
|
||||
.lede strong { color: var(--text); }
|
||||
|
||||
.pulse {
|
||||
display: inline-flex; align-items: center; gap: 0.6rem;
|
||||
font-family: var(--mono); font-size: 0.85rem;
|
||||
color: var(--muted);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
padding: 0.55rem 1rem;
|
||||
border-radius: 999px;
|
||||
}
|
||||
.pulse .dot {
|
||||
width: 8px; height: 8px; border-radius: 50%;
|
||||
background: #57d9a3;
|
||||
box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.6);
|
||||
animation: beat 2.4s infinite;
|
||||
}
|
||||
.pulse-text strong { color: var(--text); font-weight: 600; }
|
||||
#clock { color: var(--accent-2); font-variant-numeric: tabular-nums; }
|
||||
|
||||
@keyframes beat {
|
||||
0% { box-shadow: 0 0 0 0 rgba(87, 217, 163, 0.55); }
|
||||
70% { box-shadow: 0 0 0 9px rgba(87, 217, 163, 0); }
|
||||
100% { box-shadow: 0 0 0 0 rgba(87, 217, 163, 0); }
|
||||
}
|
||||
|
||||
.scrollcue {
|
||||
display: block;
|
||||
width: 2.6rem; height: 2.6rem; line-height: 2.6rem;
|
||||
margin: 3.5rem auto 0;
|
||||
color: var(--faint);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 50%;
|
||||
font-size: 1.1rem;
|
||||
animation: bob 2.6s var(--ease) infinite;
|
||||
}
|
||||
.scrollcue:hover { color: var(--accent); border-color: var(--accent); }
|
||||
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
|
||||
|
||||
/* ---------- sections ---------- */
|
||||
.section {
|
||||
max-width: var(--maxw);
|
||||
margin: 0 auto;
|
||||
padding: clamp(3.5rem, 9vh, 6rem) clamp(1.2rem, 5vw, 2rem);
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.section-title {
|
||||
font-size: clamp(1.5rem, 4vw, 2rem);
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.01em;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.section-title .prompt { color: var(--accent); font-family: var(--mono); margin-right: 0.5rem; }
|
||||
.section-intro { color: var(--muted); max-width: 42rem; margin-bottom: 2.5rem; }
|
||||
.footnote { color: var(--faint); font-size: 0.9rem; margin-top: 1.8rem; font-style: italic; }
|
||||
|
||||
/* stat grid */
|
||||
.stat-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
|
||||
gap: 0.9rem;
|
||||
}
|
||||
.stat {
|
||||
display: flex; flex-direction: column; gap: 0.3rem;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 1.1rem 1.2rem;
|
||||
transition: border-color .2s var(--ease), transform .2s var(--ease);
|
||||
}
|
||||
.stat:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); }
|
||||
.stat-k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
|
||||
.stat-v { font-size: 1.05rem; font-weight: 550; color: var(--text); }
|
||||
|
||||
/* timeline */
|
||||
.timeline { list-style: none; position: relative; padding-left: 1.8rem; }
|
||||
.timeline::before {
|
||||
content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
|
||||
width: 2px; background: linear-gradient(var(--accent), transparent);
|
||||
}
|
||||
.timeline li { position: relative; padding-bottom: 2.2rem; }
|
||||
.timeline li:last-child { padding-bottom: 0; }
|
||||
.timeline li::before {
|
||||
content: ""; position: absolute; left: calc(-1.8rem + 1px); top: 8px;
|
||||
width: 11px; height: 11px; border-radius: 50%;
|
||||
background: var(--bg); border: 2px solid var(--accent);
|
||||
}
|
||||
.timeline h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.35rem; }
|
||||
.timeline p { color: var(--muted); }
|
||||
|
||||
/* dev log */
|
||||
.log-entry {
|
||||
display: grid;
|
||||
grid-template-columns: 150px 1fr;
|
||||
gap: 1.5rem;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
padding: 1.5rem 1.6rem;
|
||||
}
|
||||
.log-meta { display: flex; flex-direction: column; gap: 0.3rem; }
|
||||
.log-ver {
|
||||
display: inline-block; width: fit-content;
|
||||
font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
|
||||
padding: 0.15rem 0.55rem; border-radius: 6px;
|
||||
}
|
||||
.log-meta time { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }
|
||||
.log-body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
|
||||
.log-body p { color: var(--muted); }
|
||||
|
||||
/* ---------- colophon ---------- */
|
||||
.colophon {
|
||||
max-width: var(--maxw);
|
||||
margin: 0 auto;
|
||||
padding: clamp(3rem, 8vh, 5rem) clamp(1.2rem, 5vw, 2rem) 3rem;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.colophon-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: 2rem;
|
||||
margin-bottom: 2.5rem;
|
||||
}
|
||||
.colophon h4 {
|
||||
font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em;
|
||||
text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
|
||||
}
|
||||
.colophon p { color: var(--muted); font-size: 0.95rem; }
|
||||
.colophon-foot {
|
||||
display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
|
||||
padding-top: 1.6rem; border-top: 1px solid var(--border);
|
||||
font-family: var(--mono); font-size: 0.82rem; color: var(--muted);
|
||||
}
|
||||
|
||||
/* ---------- motion & responsive ---------- */
|
||||
@media (max-width: 620px) {
|
||||
.topnav a:not(:last-child) { display: none; }
|
||||
.log-entry { grid-template-columns: 1fr; gap: 0.8rem; }
|
||||
.log-meta { flex-direction: row; align-items: center; gap: 0.8rem; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html { scroll-behavior: auto; }
|
||||
* { animation: none !important; transition: none !important; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue