Skip to main content
ECP – Enrique Cortés Pazarán (Home)
Back to projects

Case study

Resume

This website: a bilingual résumé and professional portfolio built with Astro and hosted on Firebase Hosting.

  • Astro
  • TypeScript
  • Tailwind CSS
  • Firebase
  • Google IDX

Problem

The first version of this site, built with Astro 5, Tailwind CSS and Flowbite, published the résumé in English and Spanish. Each language had its own independent set of content files, mixed with presentation details such as CSS classes and icon names, so nothing guaranteed that the two versions said the same thing.

An audit also found accessibility gaps (several level-1 headings, icon-only buttons without an accessible name, horizontal scrolling on narrow screens), a script loaded from a third-party CDN without an integrity check, no metadata for search engines or social previews, and no automated tests or continuous integration.

Approach

The goal was to turn the site into a single, maintainable source of professional information while keeping Astro. Content, presentation and logic were separated: each experience, education entry, certification and project is now one YAML file, validated at build time by a Zod schema through Astro content collections.

Skills are not written by hand: every entry lists the technologies it used from a shared catalogue, and the skills section is derived from them, so each fact is stated once. The pages are prerendered to static HTML from a small set of reusable components.

Quality is enforced by tooling instead of by memory: strict TypeScript, ESLint with accessibility rules, unit and component tests, and end-to-end tests that run against the production build.

Key decisions

Both languages are required by the schema

Every user-facing value is declared as an English and Spanish pair, and the build fails when one of them is missing. The cost is stricter authoring; the benefit is that an incomplete translation can never be published.

Static pages and minimal JavaScript

Everything is rendered to HTML at build time, with no client-side framework. A few small scripts handle the theme, the mobile menu state and the print button; the menu itself uses the browser's native Popover API.

No third-party requests

The font is served from the site itself, and a Content Security Policy based on hashes limits each page to its own scripts, styles, images and fonts. There are no analytics, trackers or external forms; contact is a plain email link and the LinkedIn profile.

Accessibility verified by tests

The target is WCAG 2.2 AA. axe-core runs on every page in both languages and both colour schemes; other tests cover keyboard navigation, reduced motion, text enlarged to 200% and horizontal overflow from 320 to 1920 pixels, and a unit test checks the contrast ratios of the colour tokens. Automated checks do not replace a manual screen-reader review.

Static hosting with explicit headers

Firebase Hosting serves the pre-built folder directly, with security and caching headers defined in firebase.json, instead of the experimental web frameworks integration, whose Astro adapter only supported Astro 2 to 4 when the site was upgraded to Astro 7.

Results

  • One content model feeds both languages: adding an experience, project or certification means adding one YAML file, without touching the components.
  • The production build is static HTML, CSS and a few small scripts; reading and navigation keep working with JavaScript disabled.
  • Types, lint, formatting, unit, component and end-to-end tests run with a single command and in the GitLab CI pipeline.
  • The pages pass the axe-core WCAG 2.2 AA checks in light and dark themes, in English and Spanish, on desktop and mobile viewports.