2026-07-06 08:13:57 +02:00
2026-11-09 13:25:05 +01:00
2026-07-06 08:13:57 +02:00
2026-07-06 08:13:57 +02:00

florianschroedl.com

Personal blog & CV, built as a pure babashka static site generator. No node toolchain — hiccup templates, markdown-clj content, a hand-rolled regex tokenizer for syntax highlighting, and client JS compiled from ClojureScript with squint at build time.

Commands

Command Action
bb dev Dev server at localhost:4321 (renders per request) in tmux session florianschroedl
bb dev:stop / dev:restart / dev:attach / dev:logs / dev:status Manage that session
bb dev:server The dev server in the foreground (what the tmux window runs)
bb widget:dev TokenScript widget dev server at localhost:4323 in tmux (widget:stop / widget:attach / widget:logs)
bb build Build the static site into ./dist/ (atomic swap)
bb deploy Regenerate CV PDF, push to both remotes, trigger live deploy
bb new Create a new blog post
bb new-note Create a new note
bb cv-pdf Re-render /cv to public/cv.pdf (headless Chromium)

Structure

├── bb.edn              # deps + tasks
├── content/
│   ├── blog/           # blog posts (markdown + yaml frontmatter)
│   └── notes/          # short notes (pubDate falls back to git creation date)
├── public/             # static assets, copied verbatim into dist/
│   └── css/main.css    # hand-written plain CSS (no framework)
├── resources/
│   ├── css/cv.css      # CV sheet styles, inlined into /cv for PDF fidelity
│   └── highlight/grammars/*.edn  # per-language tokenizer rules
└── src/site/
    ├── build.clj       # render all routes into a staging dir
    ├── server.clj      # httpkit dev server
    ├── content.clj     # load/sort markdown collections
    ├── markdown.clj    # markdown → hiccup with code highlighting
    ├── highlight.clj   # regex-walking tokenizer → hl-* spans
    ├── ui.clj          # shared components + layouts (hiccup)
    ├── pages.clj       # home/blog/notes pages
    ├── pages/          # about + cv pages
    ├── feeds.clj       # rss.xml, sitemap, robots.txt
    ├── js.clj          # squint-compiles src/site/js/*.cljs into js/main.js
    └── js/             # client-side ClojureScript (menu, lightbox)

Deployment, analytics, and the about-page access keys are documented in AGENTS.md.

About-page background animation

/about/ renders an animated canvas background (src/site/js/about_bg.cljs): a perspective matrix of dots streaming diagonally toward the viewer with two layered waves, hue slowly cycling through the full spectrum. Setting lineAlpha > 0 connects the dots into a wireframe grid (alternative style, off by default). It's masked to fade out at the top-left and bottom-right (.about-bg in main.css).

Interactive tuning

Open /about/?tune — this loads public/js/about-bg-tuner.js, a slider panel that writes straight into window.__aboutBg, which the animation reads every frame. You can also tweak from the console, e.g. __aboutBg.speed = 40.

Parameters:

Group Param Meaning
camera speed flow speed toward the viewer (world units/s)
pitch camera angle to the plane, degrees (small = flat/grazing)
roll rotation of the whole scene (diagonal flow direction)
fov / camH focal length (px) / camera height above the plane
vanishX / vanishY vanishing point, fraction of the viewport
density spacingX / spacingZ grid spacing within a row / between rows
rows rows of the grid into the distance
dots dotR dot radius (world units, perspective-scaled)
alpha max dot opacity
lines lineAlpha grid-line opacity (0 = dots only; >0 = wireframe)
lineW grid-line width (world units, perspective-scaled)
text dim dimAlpha fade strength behind [data-bg-dim] elements (0 = off)
dimPad / dimBlur padding around the measured rect / edge softness, px
wave 1/2 amp wave amplitude (world units)
waveDir travel direction on the plane, degrees
waveLen wavelength (world units)
waveSpeed temporal speed, rad/s — negative reverses

(Wave 2 uses the amp2 / wave2Dir / wave2Len / wave2Speed names.)

Persisting values

Hit log values in the panel (prints JSON to the console), then copy the numbers into the params map at the top of src/site/js/about_bg.cljs. The base dot color lives in CSS (.about-bg { color: ... }); the panel's color picker is a session-only override (__aboutBg.color, "" = use CSS).

S
Description
No description provided
Readme
81 MiB
Languages
Clojure 60.8%
CSS 31.2%
JavaScript 5.7%
TypeScript 1.4%
Shell 0.5%
Other 0.4%