Repository navigation
Area plates: shadowless and centred, and a book stack for Education - #1313
Merged
Merged
Conversation
Contributor
|
👍 All content rules passed (WebP images/references and canonical |
Contributor
✅ Spell Check PassedNo spelling issues found when checking 15 changed file(s)! 🎉 |
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 11 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 14 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Each plate's ground shadow falls to the right, so centring the whole image put the bricks left of centre. scripts/rebrand/area_plate_bounds.py measures where the opaque bricks sit (assets/images/doors/area-plates.json), and the new doors/area_plate partial passes those bounds to CSS. On wider screens the bricks are centred and keep their shadow; the small phone icons, and the welcome page's phone plates, crop to the bricks so the long shadow no longer shrinks them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shadow fell to the right, so the bricks sat left of centre, and in the phone icons it shrank them. scripts/rebrand/area_plate_bricks.py subtracts the shadow (pure black at up to 18% opacity) and trims each plate to its bricks as area-<area>-bricks.webp; the homepage and welcome doors show those, centred without offsets. This replaces the measured-bounds approach in the previous commit. Other pages keep the shadowed plates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pop-up gatefold is replaced with the book stack from the area-plate exploration. Its renderer is committed as assets/js/castle/education-render.js, and render_area_illustrations.py now renders each plate with its own renderer (the harness takes ?renderer=); research and community re-render unchanged. Alt text follows the new picture everywhere it appears. The resources, topic, earlier-cluster, Educators' Corner and Replication Hub pages now show the shadowless copies too, so their plates also sit centred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
brickGeometry subtracted the joint gap from every dimension, so the 0.006 page-line strips got negative height and depth. The gap now applies only to dimensions larger than twice the gap, and the corner radius never exceeds a third of the smallest side. The re-rendered plate shows the same stack with finer page lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LukasWallrich
force-pushed
the
centre-area-plates
branch
from
November 25, 2026 17:46
a548dbf to
92cedc3
Compare
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.
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.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
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.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.pypasses 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