A portfolio page is quickly clicked together. With patchy.ch, though, I wanted to find out how far simple means can take you: no site builder, no framework, no cookie banner. This is how the site is put together, and why.
Static pages instead of a framework
patchy.ch consists of ordinary HTML pages, one stylesheet and a single JavaScript file. There is no server assembling pages on every request — the finished files sit at Cloudflare and are delivered as they are. You can tell: most pages weigh around 0.2 megabytes on a first visit, fonts included. Those are served from the site itself rather than from a font provider, which saves an extra connection.
Two languages, two sets of real pages
At first, a button switched the text between German and English with JavaScript. It looked convenient but had a catch: search engines only ever saw the German version. Today a small build script generates every page twice — German at patchy.ch, English at patchy.ch/en — and notes in both where the other language version lives. On every run the script also checks whether a German sentence has been left behind on an English page.
No cookies, no banner
The site sets no cookies: no advertising, no cross-site tracking. That is why it needs no cookie banner either. A strict Content Security Policy additionally defines which scripts the browser is allowed to run at all — everything else is blocked.
Motion in moderation
The navigation at the top contracts into a small pill as you scroll. To keep that from feeling mechanical, the movement follows a damped spring: it overshoots the target by about two per cent and settles after a little more than half a second. The curve is calculated, not guessed. The same principle applies everywhere: animations are short, and anyone who has enabled “reduce motion” in their operating system gets a calm version without slides and springs.
A drone in the browser
On the drone page a 3D model of the DJI Avata 2 rotates, and you can turn it sideways with the mouse. The original file was 4.6 megabytes; with downsized textures it is down to 1.3. The 3D library only loads once the rest of the page is in place, so text and images never have to wait for it.
A form that withstands spam
The contact form checks every message on the server: a signed token proves the form was really opened, an invisible field catches simple bots, and each sender can only submit a few messages within a short time. When a message goes through, a ring of 36 dots draws itself as confirmation — a small thing, but details like that make a site feel coherent.
Google's Lighthouse audit rates most pages between 97 and 99 for performance and 100 for accessibility. More important to me than the number is what is behind it: a page should appear quickly, read well and spy on no one. You can see what else I build on my projects page.