How this site is built
This site is a project like any other, and most of its work is out of sight. Here is what happens under the surface, with the measured figures.
The foundations
A fully static site, built with Astro and Tailwind CSS and served by GitHub Pages: no server, no database. Every page exists in French and in English.
JavaScript is limited to the router that moves between pages without a reload and a handful of behaviors. Without it, all the content stays readable and every link works.
A background made of glyphs
The background is a photo of crumpled metal, rebuilt out of characters. Each 4-pixel cell becomes a glyph from the ramp “ ·:+×xX#”, from lightest to densest, and a 4 × 4 Bayer dither renders the shades in between. It is all drawn on a canvas, in IBM Plex Mono.
The same engine renders the project covers, animated on hover, the skill logos, and a fragment of the texture hidden in every button.
To stay light, it reads a copy of the photo scaled down to 480 pixels wide: one pixel per cell is enough. A single loop runs, at 12 frames per second; it only repaints the cells that change and stops off screen. The animation can be turned off in the settings, and turns itself off if your system asks for less motion.
The theme change
The theme button does not just fade: the new theme is revealed from top to bottom, then from bottom to top on the next change, behind a front of glyphs with a ragged edge, in one second.
It is a browser View Transition. Its mask is an SVG image drawn once, then slid by a native animation; the front's canvas only paints the lines it crosses. While it runs, the background texture repaints in the new colors in 3-millisecond slices, visible lines first, so that it is ready before the front reaches it.
The light theme adds no classes: it gives each shade of gray a light value, and the background becomes cream paper. Every component keeps its hierarchy in both themes.
The performance work
Every fix was measured on the built site, before and after.
| Item | Before | After |
|---|---|---|
| Background photo | 5.2 MB lossless, 319 ms to download | 417 KB as WebP, with no visible difference on screen |
| Copy read by the texture | 427 KB | 51 KB |
| Background arrival, on slow 4G | 377 ms, after the stylesheet | From the HTML, alongside the stylesheet |
| Chrome shine on headings | ~9% of the CPU per heading, even off screen | Paused as soon as it leaves the screen |
Smaller gains add up too: the tab icons are no longer downloaded again on every page, and the texture only prepares distant surfaces when the browser is idle.
A budget to make it last
These gains only matter if they hold. After every build, continuous integration measures the site, and blocks the release if any item goes over its cap.
| Item | Today | Cap |
|---|---|---|
| JavaScript, whole site | 59 KB (26.2 KB compressed) | 70 KB (30 KB compressed) |
| Stylesheet, compressed | 13.9 KB | 17 KB |
| Heaviest page, compressed | 27.8 KB | 34 KB |
| Largest image | 417 KB | 500 KB |
| Heaviest link preview card | 77 KB | 100 KB |
| Playable demos, all files | 1061 KB | 1250 KB |
| Résumé PDF, the larger one | 261 KB | 300 KB |
Checked before every release
Every rule in the scripts is written separately, in plain TypeScript, and tested; every behavior is also checked in a real browser. These tests run on every change, along with a dependency audit: if one fails, the live site stays on the previous version.
The site has also been audited against the RGAA, the French accessibility framework: see the accessibility statement.