kfraker.dev
The site you’re reading. I wanted a portfolio that felt like my own corner of the internet rather than a template, so it’s styled like a terminal, with a dark theme by default and a light one for the brave.
The intro
The first time you land on the homepage in a session, the page is a shell. It mistypes whomai, gets told off, tries again, and then thinks very hard about who it is (resolving identity...) before answering. Then the prompt, the command, and the name slide out of the terminal and into their places on the real page, and the rest of the site fades in around them.
Under the hood:
- Decided before the first paint. A tiny inline script picks whether to play before anything renders, so the page never flashes. Without JavaScript, or for visitors who prefer reduced motion, you just get the site.
- A shared-element transition. Each piece is measured in the terminal and in its final spot on the page, then animated between the two with the Web Animations API.
- Easy to skip. Any click, key press, or scroll jumps straight to the finished page, and it only plays once per session.
How it’s built
- Astro, fully static. The only JavaScript is the theme toggle and the intro.
- Typed content collections. Projects and posts are Markdown files with frontmatter schemas, so a typo in a date fails the build instead of shipping.
- Dual-theme everything. Colors are CSS custom properties, and code blocks are highlighted at build time in both light and dark themes.
- The small stuff. RSS, a sitemap, a 404 page that’s a failed
cd, and a nav where the./on the active link never nudges its neighbors.
How it’s tested
Being a portfolio site is no excuse for skipping the process. Every push runs browser tests on desktop, Android and iPhone sizes, and any JavaScript error fails the build. Every visitor goal is listed with the tests that prove it. Accessibility is checked against WCAG 2.2 AA on every page in both themes, and a performance budget keeps pages light. The live site only updates after all of that passes. On its first run, this setup caught a table overflowing at 400% zoom that I’d never have noticed by hand.