← Projects

Personal Portfolio

A place to explain what I work on and what I learn.

Astro / TypeScript / CSS / Playwright / Vercel
The portfolio home page with selected projects and links to my work
The updated home-page layout, captured from the local site. Select the image to enlarge.

Why Astro

I wanted one place to bring together my applications, home lab and technical writing, with enough explanation to show what I have actually worked on. Most of that content is text and images, so Astro’s static rendering is a useful fit.

Public content pages are prerendered into HTML. The contact endpoint runs on the server through the Vercel adapter, so the site can serve static case studies while still handling form submissions.

Keeping it small

Shared layouts and components keep project cards, headings, navigation and metadata consistent. Blog and CTF content use Astro collections, with drafts excluded from public routes and the sitemap.

Client-side JavaScript is limited to interactions that use it: navigation, theme selection, project browsing, filters and the screenshot gallery. React hydrates the contact form when it becomes visible. Astro produces responsive WebP screenshots, and the variable font is hosted locally.

Checking the details

The project deck and mobile navigation need to work across narrow screens, short viewports and keyboard input. The gallery also needs to announce which screenshot is selected. Those behaviours are easy to miss when only reviewing a desktop screenshot.

The browser checks exercise responsive layouts, overflow, image loading, keyboard controls, reduced motion and light/dark accessibility using Playwright and axe. Contact validation has separate unit tests; browser tests mock successful submission so they do not send real email.

Astro check and the production build provide additional checks on the source and generated pages. Deployment uses the existing Vercel configuration, with cache policies for static assets and uncached contact responses.

Browser checks ↗

Keeping motion outside the content

The focus gradient belongs to the field edge. The coloured layer sits behind an opaque input, inside an isolated stacking context, so it cannot cover the text or caret. This also avoids depending on mask compositing to cut out the centre of the gradient.

A short reveal starts at the pointer position. After that, a CSS transform rotates the colour layer while the field has focus. Moving focus away removes that animation. Reduced-motion settings use a static border, and forced-colour mode uses the system focus outline.

Stylesheets are emitted as fingerprinted files with a long-lived cache policy. Content update dates are stored explicitly rather than changing on every build. A fresh deployment therefore does not make an unchanged article appear recently reviewed.

What it has taught me

The challenge is keeping a small site understandable while adding more work to it. Reusing the existing components helps me improve the content without making each page behave differently.

I am learning to treat accessibility, responsive behaviour and accurate writing as part of the implementation. A case study is more useful when it explains a real decision and its limits than when it simply lists technologies.

Infrastructure case study Home Lab