Roll out hero media to lessons (pilot + cross-module)#123
Merged
Conversation
Place a captioned hero media block immediately after the TOC on each
lesson, surfacing the lesson's climax demo as an opening hook. Follows
the established pattern: descriptive iframe title / video aria-label,
rotating forward-framing caption openers, and `{: .fs-1 }` captions.
Pilot (12): cpx/{analog-input,button-piano,capacitive-touch,cpx-keyboard,
cpx-mouse,digital-input,makecode,sensor-instrument};
communication/{p5js-serial-io,p5js-serial,serial-intro,web-serial}.
Rollout (11): electronics/{electricity-basics,schematics,ohms-law};
arduino/{arduino-ide,rgb-led-fade,tone}; sensors/{hall-effect,
photoresistors}; esp32/{led-blink,tone,iot}.
esp32/led-blink relocates its workbench video up (removes the lower
copy); others duplicate where the source lives far down as a payoff.
Pages with only generic/placeholder media (arduino/inside-arduino,
advancedio/servo, esp32/capacitive-touch) were intentionally skipped
and are tracked for media completion in #122.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a captioned hero media block immediately after the TOC on 23 lesson pages, surfacing each lesson's climax demo as an opening hook. Follows the established pattern: descriptive iframe
title=/ videoaria-label=, rotating forward-framing caption openers, and{: .fs-1 }captions.Pilot (12)
cpx/{analog-input,button-piano,capacitive-touch,cpx-keyboard,cpx-mouse,digital-input,makecode,sensor-instrument}— YouTube/video demos lifted to top with descriptive iframe titlescommunication/{p5js-serial-io,p5js-serial,serial-intro,web-serial}— lesson-climax<video>demos with "preview of what we'll build" captionsRollout (11)
electronics/{electricity-basics,schematics,ohms-law}(conceptual figures, duplicated at top)arduino/{arduino-ide,rgb-led-fade,tone}(tone usescontrolsnot autoplay — has audio)sensors/{hall-effect,photoresistors}(YouTube — no self-hosted assets)esp32/{led-blink,tone,iot}(led-blink relocates its workbench video up; others duplicate)Placement rule
Hero-first:
TOC ---→ hero → optional "what you'll learn" note → prose. Duplicate vs. relocate by distance — relocate (remove lower copy) when the source sits right under the first heading; duplicate when the original lives far down as a genuine preview→payoff.Intentionally skipped (tracked in #122)
arduino/inside-arduino,advancedio/servo,esp32/capacitive-touchhave only generic/placeholder media and need new media before they get a hero.Notes for review
generate_og_posters.py --runon pages that newly gained an MP4 hero but lackimage:(arduino/tone, esp32/led-blink).Verification
bundle exec jekyll build— clean (Jekyll 4, ~4.8s). 23 files, +130/-55.🤖 Generated with Claude Code