Nov 21, 2026 · 5 min read
How I built my portfolio site: Next.js, WebGL and a film
- portfolio
- nextjs
- performance
- branding
How I built semmy.io front to back: a stretching logo, a film cut by script, dithered WebGL backdrops, and the work it took to get a 100 on PageSpeed, on a phone too.
A portfolio has one job: prove you can do the work. So I didn't take a template. I built semmy.io the way I build everything else: the whole d*mn thing, from the logo to the server headers. This is how it's put together, what it runs on, and what it cost to make it fast on a phone.

The stack: Next.js on Vercel
The site is a Next.js app (the app router), deployed on Vercel. Almost every page is rendered at build time, so a visitor gets plain HTML from the edge and the JavaScript only adds the motion on top.
- Content lives in the repo: projects in a typed data file, posts as MDX files like this one. Drop in a file, it shows up on the site, in the RSS feed and in the sitemap.
- Smooth scrolling comes from Lenis. Every animation reads the same scroll position, so nothing drifts.
- No fade-ins. Things wipe in from a mask, type themselves in from scrambled glyphs, or build up out of dots. That's a rule of the brand, not a style choice per page.
- Security headers go out with every page: a strict Content-Security-Policy, HSTS, no framing. Secure is the default here, not an extra.
A logo that stretches instead of shrinking
The logo is my name, lowercase, in Host Grotesk ExtraBold. The trick is in the two m's: each arch is cut at its crowns and a level piece bridges the gap, so the name can grow sideways without the curves ever getting distorted. The s, the e and the y never change.
One rule gives a lot: a logo, a motion (stretch and snap back) and a way to fill any width, like the full-width name in the footer. The whole system is written down in the brand guide, with the PDF and every file to download.

A film cut by a script
The film behind the hero isn't edited in a timeline. It's a Node script that builds the whole thing with ffmpeg: it downloads the licensed clips, trims every shot to the frame, grades them all the same way (the film's black is the page's black, its white is the brand's Bone), adds grain and pixel-dither flashes, and writes every version the site needs.
That matters when you want to change something. Re-frame one shot for phones, swap a clip that doesn't fit, move a cut: change a line, run the script, and every version comes out consistent. The score works the same way. Every sound effect is placed on a film frame by a second script, and it moves with the cut.
Dithered backdrops in WebGL
The dots you see in "What I do" and in the footer come from one WebGL canvas fixed behind the page. A section asks for a backdrop, and the canvas draws its video as an ordered dither: small cells of square dots, the same 4 × 4 pattern as the rest of the site. Its edge wipes in and out with the scroll as a skyline of dots.
The cursor joins in. It writes a small velocity field as you move, and the dots step out of its way and settle back when it stops. On a phone, without WebGL2, or with reduced motion, the canvas never starts and the plain video shows instead.

Making it fast on a phone
Here's where I had to eat my own words. A run of Lighthouse on mobile showed the homepage loading 36.7 MB, almost all of it film, and a Speed Index of 7.5 seconds. The sharp cuts of the film were going to phones that would never show them that sharp.
The fix was boring, which is how fixes should be:
- A small cut for phones. 540 × 960, a light denoise first (the grain is what eats the bits), then capped. About 0.7 MB as WebM instead of 5 to 6 MB.
- The sharp cuts only where they're seen. The full-screen player still plays them; the background doesn't need them.
- One file, picked once. The hero offered a list of cuts and let the browser choose. A browser that couldn't play the first one quietly downloaded the next, and the next. PageSpeed still saw 28 MB. Now the page picks exactly one file for the screen it's on, and if that one fails, nothing else comes down.
- Measure again. The homepage went from 36.7 MB to 1.2 MB. PageSpeed now gives it 100 on mobile (Speed Index 1.8 s, 30 ms of blocking time) and 100 on desktop (Speed Index 0.7 s, 0 ms), with 100 for accessibility, best practices and SEO on both.

The lesson isn't new, but it keeps being true: the heaviest thing on the page is the thing to look at first, and you only know which one it is when you measure.
What I'd tell anyone building their own
- Write the rules down before the pages. A brand guide with ten rules made a hundred small decisions for me.
- Script anything you'll do twice. The film, the score, the screenshots of my projects: all scripts. Changing my mind costs a command, not an afternoon.
- Test on a phone, early. Most of my fixes this month were phone fixes.
Want something built like this, for your business or your product? See how I build websites, look at the work, or get in touch.