Skip to main content

Site Architecture

This is a small personal site built with Vue and Nuxt. Most of my professional work lives in private enterprise systems, so this project gives me a public place to show how I organize a frontend, handle theming, and test interactions.

I use Nuxt to generate static HTML for the home, resume, and architecture pages. Netlify serves the generated files. Vue handles the interactive parts, including the resume timeline and theme controls.

The theme system is more involved than a portfolio strictly needs. I keep it here as a working example of shared design tokens and interchangeable layouts.

Explore the component workshop

Where AI Fits In

I built this site by hand in Vue. The design system, theme tokens, content store, and most of the components were in place before I brought in AI tools. Since then, Codex and Claude Code have written most of the changes from my prompts, and I review every diff before it merges.

That foundation is what keeps the AI-written code consistent. The agents follow what they find: new work uses the existing tokens, the shared content file, and both themes’ layouts instead of inventing its own. The component workshop was built this way.

To me, reviewing AI code means trusting the patterns and verifying the behavior. The unit suite, Lighthouse CI, and accessibility checks on every Storybook story have to pass, and I still check the result in a browser. Two catches from building the workshop, neither visible in the diff:

  • Codex set up browser tests for every story, but the test runner could not load its configuration, so no story had actually been tested. It looked finished, but it had never actually run.
  • The new workshop link opened a Page Not Found page in local development, because the workshop is only added to the site during the production build.

Performance & Lighthouse

The pages are pre-rendered so their content is available before client-side JavaScript runs. The studio photo on the home page uses responsive variants from @nuxt/image, fonts are self-hosted, and icons are inline SVGs.

Lighthouse CI audits the three pages with the desktop preset, using three runs per page. The configured minimum scores are 90 Performance, 95 Accessibility, 90 Best Practices, and 95 SEO. These are CI thresholds, not measured scores for every visitor or device.

The Lighthouse configuration defines those checks. Reports are uploaded as artifacts on the Lighthouse workflow runs.

Google Analytics loads through requestIdleCallback, with a timeout fallback, so it waits until the page is idle. A Netlify edge function checks the visitor’s country, and visitors from the EU and UK see a consent banner, with analytics cookies off until they choose.

Content & Components

The main copy lives in data/content.js. A Pinia store makes it available to both themes, so a resume edit does not have to be repeated in each layout. Theme-specific labels live with their components.

For a site this size, a JavaScript content file is enough. If editing needs grow, the store gives me a place to introduce a CMS without changing every view.

Component Workshop

The component workshop is a Storybook build of the site’s foundations, patterns, and components, published alongside the site. It renders the real Nuxt components, with a toolbar for switching between both themes, and every story runs an accessibility check in CI.

Two Themes, Shared Content

The Customize panel and keyboard command palette both use the same theme store. CSS custom properties provide shared colors, spacing, and typography, while a component registry lets each theme supply its own layouts.

I keep theme and mode separate: data-theme selects the design and data-mode selects light or dark where the theme supports it. Components fall back to the default theme when an override is absent.

The tradeoff is extra code: both themes are imported eagerly so switching layouts is synchronous. For a larger collection of themes, I would revisit that loading strategy.

Remembering a Theme

The selected theme is saved in localStorage and a cookie. An inline script applies the saved color attributes before paint. If the saved layout differs from the pre-rendered layout, it briefly hides the app while the client plugin applies that layout after hydration.

This avoids swapping component trees during hydration. The theme plugin also handles cleanup of the temporary cloak.

Links into the Resume

Links such as /resume#best-egg expand the matching employer’s roles and scroll to that section. The scroll helper waits for the DOM update and accounts for the sticky header.

The latest employer’s roles are open on an ordinary visit, so recent work is visible without a click. Older roles can be expanded individually.

Checks & Deployment

GitHub Actions runs three workflows on pull requests and pushes to main: the unit suite, the Lighthouse audits, and the component workshop, which builds the full site and runs every Storybook story with accessibility checks. The test workflow uploads coverage to Codecov; Lighthouse uploads its reports as workflow artifacts.

Netlify runs the static generation command when main changes. That command builds the site and the component workshop together, so the workshop ships at /storybook/. The workflow definitions live in .github/workflows. Routing rules live in public/_redirects, and netlify.toml defines the production build and edge function.

URLs & Metadata

Netlify rewrites /resume and /architecture to their generated HTML files. Old /music URLs redirect to my drum site.

Each page has a title and description, and app.vue supplies a canonical URL based on the current route. The site also includes a sitemap and Person structured data.

Testing

Vitest runs in the Nuxt test environment with happy-dom. The suite covers components, stores, theme initialization, navigation, and hash-driven resume expansion.

I use interaction tests for behaviors such as opening a menu, switching a theme, and expanding a role. The coverage report includes the theme components as well as the shared application code.

Run npm run test for the suite or npm run test:coverage for a fresh coverage report.

Accessibility

The site includes a skip-to-content link, landmarks, visible keyboard focus styles, and reduced-motion styles. Collapsed resume panels use inert so their contents leave the tab order and accessibility tree.

The navigation and appearance controls work from the keyboard. In CI, Lighthouse runs an accessibility audit on each page, and an accessibility violation in any Storybook story fails the workshop build.