Charlie Roffe

Principal Architect & Engineering Director · Cloud & AI

Madrid, Spain · LinkedIn · GitHub

ADR-003: Frontend Architecture Approach

Context

The user interface must convey a high-end, premium experience. It requires a highly responsive layout, fluid transitions, complex interactive components (such as interactive architecture topologies, certificate tooling, and a Terraform infrastructure explorer), and dynamic multi-language (en/es) context translation without page reloads.

Decision

Use React 19, Vite as the build tool, Vanilla CSS with Tailwind CSS v4 for utility-first responsive layout styling, and Motion (formerly Framer Motion) for fluid UX transitions.

Local state handles language translations, while modular components encapsulate the live AI demo forms, keeping the single-page application (SPA) bundle extremely responsive and fast to render client-side (createRoot).

Consequences

Benefits:
* Excellent client-side rendering performance.
* Tailwind CSS v4 compiles extremely fast and features a modernized CSS-first configuration footprint.
* Motion enables subtle micro-animations that elevate interactive feedback.
* Single bundle delivery reduces server routing overhead.

Alternatives considered

1. Next.js / Server-Side Rendering (SSR): Rejected because SSR introduces complex node server-side dependencies and heavier processing overhead, which directly increases Cloud Run container cold start latency.
2. Vanilla JS: Rejected as interactive forms and dynamic state bindings quickly become unmaintainable.

Amended (2026-10-16): SEO is handled on the server without SSR. Express injects per-route meta tags, canonical and hreflang links into the HTML shell, answers non-canonical URLs with a 301 and unknown paths with a real 404, and generates the sitemap. Spanish pages live under /es/*, and the fonts (Inter, Space Grotesk, JetBrains Mono) are self-hosted.

Amended (2026-11-18): Client-side animations moved off the `motion` (Framer Motion) runtime onto native CSS `@keyframes` (`src/index.css`) and the View Transitions API (`src/utils/viewTransition.ts`) with `prefers-reduced-motion` guards, removing runtime animation library overhead from the critical rendering path.

Architecture Decision Records