Area plates: shadowless and centred, and a book stack for Education
Merged
LU
3d ago+269+269+012345678901234567890123456789-32-32-01234567890123456789
Each area plate's ground shadow falls to the right. Centring the whole image therefore pushed the bricks left of centre. On phones the shadow also shrank the small icons. This PR also replaces the education plate.
Shadowless plates
scripts/rebrand/area_plate_bricks.pywrites shadowless copies asassets/images/doors/area-<area>-bricks.webp. The shadow is pure black at up to 18% opacity (a Three.jsShadowMaterial), so the script subtracts it and restores the opacity and colour of brick edges that sat over it. It then trims each copy to its bricks.- The homepage and welcome-page doors (via the new
layouts/partials/doors/area_plate.html) show these copies. So do the single plates on the resources, topic, earlier-cluster, Educators' Corner and Replication Hub pages. They all centre with plainobject-fit: contain, with no offsets.
Education: a book stack under a mortarboard
- This replaces the pop-up gatefold. It is candidate A from Claude in the area-plate exploration (see #1310).
- Its renderer is committed as
assets/js/castle/education-render.js. It takes its brick system, lights and camera scale from the castle. render_area_illustrations.pynow renders each plate with its own renderer: the harness takes?renderer=, and the script accepts area names. Research and community re-render byte-identical.- Alt text follows the new picture on every page that shows it.
The first commit centred the shadowed bricks using measured bounds. The second commit replaces that with the shadowless copies, which looked better at every width.
Checked in screenshots at 1440 and 390 px on the homepage, welcome page, resources, an earlier cluster, Educators' Corner and a Replication Hub page. check_seo_html.py passes on a full build.
Homepage, desktop

Homepage, phone (390 px)

Welcome page, desktop

Welcome page, phone (390 px)

Teaching resources, desktop

š¤ Generated with Claude Code