feat: binary glow effects, refined drawings and calls to action

Dark surfaces now carry light: frames glow along their edge and shed binary
digits (BitAura), dark sections open with a lit seam (BitSeam), the career
path is a line of light and "My work" became a dark stage. Buttons carry a
travelling light and a spot that follows the pointer (BitGlow).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-04 13:07:09 +02:00
co-authored by Claude Opus 5.5
parent e9f05b02fc
commit e89a248ca5
21 changed files with 1532 additions and 606 deletions
@@ -1,5 +1,6 @@
"use client";
import { BitAura } from "@/src/components/bits/BitAura";
import * as React from "react";
import { useNarrow } from "./useNarrow";
import {
@@ -242,193 +243,197 @@ export const AutomationFlow: React.FC = () => {
{flow.summary}
</p>
<div className="mt-8 overflow-hidden rounded-3xl bg-slate-900">
<div className="flex items-center justify-between border-b border-slate-800 px-5 py-4 md:px-7">
<span className={`${MONO} text-slate-400`}>{flow.name}</span>
<span className={`${MONO} flex items-center gap-2 text-slate-500`}>
<span
className={`h-1.5 w-1.5 rounded-full ${finished ? "bg-emerald-400" : "bg-amber-300 animate-pulse"}`}
/>
{finished ? "run complete" : "running"}
</span>
</div>
<div>
<svg
viewBox={`0 0 ${canvas.w} ${canvas.h}`}
role="img"
aria-label={`${flow.name}: ${flow.summary}`}
className="block h-auto w-full"
>
<defs>
<pattern
id="flow-grid"
width="20"
height="20"
patternUnits="userSpaceOnUse"
>
<circle cx="1" cy="1" r="1" fill="#1e293b" />
</pattern>
</defs>
<rect width={canvas.w} height={canvas.h} fill="url(#flow-grid)" />
{flow.edges.map(([from, to]) => {
const a = nodeOf(from);
const b = nodeOf(to);
if (!a || !b) return null;
const done = still || travelled.has(`${from}>${to}`);
return (
<path
key={`${from}>${to}`}
d={pathOf(a, b, tall)}
fill="none"
stroke={done ? "#e2e8f0" : "#334155"}
strokeWidth={done ? 2 : 1.5}
style={{ transition: "stroke 300ms" }}
/>
);
})}
{activeEdges.map(([from, to]) => {
const a = nodeOf(from);
const b = nodeOf(to);
if (!a || !b || clock.t >= 1) return null;
const eased = ease(clock.t);
return (
<g key={`packet-${from}>${to}`}>
{[0.16, 0.1, 0.05].map((lag, i) => {
const p = pointOn(a, b, Math.max(0, eased - lag), tall);
return (
<circle
key={lag}
cx={p.x}
cy={p.y}
r={5 - i}
fill={MARK}
opacity={0.12 + i * 0.12}
/>
);
})}
<circle
cx={pointOn(a, b, eased, tall).x}
cy={pointOn(a, b, eased, tall).y}
r={7}
fill={MARK}
/>
</g>
);
})}
{placed.map((node) => {
const style = KIND_STYLE[node.kind];
const on = reached.has(node.id);
return (
<g key={node.id}>
<rect
x={node.cx - NODE_W / 2}
y={node.cy - NODE_H / 2}
width={NODE_W}
height={NODE_H}
rx={14}
fill={on ? "#1e293b" : "#0f172a"}
stroke={on ? style.stroke : "#334155"}
strokeWidth={on ? 1.75 : 1.25}
strokeDasharray={style.dash}
style={{ transition: "fill 300ms, stroke 300ms" }}
/>
<text
x={node.cx - NODE_W / 2 + 16}
y={node.cy - 8}
fill={on ? style.tag : "#64748b"}
style={{
fontFamily:
"var(--font-jetbrains-mono), ui-monospace, monospace",
fontSize: 10,
letterSpacing: "0.14em",
textTransform: "uppercase",
transition: "fill 300ms",
}}
>
{node.system}
</text>
<text
x={node.cx - NODE_W / 2 + 16}
y={node.cy + 14}
fill={on ? "#f8fafc" : "#94a3b8"}
style={{
fontFamily:
"var(--font-inter), Inter, system-ui, sans-serif",
fontSize: 15,
fontWeight: 600,
transition: "fill 300ms",
}}
>
{node.label}
</text>
{on && (
<circle
cx={node.cx + NODE_W / 2 - 16}
cy={node.cy - NODE_H / 2 + 16}
r={4}
fill={node.kind === "human" ? "#f8fafc" : "#34d399"}
/>
)}
</g>
);
})}
</svg>
</div>
<div className="grid grid-cols-1 border-t border-slate-800 md:grid-cols-12">
<div className="border-b border-slate-800 px-5 py-5 md:col-span-7 md:border-b-0 md:border-r md:px-7">
<p className={`${MONO} m-0 text-slate-500`}>Log</p>
<ol
className="m-0 mt-3 min-h-[7.5rem] list-none p-0 font-mono text-[12px] leading-relaxed text-slate-300 md:text-[13px]"
aria-live="off"
>
{logLines.map((line, index) => (
<li key={line} className="flex gap-3">
<span className="text-slate-600">
{String(index + 1).padStart(2, "0")}
</span>
<span
className={
line.startsWith("unclear") ? "text-amber-200" : undefined
}
>
{line}
</span>
</li>
))}
</ol>
<BitAura source="around" tone="light" motion="pulse" className="mt-8">
<div className="overflow-hidden rounded-3xl bg-slate-900">
<div className="flex items-center justify-between border-b border-slate-800 px-5 py-4 md:px-7">
<span className={`${MONO} text-slate-400`}>{flow.name}</span>
<span className={`${MONO} flex items-center gap-2 text-slate-500`}>
<span
className={`h-1.5 w-1.5 rounded-full ${finished ? "bg-emerald-400" : "bg-amber-300 animate-pulse"}`}
/>
{finished ? "run complete" : "running"}
</span>
</div>
<ul className="m-0 flex list-none flex-col justify-center gap-2 px-5 py-5 md:col-span-5 md:px-7">
{(Object.keys(KIND_LABEL) as NodeKind[])
.filter((kind) => flow.nodes.some((node) => node.kind === kind))
.map((kind) => (
<li
key={kind}
className="flex items-center gap-3 font-mono text-[11px] text-slate-400"
<div>
<svg
viewBox={`0 0 ${canvas.w} ${canvas.h}`}
role="img"
aria-label={`${flow.name}: ${flow.summary}`}
className="block h-auto w-full"
>
<defs>
<pattern
id="flow-grid"
width="20"
height="20"
patternUnits="userSpaceOnUse"
>
<svg width="22" height="12" aria-hidden="true">
<rect
x="1"
y="1"
width="20"
height="10"
rx="3"
fill="none"
stroke={KIND_STYLE[kind].stroke}
strokeWidth="1.5"
strokeDasharray={KIND_STYLE[kind].dash}
<circle cx="1" cy="1" r="1" fill="#1e293b" />
</pattern>
</defs>
<rect width={canvas.w} height={canvas.h} fill="url(#flow-grid)" />
{flow.edges.map(([from, to]) => {
const a = nodeOf(from);
const b = nodeOf(to);
if (!a || !b) return null;
const done = still || travelled.has(`${from}>${to}`);
return (
<path
key={`${from}>${to}`}
d={pathOf(a, b, tall)}
fill="none"
stroke={done ? "#e2e8f0" : "#334155"}
strokeWidth={done ? 2 : 1.5}
style={{ transition: "stroke 300ms" }}
/>
);
})}
{activeEdges.map(([from, to]) => {
const a = nodeOf(from);
const b = nodeOf(to);
if (!a || !b || clock.t >= 1) return null;
const eased = ease(clock.t);
return (
<g key={`packet-${from}>${to}`}>
{[0.16, 0.1, 0.05].map((lag, i) => {
const p = pointOn(a, b, Math.max(0, eased - lag), tall);
return (
<circle
key={lag}
cx={p.x}
cy={p.y}
r={5 - i}
fill={MARK}
opacity={0.12 + i * 0.12}
/>
);
})}
<circle
cx={pointOn(a, b, eased, tall).x}
cy={pointOn(a, b, eased, tall).y}
r={7}
fill={MARK}
/>
</svg>
{KIND_LABEL[kind]}
</li>
))}
</ul>
</g>
);
})}
{placed.map((node) => {
const style = KIND_STYLE[node.kind];
const on = reached.has(node.id);
return (
<g key={node.id}>
<rect
x={node.cx - NODE_W / 2}
y={node.cy - NODE_H / 2}
width={NODE_W}
height={NODE_H}
rx={14}
fill={on ? "#1e293b" : "#0f172a"}
stroke={on ? style.stroke : "#334155"}
strokeWidth={on ? 1.75 : 1.25}
strokeDasharray={style.dash}
style={{ transition: "fill 300ms, stroke 300ms" }}
/>
<text
x={node.cx - NODE_W / 2 + 16}
y={node.cy - 8}
fill={on ? style.tag : "#64748b"}
style={{
fontFamily:
"var(--font-jetbrains-mono), ui-monospace, monospace",
fontSize: 10,
letterSpacing: "0.14em",
textTransform: "uppercase",
transition: "fill 300ms",
}}
>
{node.system}
</text>
<text
x={node.cx - NODE_W / 2 + 16}
y={node.cy + 14}
fill={on ? "#f8fafc" : "#94a3b8"}
style={{
fontFamily:
"var(--font-inter), Inter, system-ui, sans-serif",
fontSize: 15,
fontWeight: 600,
transition: "fill 300ms",
}}
>
{node.label}
</text>
{on && (
<circle
cx={node.cx + NODE_W / 2 - 16}
cy={node.cy - NODE_H / 2 + 16}
r={4}
fill={node.kind === "human" ? "#f8fafc" : "#34d399"}
/>
)}
</g>
);
})}
</svg>
</div>
<div className="grid grid-cols-1 border-t border-slate-800 md:grid-cols-12">
<div className="border-b border-slate-800 px-5 py-5 md:col-span-7 md:border-b-0 md:border-r md:px-7">
<p className={`${MONO} m-0 text-slate-500`}>Log</p>
<ol
className="m-0 mt-3 min-h-[7.5rem] list-none p-0 font-mono text-[12px] leading-relaxed text-slate-300 md:text-[13px]"
aria-live="off"
>
{logLines.map((line, index) => (
<li key={line} className="flex gap-3">
<span className="text-slate-600">
{String(index + 1).padStart(2, "0")}
</span>
<span
className={
line.startsWith("unclear")
? "text-amber-200"
: undefined
}
>
{line}
</span>
</li>
))}
</ol>
</div>
<ul className="m-0 flex list-none flex-col justify-center gap-2 px-5 py-5 md:col-span-5 md:px-7">
{(Object.keys(KIND_LABEL) as NodeKind[])
.filter((kind) => flow.nodes.some((node) => node.kind === kind))
.map((kind) => (
<li
key={kind}
className="flex items-center gap-3 font-mono text-[11px] text-slate-400"
>
<svg width="22" height="12" aria-hidden="true">
<rect
x="1"
y="1"
width="20"
height="10"
rx="3"
fill="none"
stroke={KIND_STYLE[kind].stroke}
strokeWidth="1.5"
strokeDasharray={KIND_STYLE[kind].dash}
/>
</svg>
{KIND_LABEL[kind]}
</li>
))}
</ul>
</div>
</div>
</div>
</BitAura>
<div className="mt-6 grid grid-cols-1 gap-6 md:grid-cols-2">
<div className="rounded-3xl border border-slate-200 p-6 md:p-8">