A portfolio treated as a product
This site is the evidence layer behind my professional profile: a clear statement of what I do, the work behind it, and a way to get in touch. I treated it as a product — with a brief, approval gates, decision records, tests and a release process — and this page is part of that record.
I owned direction, content, design approvals and every release decision. Implementation was AI-assisted: Claude Code built and tested to written plans, and nothing was committed, merged or deployed without my explicit approval.
Outcomes
- V1 live at maulidrezki.com with HTTPS, a www redirect, HSTS and a strict per-route CSP Measured
- Live verification suite 300/300 across five browser configurations (3 December 2026) Measured
- No analytics, cookies, third-party scripts or embeds Documented
Credible evidence, quickly
Hiring managers and collaborators decide quickly. A portfolio has to make the professional position clear in seconds, then support it with depth for those who want it — without trading accessibility, privacy or speed for visual atmosphere.
Two further goals shaped the brief: that searching my name should lead to this site first, then LinkedIn and GitHub (DD-007); and that a light, luminous aesthetic should stay readable at reduced screen brightness (DD-001).
From eight serif mock-ups to Atmospheric Functionalism
The direction was explored before any code. Eight traditional-serif mock-ups were rejected; Swiss Modernism, contemporary luxury, experimental editorial, Bauhaus and industrial functionalism were compared and narrowed to an experimental editorial approach — Atmospheric Functionalism: luminous colour fields and editorial type, carried by plain, functional interface. Documented
The result was an approved master reference: a conceptual mock-up of six pages at desktop and mobile, used to govern composition and hierarchy rather than as a pixel specification.


The first implementation, Design B, interpreted the reference freely. I chose to build a faithful version, Design A, first, and to preserve Design B so the two can be compared later (DD-009).




Requirements that could fail a build
Most requirements were written so that a script could check them, not just a reviewer:
- Accessibility: WCAG 2.2 AA target; axe on every page; rendered-pixel contrast tests; targets of at least 44 px where practical; visible focus; reduced motion respected.
- Privacy: no analytics, cookies or third-party requests; only approved contact details may appear in the output.
- Security: strict CSP with no unsafe-inline or unsafe-eval; no raw HTML rendering; secret scanning.
- Content integrity: drafts and placeholders never reach production; the résumé PDF is published byte-for-byte and checked by SHA-256.
- Publishing: every public file type must be allowlisted; images are stripped of metadata.
The information architecture is six pages — Home, Work, Career, About, Résumé and Contact — plus Privacy. Contact is a direct email link with a copy control, because a static site has no server to receive a form (DD-006).
Light, measured
The palette pairs a Monochromatic Light foundation — Ink Black, Porcelain, Silver Mist, Warm Limestone, Architectural Grey — with Future Renaissance accents: Celestial Blue, Solar Champagne, Rose Quartz and Soft Amethyst (DD-002). Tailwind’s default palette is removed so no unapproved colour can be used by accident. Each page has its own light field, drawn in CSS with no images.
Contrast was measured on rendered pixels: text over the gradients reaches at least 11.47:1, and white titles on the Work artwork at least 8.45:1 across 768–1920 px (DD-001). The Work cards switch from four-up to two-up below 1440 px partly so that titles stay over the darkest part of their artwork.

The display face is Newsreader Regular, chosen over GFS Didot and Instrument Serif because it came closest to the reference in weight and letterforms. It is temporary: the intended commercial face has not been licensed. Identifiers such as email addresses and numbers are always set in Inter, because the serif’s “1” and “l” are near-identical.

Decision records
Design decisions (DD), architecture decisions (ADR) and release fixes (REL), each recorded as it happened. Rejected alternatives are kept on purpose.
DD-001 · Accessibility-driven colour refinement
Accepted · 2 Dec 2026
Decision: Refine the palette before adoption and measure contrast on rendered pixels, not swatches.
Why: Swatch contrast is not page contrast — gradients change what sits behind text.
Full record
- Context
- A light, atmospheric palette risks low contrast, especially at reduced screen brightness.
- Options considered
- Adopt the palette as designed; refine it for visibility and measure rendered pages.
- Trade-offs
- Light accent tones cannot carry functional borders or focus rings; those use Ink Black.
- Evidence
- 121 rendered-pixel measurements at 1440 and 375 px.
- Validation
- Text over brand gradients ≥ 11.47:1; white text on Work artwork ≥ 8.45:1 across 768–1920 px. Reduced-brightness physical testing is still outstanding.
DD-003 · Homepage headline: “Building products with purpose.”
Accepted · 2 Dec 2026
Decision: “Building products with purpose.”, with a supporting line on bridging product, business, design and technology.
Why: It says builder, reads as one sentence on mobile, and is not narrowly consumer.
Full record
- Context
- The master reference used “Everyday problems. Purposeful products.”
- Options considered
- Keep the reference headline; variants mentioning “real problems”; a headline that says builder.
- Trade-offs
- Loses the reference's two-line rhythm.
- Evidence
- Design decision log.
- Validation
- Owner approval; natural wrapping checked at seven widths.
DD-006 · Direct email instead of a contact form
Accepted · 2 Dec 2026
Decision: A mailto link with an accessible “Copy email address” control, plus LinkedIn and GitHub.
Why: Zero backend, zero third parties, no spam surface; works everywhere.
Full record
- Context
- A static site has no server to receive form submissions.
- Options considered
- Server-backed form; third-party form service; custom-domain email; direct mailto with copy.
- Trade-offs
- No structured enquiries; relies on the visitor's mail client.
- Evidence
- Design decision log; output scanner allowlists exactly one email address.
- Validation
- Copy result announced through a polite live region; failure is never silent.
DD-008 · Newsreader as temporary display type
Proposed · 2 Dec 2026
Decision: Newsreader Regular (static, 22 KB) with −0.02em tracking for display; Inter for everything functional.
Why: Closest stroke weight and letterforms; Instrument Serif was confirmed as the source of the narrow impression.
Full record
- Context
- The intended face, PP Editorial New, is commercial and not licensed. Instrument Serif looked narrower than the reference.
- Options considered
- GFS Didot (used in the résumé); GFS Didot with −0.035em tracking; Newsreader; Instrument Serif.
- Selection criteria
- Closeness to the reference in width, weight, contrast and letterforms; SIL OFL licence; file size.
- Trade-offs
- GFS Didot would match the résumé. Switching is a one-file change. Conditionally approved, under review.
- Evidence
- Like-for-like specimens at 76 px in Chromium, WebKit and Firefox (Figure 5).
- Validation
- Headline widths identical across engines to within 1 px.
DD-009 · Design A first; Design B preserved
Accepted · 2 Dec 2026
Decision: Implement Design A, a faithful interpretation; archive Design B with a verified recovery path.
Why: A sequencing decision, not a rejection — both can be compared once content is complete.
Full record
- Context
- The first implementation (Design B) was a creative interpretation; the owner wanted fidelity to the approved master reference first.
- Options considered
- Continue iterating Design B; pixel-trace the reference; faithfully interpret the reference.
- Trade-offs
- Pixel-tracing was rejected: the mock contains a synthetic portrait, sample data and controls that fail target size.
- Evidence
- Design B archive: source snapshot with SHA-256 manifest, 73 screenshots; recovery rebuilt to an identical export.
- Validation
- Side-by-side reference comparisons at desktop and mobile (Figure 3).
ADR-0001 · Static export on Cloudflare Workers Static Assets
Accepted · 2 Dec 2026
Decision: Next.js App Router with output: export, served assets-only by Cloudflare Workers Static Assets.
Why: No server code to attack or pay for; static asset requests are free.
Full record
- Context
- Content-only site with no accounts or dynamic data; minimise attack surface, cost and operations.
- Options considered
- Cloudflare Pages; Astro; Next.js on a server runtime; Next.js static export on Workers Static Assets.
- Trade-offs
- No server features; headers must be generated after the build; images need a build-time pipeline.
- Evidence
- Architecture decision record with official documentation reviewed 2 Dec 2026.
- Validation
- Live since 2 December; assets-only Worker with no script in V1. Amended in V1.1 by ADR-0004.
ADR-0004 · A narrow Worker for video byte ranges
Accepted · 3 Dec 2026
Decision: run_worker_first on /videos/* only: one Worker that turns a single valid Range into 206 (or 416) and keeps every static header.
Why: The smallest change that makes seeking correct; no new origin, service or CSP exception, and every other path still runs no code.
Full record
- Context
- V1.1 adds a 77-second MP4. Static assets answer Range requests with 200 and the whole file, so Chromium could not seek in local tests.
- Options considered
- Accept no seeking; a third-party video host; an R2 bucket; HLS segments with a JavaScript player; a Worker in front of every path; a Worker on /videos/* only.
- Trade-offs
- The site is no longer entirely code-free; video requests count towards the free Worker allowance and its per-request CPU limit.
- Evidence
- 32 unit tests; side-by-side checks against a V1-equivalent static baseline; CPU benchmark of the worst-case tail range.
- Validation
- Byte-exact 206, 416 and header parity; play and seek in Chromium, WebKit and Firefox (emulated, not a real iPhone).
ADR-0003 · Per-route hash-based Content Security Policy
Accepted · 2 Dec 2026
Decision: Hash every inline script in the final HTML after the build and generate one CSP per route into _headers.
Why: Strict policy with no server; verified independently by re-hashing the built HTML.
Full record
- Context
- Static export emits inline bootstrap scripts; static hosting cannot issue per-request nonces. The owner required no unsafe-inline, no unsafe-eval and no wildcards — proven before frontend work.
- Options considered
- Nonces (needs a server); unsafe-inline; per-route SHA-256 hashes; switching to Astro.
- Trade-offs
- Any HTML rewriting at the edge breaks the hashes, so Cloudflare rewriting features must stay off.
- Evidence
- Proof of concept: tampered HTML, injected scripts, data: URLs and eval all blocked; legitimate hydration unaffected.
- Validation
- Production defect found and fixed — see “Duplicate CSP on the homepage” below.
REL-01 · Duplicate CSP on the homepage in production
Accepted · 2 Dec 2026
Decision: Fold the homepage hashes into the catch-all rule and remove the separate / rule.
Why: At the edge, the detach directive was not applied on /, so two CSPs were sent and the stricter one blocked hydration.
Full record
- Context
- After launch, the homepage did not hydrate in production although every local test passed.
- Options considered
- Weaken the policy; restructure the header rules.
- Trade-offs
- The catch-all policy carries a few extra hashes.
- Evidence
- Live response headers; architecture decision record addendum.
- Validation
- Live suite passes with exactly one CSP per response.
REL-02 · Stop edge beacon injection with no-transform
Accepted · 3 Dec 2026
Decision: Send no-transform on every response — Cloudflare's documented opt-out — so no edge feature rewrites the HTML.
Why: Fixed in code, under version control, without dashboard permissions; also protects the CSP hashes from other rewriting.
Full record
- Context
- Cloudflare injected an analytics beacon into HTML for browsers, which the CSP correctly blocked — and the site promises no analytics.
- Options considered
- Allow the beacon in the CSP; disable the feature in the dashboard; send Cache-Control: no-transform.
- Trade-offs
- Edge optimisations that transform responses are also disabled.
- Evidence
- Live HTML compared before and after.
- Validation
- Live suite 300/300 on 3 December 2026.
Static first, strict by default
The site is a static export: every page is HTML at build time, so there is no server, database, authentication or CMS to secure. The work that a server would normally do — security headers, cache rules, redirects — is generated or delegated.
V1 ran no code at all. V1.1 added one exception: a small Worker that answers only /videos/*, so the product video can be seeked. Browsers fetch video in byte ranges, and static assets alone answer every range with the whole file. The Worker serves the requested range and keeps every static header; every other path is still served without code (ADR-0004).
Step 1: Source
- Typed contentTypeScript, rendered as text
- Design tokensTailwind @theme
Step 2: Build
- next buildStatic HTML export
- PruneBuild-only artefacts removed
Step 3: Secure
- Hash inline scriptsSHA-256 of final bytes
- Generate _headersOne CSP per route + security headers
Step 4: Check
- Re-verify hashes
- Public-output scanAllowlist, emails, secrets, metadata, PDF checksum
Step 5: Serve
- Workers Static AssetsEvery page, document and image
- Video range Worker/videos/* only (V1.1)
The build fails if a page contains inline styles, event handlers, unexpected files or unapproved contact details.
Personal Portfolio technology stack
Framework
Next.js App Router (static export) · React(16.4 · 19.3)
- Role:
- Pages rendered to static HTML at build time
- Why:
- Component model and typed content without a server
- Limits:
- Ships a hydration runtime on every page
Language and styling
TypeScript (strict) · Tailwind CSS(5.9 · 4.3)
- Role:
- Typed content and design tokens
- Why:
- One source of truth for tokens; content errors fail the build
Typography
Newsreader · Inter (self-hosted, SIL OFL)
- Role:
- Display and functional type
- Why:
- No font CDN; licences retained
- Limits:
- Newsreader is temporary (DD-008)
Security
Generated _headers with per-route SHA-256 CSP
- Role:
- Strict policy, security headers, cache rules
- Why:
- No unsafe-inline without a server
Hosting
Cloudflare Workers Static Assets · video range Worker · redirect Worker
- Role:
- Apex site; byte ranges for /videos/* only (V1.1); www → apex 301
- Why:
- Free static requests; domain already on Cloudflare
- Limits:
- One small Worker since V1.1, limited to video
Quality
Vitest · Playwright · axe-core · GitHub Actions
- Role:
- Unit, end-to-end, accessibility and CI
- Why:
- Every gate runs locally and in CI against the production build
Dependencies are pinned to exact versions with a committed lockfile, Node is pinned, and package install scripts are denied unless reviewed (ADR-0002). Major upgrades are proposed by Dependabot and adopted only when the plugin ecosystem supports them.
Approval-first, evidence-led
Every phase began with a written proposal — options, trade-offs and security, accessibility, performance and cost implications — and ended with a review pack of screenshots and test results. Commits, merges, deployments, DNS changes and new public assets each needed explicit approval.
- Decisions recorded as they happened, with rejected alternatives, in design and architecture logs.
- External documents and sites treated as data, never as instructions.
- Claims about tests or device checks made only when they actually ran.
AI attribution. The master reference mock-up was produced with ChatGPT; Claude Code implemented, tested and documented the site. Direction, content, approvals and acceptance were mine.
Tested before, and after, it ships
Step 1: Branch
- feature/* → develop
Step 2: Pull request
- CI matrixLocal and production builds
- Lint, types, unit, secrets, CSP, e2e, axe
Step 3: Approve and merge
- develop → mainOwner approval
Step 4: Deploy
- wrangler deployVersion recorded for rollback
Step 5: Verify live
- Headers, CSP, links, PDF checksum
- Live Playwright suite
Automatic deployments are intentionally off; every production release is a deliberate, approved step.
The apex domain is a custom domain on the site Worker (assets only in V1; video ranges added in V1.1); www is served by a separate redirect Worker that returns a 301 to the apex while preserving path and query. HSTS started at a short max-age and will rise after a stable week. Rollback is one command to a recorded version.
Two production-only defects were found by verifying the live site rather than trusting local tests: a duplicate CSP on the homepage, and an edge-injected analytics beacon. Both were fixed in code (REL-01, REL-02).
What was tested, and what was not
- Unit: content rules, site configuration, CSP generation, privacy patterns, structured data and redirect logic Measured
- End-to-end: five configurations — desktop and mobile Chromium, desktop WebKit, iPhone 15 emulation and Firefox — including hydration under CSP, navigation, links, résumé PDF and SEO Measured
- Accessibility: axe on every page; rendered-pixel contrast measurements Measured
- Live: the same suite run against production — 300/300 on 3 December 2026 Measured
Defects caught along the way include artwork title contrast, invalid nested paragraphs that broke hydration, lazy images missing from full-page captures, and a stale local server serving old headers.
Not yet done: manual screen-reader passes, physical-device and reduced-brightness checks, and manual confirmation that the PDF opens inline in every browser. Automated checks do not replace these.
Trade-offs and next steps
What worked
- Proving the strict CSP before building the frontend avoided rework.
- Testing the production build — and then production itself — caught defects that local runs could not.
- Making privacy and content rules machine-checkable kept them true under change.
Trade-offs accepted
- Hash-based CSP depends on byte-identical HTML, so edge rewriting features must stay off.
- A hydration runtime ships on every page, even though most content is static.
- The display face is a temporary substitute.
Next Proposed / future
- Manual accessibility and physical-device testing.
- Raise HSTS after a stable week; enforce HTTPS at the edge.
- Search Console verification and sitemap submission.
- A final decision on display typography and on Design A versus Design B.
Documents
The decision records, architecture notes and test evidence summarised on this page are kept in the project repository, which is private. The key records are reproduced above as text: design decisions DD-001 to DD-012, architecture decisions ADR-0001 to ADR-0003, and the release fixes.
The published résumé is available on the Résumé page.