Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

perf(web): shrink served images and let browsers pick smaller files

Amruth Pillai07f460af317a
diff --git a/AGENTS.md b/AGENTS.md
index b91cb80cf..b9673b17d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -150,7 +150,7 @@ Narrow cross-cutting helpers go in `packages/utils` only after checking no domai
Multi-place changes:
- **Resume data shape**: `packages/schema/src/resume/*` first, then API DTOs, importers, PDF rendering, and web forms consuming it.
-- **New template**: `packages/schema/src/templates.ts`, `packages/pdf/src/templates/index.ts`, source under `packages/pdf/src/templates/<name>/`, and previews under `apps/web/public/templates/{jpg,pdf}`.
+- **New template**: `packages/schema/src/templates.ts`, `packages/pdf/src/templates/index.ts`, source under `packages/pdf/src/templates/<name>/`, and previews under `apps/web/public/templates/{pdf,jpg,thumb}`: the sample PDF, then images generated from it with the command in `apps/web/DESIGN.md` (Template previews).
- **New DB column/table**: `packages/db/src/schema/*`, then `pnpm db:generate`.
- **New env var**: `packages/env/src/server.ts`, `.env.example`, **and** the `globalPassThroughEnv` array and applicable test-task `env` arrays in `turbo.json`. Add deployment aliases in `packages/env/src/deployment.ts` when needed. Turborepo strict env mode filters unlisted injected variables from task processes.
diff --git a/apps/web/DESIGN.md b/apps/web/DESIGN.md
index 6d288d74f..7245db84a 100644
--- a/apps/web/DESIGN.md
+++ b/apps/web/DESIGN.md
@@ -240,7 +240,7 @@ The public homepage in `apps/web/src/features/homepage` shares app colors and th
- **Header:** a 30px logomark from `apps/web/public/icon/{light,dark}.svg`. Keep “Reactive Resume” as visually hidden text inside the home link.
- **Footer:** a 140px logo from `apps/web/public/logo/{light,dark}.svg` above the hero's promise (its two highlighted phrases in `accent-text`), the link columns, then a line of community, MIT license and version copy.
-- **Footer desk:** two drawings of the same writing desk in front of an open window, day (`apps/web/public/illustrations/footer-desk-light.webp`, moss and charcoal on white) and night (`footer-desk-dark.webp`, silver and amber on black). The light one multiplies and the dark one lightens into the page, so their white or black wall vanishes and the desk seems to stand on the footer; their far edges fade out. As the desk scrolls into view it paints itself in from the window down, just ahead of the fold, while it rises and settles from a 4% zoom; it completes exactly when the page ends (`--dp`, written by `scroll.ts`; 1 under reduced motion). In the light theme a soft morning glow rises behind the window with it. Its objects are links back into the story, each showing its scene number and name on hover or focus: the resume to Write, the glasses to Check, the letters to Share, the calendar to Prepare, the window to Remember. The lamp switches the theme, like the header's cord. Below 700px the desk crops to its middle and the hotspots hide (the columns carry the same links). Hotspot boxes are percentages of the drawing (`getDeskSpots` in `footer.tsx`): re-measure them if the drawing changes. The wall must be pure white in the day drawing and pure black in the night one: multiply and lighten only make those disappear, and any tint shows as a band. Flatten with `magick in.png -background white -alpha remove -alpha off flat.png` (black for the night one); if the wall came back tinted, lift it to white per channel (e.g. `-channel R -level 0,97% -channel G -level 0,96.6% -channel B -level 0,95% +channel` for a #F8F7F3 wall), then `cwebp -q 74 -m 6 -sharp_yuv flat.png -o out.webp`.
+- **Footer desk:** two drawings of the same writing desk in front of an open window, day (`apps/web/public/illustrations/footer-desk-light.webp`, moss and charcoal on white) and night (`footer-desk-dark.webp`, silver and amber on black). The light one multiplies and the dark one lightens into the page, so their white or black wall vanishes and the desk seems to stand on the footer; their far edges fade out. As the desk scrolls into view it paints itself in from the window down, just ahead of the fold, while it rises and settles from a 4% zoom; it completes exactly when the page ends (`--dp`, written by `scroll.ts`; 1 under reduced motion). In the light theme a soft morning glow rises behind the window with it. Its objects are links back into the story, each showing its scene number and name on hover or focus: the resume to Write, the glasses to Check, the letters to Share, the calendar to Prepare, the window to Remember. The lamp switches the theme, like the header's cord. Below 700px the desk crops to its middle and the hotspots hide (the columns carry the same links). Hotspot boxes are percentages of the drawing (`getDeskSpots` in `footer.tsx`): re-measure them if the drawing changes. The wall must be pure white in the day drawing and pure black in the night one: multiply and lighten only make those disappear, and any tint shows as a band. Flatten with `magick in.png -background white -alpha remove -alpha off flat.png` (black for the night one); if the wall came back tinted, lift it to white per channel (e.g. `-channel R -level 0,97% -channel G -level 0,96.6% -channel B -level 0,95% +channel` for a #F8F7F3 wall), then `cwebp -q 74 -m 6 -sharp_yuv flat.png -o out.webp`. The 3200px drawing also ships at 1600px and 2400px (`footer-desk-<theme>-1600.webp`, `-2400.webp`; `magick -filter Lanczos -resize 1600x`, same `cwebp` settings), listed in the images' `srcSet`.
- **Instrument Serif (`font-anybody`):** hero and closing headlines, selected scene titles, and large numerals. `font-anybody` is an alias of `font-display`.
- **Instrument Serif:** body copy, italic accents, and serif title treatments in the Design scene.
- **Labels (`font-martian`, an alias of `font-ui`):** Figtree 13px, weight 500, sentence case (`labelClass`).
@@ -283,6 +283,22 @@ Reduced motion fixes scenes at their end state and collapses pinned sections to
- Prerender the homepage and public ATS checker per locale at build time through `prerender.tsx` and `apps/web/vite.config.ts`. The app is a client-rendered SPA; `apps/server/src/static/web.ts` serves the generated HTML and adds canonical, Open Graph, `hreflang`, and structured data. Keep headings and body copy in the initial HTML.
- Include title and description metadata and `SoftwareApplication` structured data with a zero-price offer.
+- **Template previews** come from each template's sample PDF (`apps/web/public/templates/pdf/<id>.pdf`), never at print resolution: `templates/jpg/<id>.jpg` at 600×848 (builder and letter cards, the mobile picker and the README; old mobile builds load this URL, so it stays a JPEG), and `templates/thumb/<id>.webp` at 596×843 with a 300×424 `<id>-small.webp` (homepage and gallery). Regenerate them with the server's sharp:
+
+ ```sh
+ id=gengar
+ pdftoppm -png -r 300 -singlefile "apps/web/public/templates/pdf/$id.pdf" "/tmp/$id"
+ (cd apps/server && node --input-type=module -e '
+ import sharp from "sharp";
+ const id = process.argv[1], dir = "../web/public/templates";
+ const page = (width) => sharp(`/tmp/${id}.png`).resize(width, Math.round((width * 3508) / 2481), { fit: "fill" });
+ const webp = { quality: 75, effort: 6, smartSubsample: true };
+ await page(600).jpeg({ mozjpeg: true, quality: 75 }).toFile(`${dir}/jpg/${id}.jpg`);
+ await page(596).webp(webp).toFile(`${dir}/thumb/${id}.webp`);
+ await page(300).webp(webp).toFile(`${dir}/thumb/${id}-small.webp`);
+ ' "$id")
+ ```
+
- Use one `h1`, section headings, landmarks, and a skip link. Animated character treatments expose the complete string once to assistive technology. Nothing relies on hover alone.
- Translate copy, accessible labels, and demo resume text through Lingui. Names and addresses may stay literal; the Languages display intentionally preserves native words and language names. Allow text expansion and RTL layouts.
diff --git a/apps/web/public/apple-touch-icon-180x180.png b/apps/web/public/apple-touch-icon-180x180.png
index 7fb232ff9..faf632419 100644
Binary files a/apps/web/public/apple-touch-icon-180x180.png and b/apps/web/public/apple-touch-icon-180x180.png differ
diff --git a/apps/web/public/illustrations/footer-desk-dark-1600.webp b/apps/web/public/illustrations/footer-desk-dark-1600.webp
new file mode 100644
index 000000000..da64df042
Binary files /dev/null and b/apps/web/public/illustrations/footer-desk-dark-1600.webp differ
diff --git a/apps/web/public/illustrations/footer-desk-dark-2400.webp b/apps/web/public/illustrations/footer-desk-dark-2400.webp
new file mode 100644
index 000000000..1e8ea9452
Binary files /dev/null and b/apps/web/public/illustrations/footer-desk-dark-2400.webp differ
diff --git a/apps/web/public/illustrations/footer-desk-light-1600.webp b/apps/web/public/illustrations/footer-desk-light-1600.webp
new file mode 100644
index 000000000..8337d2f0e
Binary files /dev/null and b/apps/web/public/illustrations/footer-desk-light-1600.webp differ
diff --git a/apps/web/public/illustrations/footer-desk-light-2400.webp b/apps/web/public/illustrations/footer-desk-light-2400.webp
new file mode 100644
index 000000000..b53cdc0cc
Binary files /dev/null and b/apps/web/public/illustrations/footer-desk-light-2400.webp differ
diff --git a/apps/web/public/maskable-icon-512x512.png b/apps/web/public/maskable-icon-512x512.png
index 04749a5cb..bddc04a73 100644
Binary files a/apps/web/public/maskable-icon-512x512.png and b/apps/web/public/maskable-icon-512x512.png differ
diff --git a/apps/web/public/opengraph/ats-checker.png b/apps/web/public/opengraph/ats-checker.png
index fac09aa81..c146aee20 100644
Binary files a/apps/web/public/opengraph/ats-checker.png and b/apps/web/public/opengraph/ats-checker.png differ
diff --git a/apps/web/public/opengraph/banner.jpg b/apps/web/public/opengraph/banner.jpg
index 7dfb6d8ec..049cc6e5b 100644
Binary files a/apps/web/public/opengraph/banner.jpg and b/apps/web/public/opengraph/banner.jpg differ
diff --git a/apps/web/public/opengraph/features.jpg b/apps/web/public/opengraph/features.jpg
index 46b8d767b..d7d61a2e6 100644
Binary files a/apps/web/public/opengraph/features.jpg and b/apps/web/public/opengraph/features.jpg differ
diff --git a/apps/web/public/photos/sample-picture.jpg b/apps/web/public/photos/sample-picture.jpg
index 9f9747a4a..d2456b149 100644
Binary files a/apps/web/public/photos/sample-picture.jpg and b/apps/web/public/photos/sample-picture.jpg differ
diff --git a/apps/web/public/pwa-192x192.png b/apps/web/public/pwa-192x192.png
index 11b1a0de2..f7a90131d 100644
Binary files a/apps/web/public/pwa-192x192.png and b/apps/web/public/pwa-192x192.png differ
diff --git a/apps/web/public/pwa-512x512.png b/apps/web/public/pwa-512x512.png
index 04749a5cb..bddc04a73 100644
Binary files a/apps/web/public/pwa-512x512.png and b/apps/web/public/pwa-512x512.png differ
diff --git a/apps/web/public/pwa-64x64.png b/apps/web/public/pwa-64x64.png
index ad552f653..e57567667 100644
Binary files a/apps/web/public/pwa-64x64.png and b/apps/web/public/pwa-64x64.png differ
diff --git a/apps/web/public/templates/jpg/azurill.jpg b/apps/web/public/templates/jpg/azurill.jpg
index 9d6e8e67a..1e24399c5 100644
Binary files a/apps/web/public/templates/jpg/azurill.jpg and b/apps/web/public/templates/jpg/azurill.jpg differ
diff --git a/apps/web/public/templates/jpg/bronzor.jpg b/apps/web/public/templates/jpg/bronzor.jpg
index a78247b7f..617b2b359 100644
Binary files a/apps/web/public/templates/jpg/bronzor.jpg and b/apps/web/public/templates/jpg/bronzor.jpg differ
diff --git a/apps/web/public/templates/jpg/chikorita.jpg b/apps/web/public/templates/jpg/chikorita.jpg
index c364b6ef7..9a2a373e0 100644
Binary files a/apps/web/public/templates/jpg/chikorita.jpg and b/apps/web/public/templates/jpg/chikorita.jpg differ
diff --git a/apps/web/public/templates/jpg/ditgar.jpg b/apps/web/public/templates/jpg/ditgar.jpg
index fc37358d8..493727c3c 100644
Binary files a/apps/web/public/templates/jpg/ditgar.jpg and b/apps/web/public/templates/jpg/ditgar.jpg differ
diff --git a/apps/web/public/templates/jpg/ditto.jpg b/apps/web/public/templates/jpg/ditto.jpg
index a5c2cf13c..c0cabdfe5 100644
Binary files a/apps/web/public/templates/jpg/ditto.jpg and b/apps/web/public/templates/jpg/ditto.jpg differ
diff --git a/apps/web/public/templates/jpg/gengar.jpg b/apps/web/public/templates/jpg/gengar.jpg
index 0271221e7..d9af56daa 100644
Binary files a/apps/web/public/templates/jpg/gengar.jpg and b/apps/web/public/templates/jpg/gengar.jpg differ
diff --git a/apps/web/public/templates/jpg/glalie.jpg b/apps/web/public/templates/jpg/glalie.jpg
index 14625e2a0..06a758fc9 100644
Binary files a/apps/web/public/templates/jpg/glalie.jpg and b/apps/web/public/templates/jpg/glalie.jpg differ
diff --git a/apps/web/public/templates/jpg/kakuna.jpg b/apps/web/public/templates/jpg/kakuna.jpg
index c8b45c80b..82b11422a 100644
Binary files a/apps/web/public/templates/jpg/kakuna.jpg and b/apps/web/public/templates/jpg/kakuna.jpg differ
diff --git a/apps/web/public/templates/jpg/lapras.jpg b/apps/web/public/templates/jpg/lapras.jpg
index 7f1dca058..659a2d5fa 100644
Binary files a/apps/web/public/templates/jpg/lapras.jpg and b/apps/web/public/templates/jpg/lapras.jpg differ
diff --git a/apps/web/public/templates/jpg/leafish.jpg b/apps/web/public/templates/jpg/leafish.jpg
index 9b43db154..121b7a81c 100644
Binary files a/apps/web/public/templates/jpg/leafish.jpg and b/apps/web/public/templates/jpg/leafish.jpg differ
diff --git a/apps/web/public/templates/jpg/meowth.jpg b/apps/web/public/templates/jpg/meowth.jpg
index b601aa3ae..7bd7155d1 100644
Binary files a/apps/web/public/templates/jpg/meowth.jpg and b/apps/web/public/templates/jpg/meowth.jpg differ
diff --git a/apps/web/public/templates/jpg/onyx.jpg b/apps/web/public/templates/jpg/onyx.jpg
index 29c93bbb3..9ea57f7db 100644
Binary files a/apps/web/public/templates/jpg/onyx.jpg and b/apps/web/public/templates/jpg/onyx.jpg differ
diff --git a/apps/web/public/templates/jpg/persian.jpg b/apps/web/public/templates/jpg/persian.jpg
index a683ce9a5..6478ab87e 100644
Binary files a/apps/web/public/templates/jpg/persian.jpg and b/apps/web/public/templates/jpg/persian.jpg differ
diff --git a/apps/web/public/templates/jpg/pikachu.jpg b/apps/web/public/templates/jpg/pikachu.jpg
index 012ba3538..36f793678 100644
Binary files a/apps/web/public/templates/jpg/pikachu.jpg and b/apps/web/public/templates/jpg/pikachu.jpg differ
diff --git a/apps/web/public/templates/jpg/porygon.jpg b/apps/web/public/templates/jpg/porygon.jpg
index 81978a25b..5451764d9 100644
Binary files a/apps/web/public/templates/jpg/porygon.jpg and b/apps/web/public/templates/jpg/porygon.jpg differ
diff --git a/apps/web/public/templates/jpg/rhyhorn.jpg b/apps/web/public/templates/jpg/rhyhorn.jpg
index 36ab064ff..a2d7a6dc9 100644
Binary files a/apps/web/public/templates/jpg/rhyhorn.jpg and b/apps/web/public/templates/jpg/rhyhorn.jpg differ
diff --git a/apps/web/public/templates/jpg/scizor.jpg b/apps/web/public/templates/jpg/scizor.jpg
index 846c3d422..77de25885 100644
Binary files a/apps/web/public/templates/jpg/scizor.jpg and b/apps/web/public/templates/jpg/scizor.jpg differ
diff --git a/apps/web/public/templates/jpg/smeargle.jpg b/apps/web/public/templates/jpg/smeargle.jpg
index 829b84f21..975539e44 100644
Binary files a/apps/web/public/templates/jpg/smeargle.jpg and b/apps/web/public/templates/jpg/smeargle.jpg differ
diff --git a/apps/web/public/templates/thumb/azurill-small.webp b/apps/web/public/templates/thumb/azurill-small.webp
new file mode 100644
index 000000000..ee0df6303
Binary files /dev/null and b/apps/web/public/templates/thumb/azurill-small.webp differ
diff --git a/apps/web/public/templates/thumb/azurill.webp b/apps/web/public/templates/thumb/azurill.webp
index 380321c4c..6e6736f0f 100644
Binary files a/apps/web/public/templates/thumb/azurill.webp and b/apps/web/public/templates/thumb/azurill.webp differ
diff --git a/apps/web/public/templates/thumb/bronzor-small.webp b/apps/web/public/templates/thumb/bronzor-small.webp
new file mode 100644
index 000000000..cc282c8b9
Binary files /dev/null and b/apps/web/public/templates/thumb/bronzor-small.webp differ
diff --git a/apps/web/public/templates/thumb/bronzor.webp b/apps/web/public/templates/thumb/bronzor.webp
index cd67ed242..f5fa08547 100644
Binary files a/apps/web/public/templates/thumb/bronzor.webp and b/apps/web/public/templates/thumb/bronzor.webp differ
diff --git a/apps/web/public/templates/thumb/chikorita-small.webp b/apps/web/public/templates/thumb/chikorita-small.webp
new file mode 100644
index 000000000..36b551b7f
Binary files /dev/null and b/apps/web/public/templates/thumb/chikorita-small.webp differ
diff --git a/apps/web/public/templates/thumb/chikorita.webp b/apps/web/public/templates/thumb/chikorita.webp
index 24b560370..d87cf3940 100644
Binary files a/apps/web/public/templates/thumb/chikorita.webp and b/apps/web/public/templates/thumb/chikorita.webp differ
diff --git a/apps/web/public/templates/thumb/ditgar-small.webp b/apps/web/public/templates/thumb/ditgar-small.webp
new file mode 100644
index 000000000..b0be2d8ee
Binary files /dev/null and b/apps/web/public/templates/thumb/ditgar-small.webp differ
diff --git a/apps/web/public/templates/thumb/ditgar.webp b/apps/web/public/templates/thumb/ditgar.webp
index 2ae9a64b2..855af2e6a 100644
Binary files a/apps/web/public/templates/thumb/ditgar.webp and b/apps/web/public/templates/thumb/ditgar.webp differ
diff --git a/apps/web/public/templates/thumb/ditto-small.webp b/apps/web/public/templates/thumb/ditto-small.webp
new file mode 100644
index 000000000..0fde91146
Binary files /dev/null and b/apps/web/public/templates/thumb/ditto-small.webp differ
diff --git a/apps/web/public/templates/thumb/ditto.webp b/apps/web/public/templates/thumb/ditto.webp
index 3b8b18cd9..e6d53c405 100644
Binary files a/apps/web/public/templates/thumb/ditto.webp and b/apps/web/public/templates/thumb/ditto.webp differ
diff --git a/apps/web/public/templates/thumb/gengar-small.webp b/apps/web/public/templates/thumb/gengar-small.webp
new file mode 100644
index 000000000..c9312bc15
Binary files /dev/null and b/apps/web/public/templates/thumb/gengar-small.webp differ
diff --git a/apps/web/public/templates/thumb/gengar.webp b/apps/web/public/templates/thumb/gengar.webp
index 78ae4a9fc..22349d46d 100644
Binary files a/apps/web/public/templates/thumb/gengar.webp and b/apps/web/public/templates/thumb/gengar.webp differ
diff --git a/apps/web/public/templates/thumb/glalie-small.webp b/apps/web/public/templates/thumb/glalie-small.webp
new file mode 100644
index 000000000..b320e0188
Binary files /dev/null and b/apps/web/public/templates/thumb/glalie-small.webp differ
diff --git a/apps/web/public/templates/thumb/glalie.webp b/apps/web/public/templates/thumb/glalie.webp
index ee7de3795..7d1c3fdec 100644
Binary files a/apps/web/public/templates/thumb/glalie.webp and b/apps/web/public/templates/thumb/glalie.webp differ
diff --git a/apps/web/public/templates/thumb/kakuna-small.webp b/apps/web/public/templates/thumb/kakuna-small.webp
new file mode 100644
index 000000000..3c1acf1a6
Binary files /dev/null and b/apps/web/public/templates/thumb/kakuna-small.webp differ
diff --git a/apps/web/public/templates/thumb/kakuna.webp b/apps/web/public/templates/thumb/kakuna.webp
index fbe18b0d7..7ea10fea0 100644
Binary files a/apps/web/public/templates/thumb/kakuna.webp and b/apps/web/public/templates/thumb/kakuna.webp differ
diff --git a/apps/web/public/templates/thumb/lapras-small.webp b/apps/web/public/templates/thumb/lapras-small.webp
new file mode 100644
index 000000000..bdd4ee327
Binary files /dev/null and b/apps/web/public/templates/thumb/lapras-small.webp differ
diff --git a/apps/web/public/templates/thumb/lapras.webp b/apps/web/public/templates/thumb/lapras.webp
index d298a9557..17de48620 100644
Binary files a/apps/web/public/templates/thumb/lapras.webp and b/apps/web/public/templates/thumb/lapras.webp differ
diff --git a/apps/web/public/templates/thumb/leafish-small.webp b/apps/web/public/templates/thumb/leafish-small.webp
new file mode 100644
index 000000000..a19309077
Binary files /dev/null and b/apps/web/public/templates/thumb/leafish-small.webp differ
diff --git a/apps/web/public/templates/thumb/leafish.webp b/apps/web/public/templates/thumb/leafish.webp
index 0a1c43654..866fa0d29 100644
Binary files a/apps/web/public/templates/thumb/leafish.webp and b/apps/web/public/templates/thumb/leafish.webp differ
diff --git a/apps/web/public/templates/thumb/meowth-small.webp b/apps/web/public/templates/thumb/meowth-small.webp
new file mode 100644
index 000000000..2e19c7c4a
Binary files /dev/null and b/apps/web/public/templates/thumb/meowth-small.webp differ
diff --git a/apps/web/public/templates/thumb/meowth.webp b/apps/web/public/templates/thumb/meowth.webp
index 453defe82..7cdfe6bca 100644
Binary files a/apps/web/public/templates/thumb/meowth.webp and b/apps/web/public/templates/thumb/meowth.webp differ
diff --git a/apps/web/public/templates/thumb/onyx-small.webp b/apps/web/public/templates/thumb/onyx-small.webp
new file mode 100644
index 000000000..6d43d787b
Binary files /dev/null and b/apps/web/public/templates/thumb/onyx-small.webp differ
diff --git a/apps/web/public/templates/thumb/onyx.webp b/apps/web/public/templates/thumb/onyx.webp
index 54199a031..e5b25bf73 100644
Binary files a/apps/web/public/templates/thumb/onyx.webp and b/apps/web/public/templates/thumb/onyx.webp differ
diff --git a/apps/web/public/templates/thumb/persian-small.webp b/apps/web/public/templates/thumb/persian-small.webp
new file mode 100644
index 000000000..0fb505d13
Binary files /dev/null and b/apps/web/public/templates/thumb/persian-small.webp differ
diff --git a/apps/web/public/templates/thumb/persian.webp b/apps/web/public/templates/thumb/persian.webp
index 81ccabe7d..c7ae2e03f 100644
Binary files a/apps/web/public/templates/thumb/persian.webp and b/apps/web/public/templates/thumb/persian.webp differ
diff --git a/apps/web/public/templates/thumb/pikachu-small.webp b/apps/web/public/templates/thumb/pikachu-small.webp
new file mode 100644
index 000000000..9f5d107bc
Binary files /dev/null and b/apps/web/public/templates/thumb/pikachu-small.webp differ
diff --git a/apps/web/public/templates/thumb/pikachu.webp b/apps/web/public/templates/thumb/pikachu.webp
index 99e91c706..9ba44ccf1 100644
Binary files a/apps/web/public/templates/thumb/pikachu.webp and b/apps/web/public/templates/thumb/pikachu.webp differ
diff --git a/apps/web/public/templates/thumb/porygon-small.webp b/apps/web/public/templates/thumb/porygon-small.webp
new file mode 100644
index 000000000..d2405a095
Binary files /dev/null and b/apps/web/public/templates/thumb/porygon-small.webp differ
diff --git a/apps/web/public/templates/thumb/porygon.webp b/apps/web/public/templates/thumb/porygon.webp
index 9f7996e95..ab6e3929d 100644
Binary files a/apps/web/public/templates/thumb/porygon.webp and b/apps/web/public/templates/thumb/porygon.webp differ
diff --git a/apps/web/public/templates/thumb/rhyhorn-small.webp b/apps/web/public/templates/thumb/rhyhorn-small.webp
new file mode 100644
index 000000000..86c6793a7
Binary files /dev/null and b/apps/web/public/templates/thumb/rhyhorn-small.webp differ
diff --git a/apps/web/public/templates/thumb/rhyhorn.webp b/apps/web/public/templates/thumb/rhyhorn.webp
index e31e7f6a5..72bd7b04b 100644
Binary files a/apps/web/public/templates/thumb/rhyhorn.webp and b/apps/web/public/templates/thumb/rhyhorn.webp differ
diff --git a/apps/web/public/templates/thumb/scizor-small.webp b/apps/web/public/templates/thumb/scizor-small.webp
new file mode 100644
index 000000000..f01e6126b
Binary files /dev/null and b/apps/web/public/templates/thumb/scizor-small.webp differ
diff --git a/apps/web/public/templates/thumb/scizor.webp b/apps/web/public/templates/thumb/scizor.webp
index 5014e9b16..6ea755b1a 100644
Binary files a/apps/web/public/templates/thumb/scizor.webp and b/apps/web/public/templates/thumb/scizor.webp differ
diff --git a/apps/web/public/templates/thumb/smeargle-small.webp b/apps/web/public/templates/thumb/smeargle-small.webp
new file mode 100644
index 000000000..a7a4143a2
Binary files /dev/null and b/apps/web/public/templates/thumb/smeargle-small.webp differ
diff --git a/apps/web/public/templates/thumb/smeargle.webp b/apps/web/public/templates/thumb/smeargle.webp
index 112933ab0..5b04fdbab 100644
Binary files a/apps/web/public/templates/thumb/smeargle.webp and b/apps/web/public/templates/thumb/smeargle.webp differ
diff --git a/apps/web/src/features/homepage/footer.tsx b/apps/web/src/features/homepage/footer.tsx
index eee33f5d9..ba44d8cd6 100644
--- a/apps/web/src/features/homepage/footer.tsx
+++ b/apps/web/src/features/homepage/footer.tsx
@@ -188,6 +188,9 @@ const spotWashClass =
const spotLabelClass =
"pointer-events-none absolute bottom-[calc(100%+8px)] left-1/2 flex -translate-x-1/2 translate-y-1 items-center gap-1.5 rounded-sm bg-ink px-2 py-1 font-ui text-xs font-medium whitespace-nowrap text-bg opacity-0 shadow-e2 transition-[opacity,translate] duration-standard ease-enter group-hover/spot:translate-y-0 group-hover/spot:opacity-100 group-focus-visible/spot:translate-y-0 group-focus-visible/spot:opacity-100";
+// Phones crop the 3:1 drawing to a 16:10 box (object-fit: cover), so it renders at 1.875× the viewport width there.
+const deskSizes = "(max-width: 699px) 188vw, (min-width: 1800px) 1800px, 100vw";
+
/**
* The desk at the end of the page: a resume, letters, a calendar, glasses and a lamp in front of an open window. Day
* in the light theme, night in the dark one. Each drawing is blended into the page (white vanishes into the light
@@ -202,6 +205,8 @@ function FooterDesk() {
<div aria-hidden="true" className="footer-dawn" />
<img
src="/illustrations/footer-desk-light.webp"
+ srcSet="/illustrations/footer-desk-light-1600.webp 1600w, /illustrations/footer-desk-light-2400.webp 2400w, /illustrations/footer-desk-light.webp 3200w"
+ sizes={deskSizes}
alt=""
width={2172}
height={724}
@@ -212,6 +217,8 @@ function FooterDesk() {
/>
<img
src="/illustrations/footer-desk-dark.webp"
+ srcSet="/illustrations/footer-desk-dark-1600.webp 1600w, /illustrations/footer-desk-dark-2400.webp 2400w, /illustrations/footer-desk-dark.webp 3200w"
+ sizes={deskSizes}
alt=""
width={2172}
height={724}
diff --git a/apps/web/src/features/homepage/ui.tsx b/apps/web/src/features/homepage/ui.tsx
index 4efca91e1..9c89cfb44 100644
--- a/apps/web/src/features/homepage/ui.tsx
+++ b/apps/web/src/features/homepage/ui.tsx
@@ -82,7 +82,9 @@ export function Doodle({ name, wipe, className, style, eager = false }: DoodlePr
<img
src={`/doodles/${name}.webp`}
srcSet={`/doodles/${name}-small.webp ${Math.round(width / 2)}w, /doodles/${name}.webp ${width}w`}
- sizes="(min-width: 900px) 16vw, 30vw"
+ // ponytail: one size for every doodle (they render at 6–16vw); curve and globe upscale the small file up to 1.15×
+ // on 2× screens. Add a per-use `sizes` prop if that ever shows.
+ sizes="(min-width: 900px) 10vw, 30vw"
alt=""
aria-hidden="true"
width={width}
diff --git a/apps/web/src/features/templates/gallery.tsx b/apps/web/src/features/templates/gallery.tsx
index 6a9f8f4a3..da9500ac6 100644
--- a/apps/web/src/features/templates/gallery.tsx
+++ b/apps/web/src/features/templates/gallery.tsx
@@ -49,6 +49,8 @@ export function TemplateGallery() {
>
<img
src={`/templates/thumb/${id}.webp`}
+ srcSet={`/templates/thumb/${id}-small.webp 300w, /templates/thumb/${id}.webp 596w`}
+ sizes="298px"
alt={t`${name} resume template preview`}
width={298}
height={420}