bylx.dev — Case Study
back- HTML
- CSS
- Vanilla JS
- PHP
The question
Developer portfolios all look the same: hero, grid, footer. Mine had to prove something instead of claiming it. Could a pixel-art desk — where Rio de Janeiro and Lisbon share a window — carry an entire portfolio, built with nothing but the fundamentals?
What I built
An interactive scene where every object does what it looks like it should: the camera opens the gallery, the phone opens the contact form, the MP3 player opens a working player, the cocktail tells the story of the two cities, and the sushi tray explains how the desk was drawn.
- Canvas pixel-art scene on a 640×390 grid, always drawn at a whole-number scale
- Every sprite drawn once in greyscale and recoloured into a day (AM) and a night (PM) palette, plus a 3-bit grey mode
- Sections as program windows you can minimise, maximise, close and drag
- Custom pixel cursor with sakura-petal trail
- Working MP3 player with a 17-track lo-fi playlist
- PHP contact form with honeypot and graceful non-JS fallback
- Keyboard-accessible case-study modals
Technical decisions
Vanilla ES modules — scene, windows, theme, cursor, audio, modals and forms are isolated modules with a single init each. There is nothing to hydrate, so a framework would only add weight.
Greyscale in, palettes out — a small build script maps each grey level of every sprite to one of seven colours per theme, so a new palette is a JSON change, not a redraw. Clickable objects are real buttons laid over the canvas, so the scene stays keyboard- and screen-reader-accessible.
Seven colours per mode — the whole site, not just the scene, uses only the seven colours of the active palette, through role tokens in :root.
Pixel-crisp motion — the opening moves layers in whole-pixel steps, and it is skipped entirely when the system asks for reduced motion.
What I learned
Constraints are a design system. Refusing frameworks forced clean module boundaries; refusing smooth easing forced intentional animation. And accessibility inside a fully custom scene — focus states, aria labels, a form that works without JS — is where the real engineering happened.