psst — this repo is also the source of my portfolio
live at alan-betty.vercel.app. no templates, no UI libraries, no CSS frameworks. all hand built, took way too long ngl.
stack: Next.js 15, React 19, TypeScript, Three.js, Lenis, GSAP and plain CSS.
npm install
npm run dev # http://localhost:3000
npm run build # prodthe black hole. the background is a real ray traced black hole, not a video. every pixel bends light using the actual physics equation:
d²r/dλ² = -3·h²·r / |r|⁵ h = |r × v|
(dw i didnt know any of this before i researched abt this. AI did the complex part.) so the shadow, photon ring and warped stars all just show up on their own. there's also 900 stars falling in and getting eaten, and the hole slowly follows your cursor. lowkey my fav part fr.
easter egg 👀 there's a tiny dark circle at the very bottom of the footer. click it.
drop a ⭐ if you liked it. take inspo, just don't copy paste the whole thing pls 🙏
how this README is made
GitHub strips JavaScript from READMEs, so everything here is CSS keyframes and SMIL inside SVGs, plus one animated WebP.
- the hero is the portfolio's own fragment shader, lifted straight out of
components/canvas/Cosmos.tsxand rendered offline in headless Chromium. the disk texture runs on a 7 s cycle, so one cycle loops perfectly. the scrolling text is lensed by the same point mass,β = θ − θE²·θ/|θ|², which is why it wraps into arcs and a mirrored second image around the shadow. - every panel is generated from
lib/data.ts, so the README and the site never drift apart. fonts are the site's own (Bricolage Grotesque, Instrument Serif, JetBrains Mono), subset per file and embedded.
npm run readme:svg # all the panels (~2 s)
npm run readme:hero # the black hole (~8 min, needs chromium + ffmpeg)


