Skip to content
Zakaria Lahgaz
All work

Case study

zaklab.dev

My portfolio, rebuilt as a fully static Next.js site that scores 100 for accessibility, best practices and SEO in Lighthouse, with zero axe-core violations.

Role
Solo · built with AI pair programming
When
2026
Stack
Next.js · React · TypeScript · Tailwind CSS · GSAP
The zaklab.dev home page: the name Zakaria Lahgaz set in very large type above a short introduction and résumé buttons

The problem

The previous version of this site wouldn’t build without a contact-form API key, and it shipped animation and icon libraries it barely used.

I wanted a page a recruiter can scan in under a minute that still works on a slow phone, with only a keyboard, or with a screen reader, and that I can update without touching components.

Key decisions

  • Static by default

    Every page, including case studies and their social share images, is rendered to HTML at build time. There is no server or database to keep running, and no API key that can expire and take the site down.

  • Content in typed data files

    All copy lives in content/*.ts. Adding a project means adding one object; its page, share image, nav link and sitemap entry are generated from it.

  • Motion as an enhancement, not a requirement

    GSAP and its scroll plugins load only once the browser is idle. Only content below the fold is ever hidden, nothing moves for people who turn on reduced motion, and with JavaScript off every word is still on the page.

  • Accessibility tested, not assumed

    Every colour pair passes WCAG AA contrast in both themes. Pages are checked with axe-core in light and dark mode at phone and desktop widths, and the mobile menu is a native <dialog>, so the browser handles focus and the Esc key.

Result

Lighthouse performance is 100 on desktop and 93–98 on its throttled mobile profile, with zero layout shift. Accessibility, best practices and SEO all score 100.

axe-core reports zero WCAG 2.2 AA violations in light and dark mode at phone and desktop widths. Updating the site means editing a data file, and Vercel redeploys on every push to main.