Day 4, 30 minutes · beginner
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:
- Fetches the
manifest.jsonyou built in Step 3 - Shows each candidate inside the real hero layout (same typography, same CTAs, same colours)
- Auto-advances every 6-8 seconds, with prev / next buttons and keyboard shortcuts
- Shows metadata inline — author, license, dimensions, source page
- Lets you mark favourites with
localStorageso 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.htmlthat 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''squeryfield). 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 accountDo it in your tool
Claude
- Move the
manifest.jsonfrom lesson 3 intopublic/prototype/in your project. Make the folder if it is not there. - Install or open the Claude desktop app, sign in and click the Code tab at the top of the sidebar.
- 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.
- In the mode selector in the same row, pick Manual, so Claude asks before it edits a file or runs a command.
- 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. - 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. - 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.
- 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.
ChatGPT
- Install or open the ChatGPT desktop app (macOS or Windows), sign in with your ChatGPT account and select Codex from the ChatGPT dropdown.
- Open your project folder: on Windows click Add new project or press Ctrl+O, on macOS press Cmd+O. Move the
manifest.jsonfrom lesson 3 intopublic/prototype/(make the folder if it is not there). - Paste this prompt in the composer, replace [YOUR HERO FILE] with the file that holds your real hero, then send it.
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. - Start your dev server (the local copy of your site that runs while you build) in the app's terminal: select New tab, then Terminal.
- Open the built-in browser: select New tab (Ctrl+T on Windows) and enter your dev server's local address plus
/prototype/picker.html. - 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.
- Something looks wrong? Select Annotate in the browser toolbar, click an element or drag over an area, then write and save your comment. Ask ChatGPT in the chat to address your comments.
- 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: No paid plan needed: Codex is included on every plan, and the built-in browser is on Free, Go, Plus and Pro. On Free and Go the Codex allowance is limited, and Codex in the desktop app is subject to rollout. A workspace admin can switch off Codex and browser use. No Codex yet? In Chat, paste a few manifest entries into the prompt, ask for one self-contained HTML file and select Preview on the code block. Do not assume pictures from other sites load in that preview.
Gemini
- Open your
manifest.jsonfrom lesson 3 and the file that holds your homepage hero. Canvas cannot see your project folder, so you paste their contents in step 3. - On a computer, go to
gemini.google.com. Below the text box at the bottom, click Add Files, then Canvas. - Paste this prompt in the text box. Paste a few manifest entries and your hero markup and styles under it, then click Submit.
Create a standalone HTML file for /public/prototype/picker.html. On my site it loads /prototype/manifest.json. A few entries are pasted below, so you know the shape. Show each entry inside a full-bleed hero layout that matches my homepage hero (same fonts, colours and buttons). Its code is pasted below. 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. Manifest entries: Hero code: - Click Code at the top right of the Canvas panel to read the code, and Show console to find errors.
- Click Select & ask at the bottom right of the Canvas panel to change one part, and describe the change.
- Copy the code by hand from the Code view into
public/prototype/picker.htmlin your project. Move themanifest.jsonfrom lesson 3 into the same folder. - Start your dev server (the local copy of your site that runs while you build) and open
/prototype/picker.htmlin your own browser. Mark 3 to 5 favourites, then copy the CDN address of your one winner, and its poster address if it is a video. - If video clips stall at their poster image, send this follow-up in Canvas. Then copy the new code into your file again.
Keep at most four video elements alive at once and remove the oldest when I switch.
Note: No paid plan needed: Canvas works without a Google AI plan. Canvas writes the page but cannot change files in your project, so you place the file yourself. Do not assume the Canvas preview shows pictures or video from other sites: judge the page on your dev server. Antigravity CLI is Google's tool for work inside a project folder. This course has no checked guide for it.
Microsoft Copilot
- Open the Microsoft Copilot desktop app with your work account and select Code, at the top of the app or in the left navigation. No Code tab? Copilot Code is a paid preview, and at launch personal accounts in the Netherlands cannot get it: see the notes.
- Move the
manifest.jsonfrom lesson 3 intopublic/prototype/in your project. Make the folder if it is not there. - Open your project folder as a local project. Paste this prompt in the task input, replace [YOUR HERO FILE] with the file that holds your real hero and send it. Answer the questions Copilot Code asks before it builds.
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. - Watch the canvas next to the conversation. Switch between the preview and the code view to see the page and the files it made.
- Select a part in the preview and describe the change if something looks wrong. To undo a direction, ask Copilot Code to go back to an earlier version.
- No pictures or video in the preview? By default it allows only approved hosts. If your admin allows it or your device is unmanaged, change this under Settings > Code > PC settings. Otherwise open the page in your own browser on your dev server (the local copy of your site).
- 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.
- 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: Copilot Code is a preview (Frontier), in English at this release. Personal accounts: United States and Canada only at launch, so not the Netherlands. Work accounts in the Netherlands: not confirmed. No local folder offered? Your admin may allow cloud sessions only. Microsoft's pages do not describe saving favourites or video handling, so check those in the page yourself. No Code tab? Then this course has no checked Microsoft Copilot steps for this task: use the ChatGPT or Gemini tab.
Paid planBilled by usage. Work: a Copilot licence (Microsoft pages differ on which), Frontier access, admin turns on the Code tab, a spending policy. Personal: Microsoft 365 Premium or Pro, US and Canada only.
Claude Code
- Move the
manifest.jsonfrom lesson 3 intopublic/prototype/in your project. Make the folder if it is not there. - Open a terminal in your project folder and start Claude Code, as in the Claude Code tab of lesson 2.
- Paste this prompt in Claude Code, with [YOUR HERO FILE] replaced by the file that holds your real hero. Read the new file it shows you and approve it if it asks.
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. - Start your dev server (the local copy of your site that runs while you build) and open its address plus
/prototype/picker.htmlin your own browser. The terminal version has no Browser pane. - 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.
- 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: This is the terminal route. If you prefer a window, the Claude tab of this lesson shows the same task in the Code tab of the Claude desktop app, where Claude can open the page for you. The lesson's Claude Code docs link now redirects to the Claude Code docs at code.claude.com. From version 2.1.283 Claude Code starts in auto mode in the terminal. The status bar shows the current mode: check it before you start. Read every change yourself.
Paid planNeeds a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or a Claude Console account. The Free plan does not include Claude Code.
Create a free account to save your progress
Free, and no payment details. Your ticks and finished lessons are kept, on every device.
Create a free account I already have an accountCreate a free account to save your progress. Sign in or sign up