Pick with your eyes, not a thumbnail

Day 4, 30 minutes · beginner

Goal of this lessonHave Claude Code build a throwaway picker page that shows every candidate inside your real layout — so you choose with confidence, not guesswork.

Why this matters

Stock thumbnails lie. A clip that looks moody in Pexels'' preview can be jarring behind your actual headline. An image that pops on Unsplash can clash with your brand on the real page.

The fix is a disposable prototype page that loads every candidate into your actual layout. Ten minutes to build (with Claude Code), two minutes to pick.

The pattern

Create a page at /prototype/picker.html that:

  1. Fetches the manifest.json you built in Step 3
  2. Shows each candidate inside the real hero layout (same typography, same CTAs, same colours)
  3. Auto-advances every 6-8 seconds, with prev / next buttons and keyboard shortcuts
  4. Shows metadata inline — author, license, dimensions, source page
  5. Lets you mark favourites with localStorage so picks persist on refresh

The word prototype is load-bearing: this page ships to production but sits outside your site''s navigation. You share the URL with colleagues to collect opinions, then delete the whole folder when you''re done.

The Claude Code prompt

In my Astro / Next / Vite project, create a standalone HTML file at /public/prototype/picker.html that loads /prototype/manifest.json, renders each entry inside a full-bleed hero layout matching my homepage (same fonts, same CTAs), auto-advances every 8 seconds, and has filter chips by category (derived from each entry''s query field). Include a favourite toggle per entry that persists in localStorage. Make it self-contained — no framework imports.

Claude will write ~300 lines of HTML+CSS+JS. You open the file in a browser, hit localhost:XXXX/prototype/picker.html, and cycle through.

Gotcha: the browser video decoder limit

If your media is video, don''t keep every <video> element alive in the DOM as you switch. Chrome caps concurrent video decoders around 8; Safari is lower. If you mount 50 videos, clips #9 onward stall at their poster image. The fix: an LRU cache that keeps only the current ±2 in the DOM and recycles the rest.

Ask Claude Code to add this directly: "cap live video elements at 4, LRU-evict the rest on switch."

The payoff

In the case study that inspired this course, we evaluated 50 candidate clips in 8 minutes this way. Without a picker: 50 Pexels tabs and impossible mental arithmetic.

Today's actions

Ticks are not saved without an account

Do it in your tool

Claude

  1. Move the manifest.json from lesson 3 into public/prototype/ in your project. Make the folder if it is not there.
  2. Install or open the Claude desktop app, sign in and click the Code tab at the top of the sidebar.
  3. In the row under the prompt box, click the environment selector and select the top entry in the Local group. Then click the project folder control, select Open folder… and choose your project.
  4. In the mode selector in the same row, pick Manual, so Claude asks before it edits a file or runs a command.
  5. Paste this prompt, replace [YOUR HERO FILE] with the file that holds your real hero and press Enter. Read the diff (the list of changed lines) and approve the new file.
    In my project, create a standalone HTML file at /public/prototype/picker.html that loads /prototype/manifest.json and shows each entry inside a full-bleed hero layout that matches my homepage (same fonts, colours and buttons). Auto-advance every 8 seconds, add previous and next buttons and keyboard shortcuts, show author, source page and dimensions, show each entry's CDN URL and poster URL with a copy button, add filter chips by category taken from each entry's query field, and add a favourite toggle per entry that persists in localStorage. Keep at most 4 video elements alive and recycle the rest. No framework imports.
    
    Use [YOUR HERO FILE] as the reference for the look.
    
    Then start the preview and open /prototype/picker.html in the browser pane so I can see it.
  6. No Browser pane after Claude starts the dev server (the local copy of your site that runs while you build)? Press Ctrl+Shift+B (Cmd+Shift+B on macOS) or click Open on the server's card in the chat. Then ask Claude to navigate to /prototype/picker.html.
  7. Cycle through the candidates and mark 3 to 5 favourites with the picker's favourite button. Then copy the CDN address of your one winner, and its poster address if it is a video.
  8. If video clips stall at their poster image, send this follow-up.
    Keep at most four video elements alive at once and remove the oldest when I switch.

Note: In Claude this task runs in Claude Code, the Code tab of the desktop app. Start or stop the dev server from the Dev servers menu in the Browser pane's header. If your app uses its own start command, edit .claude/launch.json. Tip: attach a screenshot of your real hero with the + button next to the prompt box, so Claude can match the layout. No paid Claude plan? The ChatGPT and Gemini tabs of this lesson need none.

Paid planNeeds a paid Claude plan: Pro, Max, Ultra, Team or Enterprise. The Free plan does not include Claude Code.

Checked on 30 November 2026 · Source: Claude Code docs: Use Claude Code Desktop (opens in a new tab)

Claude Code docs ↗ (opens in a new tab)

Create a free account to save your progress. Sign in or sign up