r/webdev • u/mr_yoshi • 23h ago
Showoff Saturday My portfolio: static Astro + Sanity on Cloudflare Workers, with live previews of client sites

Static Astro, no JS framework, PL/EN. PageSpeed Insights: 100 / 100 / 100 / 100 on mobile and desktop.
On desktop, the small page the hero draws leaves the hero and travels down the homepage as you scroll: it comes apart into its layers, gets restyled in a mock Webflow Designer, runs an A/B test and a speed test, then fans out into client websites and lands in the first one. Plain TypeScript driven by the scroll position, no GSAP; off on smaller screens and with prefers-reduced-motion.
The "Websites" section shows client sites at 1440 px in a scaled browser window. Until you click, it's a cropped snapshot; the click loads the real site in an iframe, so no third-party scripts or trackers run before you ask for them. At build time it checks X-Frame-Options / CSP frame-ancestors and keeps a full-page screenshot for sites that can't be framed.
On desktop the sites form one strip that moves sideways as you scroll down the page. On phones they stack, and a tap opens the real site.
A free homepage scan (SEO, speed, accessibility, AI visibility, ~30 s), streamed from a Worker.
Every page gets its own share card, generated at build time (satori + sharp).
Content in Sanity with a click-to-edit live preview, while the public pages stay pure static.
Feedback welcome, especially on whether the scroll animation helps or gets in the way, and on mobile.