Skip to content
All projects

Portfolio v1

The previous version of this site, styled as a code editor.

a portfolio that's a code editor?⌘Kfile tree⌘K palette
the napkin

What it is

The first version of gabpaet.dev presented every page as a file in a VS Code-style editor, with a file tree, tabs, a command palette and a status bar.

How it's built

  • Next.js
  • Tailwind
  • TypeScript
  1. content/files.tsOne registry of every page
  2. Routes and IDE chromePages, sidebar, tabs, palette and sitemap all read it

What shipped

Portfolio v1 on desktop: the about page shown as a markdown file in a code editor, with a file tree, tabs and a status bar.
on a big screen
Portfolio v1 on a phone: the about page in the editor layout, with file tabs across the top.
and in your pocket

Hard problems

  1. One source of truth for navigation

    The sidebar, tabs, command palette, breadcrumb and sitemap all read one registry of files, so adding a page meant one entry instead of five.

    one entry instead of five

  2. Theme switching without a flash

    Accent, density and theme choices were applied by a small script before React loaded, so the first paint already matched the visitor's settings.

    no flash on first paint

  3. An editor layout on a phone

    The file tree became a slide-in drawer and the editor chrome shrank in three steps, so the IDE idea still worked on a small screen.

    the file tree became a drawer

What's next

  • Done: Retired in favour of v2, and kept live as a reference