Entries: a resource's facts beside its button; the glossary definition as the page's main passage

Merged
LU
8d ago
+177-60

Resource pages (~700 pages). A teacher can now judge a resource before opening it. One panel under the author holds the resource's cluster (its door and pale colour), types, education levels, primary users, the "Open this resource" button, and a quiet last row with subject area, language and date. Types appear once, and so does the language: a resource not in English alone says "In English and French" beside the button and leaves Language out of the row. On a desktop the side card is the cluster's Previous and Next. On a phone they follow the abstract stacked full width and left-aligned, so the Next title no longer squeezes into a narrow right-aligned column. A resource without a cluster gets a neutral panel.

Glossary terms (hundreds of pages, five languages). The definition is the page's main passage: the largest text on the page, on the page ground, with an Education-colour edge on the side where lines start (the right in Arabic). On phones the language chips are one sideways row that fades at its end, so the definition starts higher. A single related term fills the column instead of half of it, and a lone Previous or Next card fills the row instead of sitting stranded at the right. In Arabic, Latin citations in a definition stay on one line, and each credited name keeps its comma. Related-term previews leave out in-text citations, which a two-line preview cut mid-way. German, Turkish and Chinese terms label "Also available in", the breadcrumb's Home and Previous/Next in their own language, as Arabic already did.

Resource page

Panel by the button, types shown once (1440 px):
Resource at 1440 px, before and after

First phone screen (390 px). The button ends at 630 px on this page and 677 px on the longest sample (OpenAIRE, 10 creators); the screen is 844 px:
Resource at 390 px, top, before and after

Previous and Next on a phone:
Resource at 390 px, pager, before and after

Glossary term

Definition, related term and Next at 1440 px:
Glossary term at 1440 px, before and after

First phone screen (390 px):
Glossary term at 390 px, top, before and after

A lone Next card on a phone:
Glossary term at 390 px, Next card, before and after

Arabic at 390 px (edge on the right, one row of languages):
Arabic glossary term at 390 px, before and after

The resource sample in sample_pages.json (Milgram) is not in the committed content, so the AFTER crops use comparable resources: "Interpreting Correlations", "OpenAIRE Train-the-Trainer", "Data management" (no cluster) and the CONP portal (two languages).

Decisions to review

  • Glossary definition on the page ground, not in a pale box. The two earlier reviewers disagreed on this. A judge compared both treatments side by side and preferred the edge, because the pale box matched the Previous/Next cards and read as one more box.

  • Types moved from above the title into the panel, beside levels and users, instead of keeping the line above the title and dropping the card's row.

  • The resource's side card is now Previous/Next in the cluster, not "About this resource". Its facts moved into the panel. It is white with a border, so it differs from the cluster-coloured panel.

  • Related-term previews leave out in-text citations such as "(Dickersin & Min, 1993)". This changes what the preview shows, not the definition. It fixes a clipped Latin run in Arabic previews.

  • New interface labels: German "Startseite", "Auch verfügbar auf", "Zurück"/"Weiter" and the language names; Turkish "Ana sayfa", "Diğer diller", "Önceki"/"Sonraki"; Chinese "首页", "其他语言", "上一个"/"下一个". Native speakers may want to check them.

  • Language chips keep each language's name in the page's language, as before. Using each language's own name (العربية, 中文 …) would load the Arabic webfont on every non-Arabic term page.

  • Shared files touched: layouts/partials/doors/assets.html (resource pages now load the directory's stylesheet bundle, which holds their panel rules), layouts/partials/section_pager.html (glossary pager labels for Chinese, German and Turkish, guarded by glossary and language) and layouts/partials/doors/name_list.html (used only by glossary terms). Resource-detail rules that this change no longer uses (.resource-kind, .resource-type hiding) remain in article.css, which another PR is editing; they can go in a follow-up.

  • Departures from DESIGN.md: §6 places a cluster's small door "on a resource's 'About this resource' card"; that card is gone and the door now heads the panel. §8 has Previous on the left and Next on the right; the resource's desktop side card stacks them, Previous above Next. If you accept these, the guide's wording should change to match.

Checks

  • python3 scripts/check_seo_html.py on a full build: all 25 checks pass.
  • python3 scripts/rebrand/check_design.py on a full build of the first commit (the follow-up commit only drops a repeated Language row and narrows a regex; CI's run covers it): nothing on resource or glossary pages. It fails on neurodiversity-lessonbank/implicit_bias/ (an image in its content 121 px too wide at 390 px in the local build, not on the preview; red text at 3.92:1) and on timing tests of the home page's quotes, which differed between runs. This PR touches neither.
  • Screenshots at 390 and 1440 px of three resources and four glossary terms (English first-in-A–Z and mid-alphabet, Arabic, Chinese), judged by Claude Fable 5.2 over four rounds; the fourth judged fresh tiles of the final commit. Final verdict for both page types: distinctive and engaging (narrow pass).
  • No scripts changed, so no unit tests to run.

🤖 Generated with Claude Code


Summary by cubic

Restructures resource and glossary term pages around the decisions a visitor makes there. Resource pages gain a panel with the facts a teacher needs before opening a resource; glossary definitions become the page's main passage instead of another box.

Resource pages

  • One panel holds the cluster (its door and pale colour), types, education levels, primary users, the "Open this resource" button, and a quiet last row with subject area, language and date; types now appear once instead of above the title.
  • With up to three languages, a language other than English alone is named once beside the button and left out of the muted last row; with more, the row lists them all.
  • On a desktop the side card becomes the cluster's Previous and Next; on a phone they stack full width and start-aligned, so the Next title no longer squeezes into a narrow column.
  • Resources without a cluster get a neutral panel.

Glossary terms

  • The definition is the page's main passage: the largest text, on the page ground, with an Education-colour edge at the side where lines start.
  • On phones the language chips form one sideways row that fades at its end, so the definition starts higher.
  • A single related term fills its column, and a lone Previous or Next card fills the row.
  • Related-term previews drop in-text citations, which a two-line preview used to cut mid-way; the definition itself is unchanged.
  • Arabic definitions keep Latin citations on one line, including one that opens a paragraph, and each credited name keeps its comma; bracketed URLs in links stay whole.
  • German, Turkish and Chinese now label "Also available in", the breadcrumb Home, and Previous/Next in their own language; native speakers may want to check the new labels.