This portfolio
Framework-free animations, three card APIs with a fallback and a CI/CD pipeline that refreshes itself every week. About 8 KB of JavaScript across the whole site.
- Role
- Everything
- Stack
- Astro, TypeScript, View Transitions, Playwright, GitHub Actions, Cloudflare Workers
- Year
- 2026
Context
My previous portfolio was a React SPA with GSAP: the HTML reached the browser empty, SEO suffered and the JavaScript was heavy. Since almost all of my work is closed source, I also needed a public project that shows how I think, from front end to deploy.
The problem
I wanted a level of animation I had never reached — a cursor with physics, page transitions, elements appearing as you scroll — without giving up performance, accessibility or SEO, and without animation libraries.
The approach
- Astro renders static HTML per route, in Portuguese and English, and only ships the JavaScript I wrote.
- Plain TypeScript animations: the cursor follows the mouse with a damped spring computed every frame; page changes use the browser’s View Transitions with a circular mask that opens from the click point; blocks appear through
IntersectionObserverand CSS; each section’s divider draws itself with a scroll-driven animation. - Holographic cards: at build time a script fetches Pokémon, Magic and One Piece cards from three public APIs. If one fails, is slow or returns unexpected data, that game uses a fallback set kept in the repository; the build never breaks because of them.
- CI/CD: every push and pull request goes through type-checking, unit tests (Vitest) and browser tests (Playwright) before publishing to Cloudflare. Every Monday the site rebuilds itself with new cards.
Bugs worth telling
- A transition that failed 1 time in 10. Chromium sometimes aborted the page transition. The cause: the rule that enables it lived in an external stylesheet, and the browser sometimes checked for it before applying it. Moving that rule into the
<head>took it from 4 failures in 45 runs to 0 in 120. - A card stuck on phones. After a tap, the card stayed tilted: focus arrived after the touch ended and applied the keyboard pose. That pose now only applies to keyboard focus.
- CI breaking on
npm ci. The lockfile generated with one npm version lacked optional dependencies that the runner’s version required. I reproduced it locally with the CI’s exact npm version before fixing it.
Each of these became an automated test that failed before the fix.
Result
- Mobile Lighthouse: 99–100 performance and 100 accessibility, best practices and SEO.
- About 8 KB of JavaScript across the whole site (4 KB compressed).
- Works without JavaScript: all content is HTML; JS only adds motion.
- Respects the system’s “reduce motion” setting, and the custom cursor only shows up with a mouse.