diff --git a/assets/css/sections.css b/assets/css/sections.css index 0283f2deb77..23908d054a3 100644 --- a/assets/css/sections.css +++ b/assets/css/sections.css @@ -512,21 +512,58 @@ html:has(.contributor-az:not([hidden])){scroll-padding-top:calc(var(--contributo .doc-section>#just-os-fullpage{order:-1;margin-top:4px!important} } @media(max-width:760px){#just-os-fullpage{height:min(52vh,460px)!important;min-height:340px}} -/* Project cards: their actions as the site's outline pills, one size. */ -.get-involved-card .btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 16px!important;border:1.5px solid var(--link)!important;border-radius:999px!important;background:#fff!important;color:var(--link)!important;font:600 15px/1.2 var(--text)!important} +/* Get involved: projects grouped by FORRT's real areas (using Doors area tints and illustrations, DESIGN.md §6), + clearly distinct from the white, quietly framed Getting started panel above them. */ +.gi-jumps{display:flex;flex-wrap:wrap;gap:0 20px;margin:6px 0 12px;font-size:16px} +.gi-jumps a{display:inline-flex;align-items:center;min-height:44px;color:var(--link);font-weight:600;text-decoration:none} +.gi-jumps a:is(:hover,:focus-visible){text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)} +.gi-areas{display:grid;gap:32px;margin:22px 0 0} +.gi-area-block[data-area=edu]{--gi-tone:var(--edu);--gi-bg:var(--edu-bg)} +.gi-area-block[data-area=res]{--gi-tone:var(--res);--gi-bg:var(--res-bg)} +.gi-area-block[data-area=com]{--gi-tone:var(--com);--gi-bg:var(--com-bg)} +.gi-area-block[data-area=other]{--gi-tone:var(--ink);--gi-bg:var(--surface)} +/* Plate, coloured heading and tinted cards mark a group, so the heading has no rule under it. */ +.gi-area-head{display:grid;grid-template-columns:66px minmax(0,1fr);gap:14px;align-items:center;margin:0 0 16px} +.gi-area-head:not(:has(.gi-area-plate)){grid-template-columns:minmax(0,1fr)} +.gi-area-plate{display:flex;align-items:flex-end;justify-content:center;width:66px;height:62px;padding:11px 10px 5px;box-sizing:border-box;background:var(--gi-bg);border-radius:36px 36px 8px 8px} +.gi-area-plate img{display:block;width:100%;height:100%;object-fit:contain;object-position:50% 100%;margin:0} +.article-layout .article-style .gi-area-head h3{margin:0;font-size:24px;line-height:1.2;color:var(--gi-tone)} +@media(max-width:760px){ + .gi-area-head{grid-template-columns:56px minmax(0,1fr);gap:12px} + .gi-area-plate{width:56px;height:52px;padding:9px 8px 4px;border-radius:30px 30px 6px 6px} + .article-layout .article-style .gi-area-head h3{font-size:21px} +} +.gi-group--teams{margin-top:38px;padding-top:26px;border-top:1.5px solid var(--line)} +.gi-group-head{margin:0 0 16px} +.article-layout .article-style .gi-group-head h3{margin:0 0 4px;font-size:24px;line-height:1.2} +.article-layout .article-style .gi-group-head p{margin:0;max-width:32em;font-size:17px;color:var(--soft)} +.gi-group-head p a{color:var(--link);font-weight:600;text-decoration:underline;text-underline-offset:3px} +.get-involved-card .btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 16px!important;border:1.5px solid var(--link)!important;border-radius:999px!important;background:#fff!important;color:var(--link)!important;font:600 15px/1.2 var(--text)!important} .get-involved-card .btn:hover{background:var(--link)!important;color:#fff!important} -/* Project cards share one footer line of actions. */ -.get-involved-card{display:flex;flex-direction:column} -/* One row height whether or not a 44 px link sits beside the button, so the buttons share a line across a row. */ -.get-involved-card .get-involved-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-height:56px;margin-top:auto;padding-top:12px} -/* The cards wear the colour of the "Find a project" brick that leads to them, as a straight band along their top. */ -.get-involved-card{position:relative;overflow:hidden;background:#e6e7dd} /* --brick2 (#56621a) at 15% on white */ -.get-involved-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--brick2)} -/* Get Involved is a wide page: its projects fill the width, as many to a row as fit. */ -.article-layout-wide .article-style .get-involved-projects{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));max-width:none} +.get-involved-card{position:relative;display:flex;flex-direction:column;padding:20px 22px;background:var(--gi-bg,var(--surface));border:0;border-radius:var(--r-large)} +@media(max-width:760px){.get-involved-card{padding:16px}} +.get-involved-card--team{background:var(--surface)} +.article-layout .article-style .get-involved-card h4{margin:0 0 8px;font:var(--display-weight) 22px/1.2 var(--display);color:var(--ink)} +/* Linked titles take the area's colour (some titles have no link) and underline on hover and focus (DESIGN.md §5). + Teams sit outside the areas, so theirs is the link colour. */ +.article-layout .article-style .get-involved-card h4 a{color:var(--gi-tone,var(--link));text-decoration:none} +.article-layout .article-style .get-involved-card h4 a:is(:hover,:focus-visible){text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)} +/* Descriptions stay under 80 characters a line in the wide two-up cards (DESIGN.md §7). */ +.get-involved-card .clamp-desc{max-width:29em} +.get-involved-card .get-involved-actions{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;min-height:56px;margin-top:auto;padding-top:14px} +/* Balanced rows on desktop so no single card sits orphaned at the end of a group. */ +.article-layout-wide .article-style .get-involved-projects{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px;max-width:none} +@media(min-width:1001px){ + .article-layout-wide .article-style .get-involved-projects--count-4{grid-template-columns:repeat(2,minmax(0,1fr))} + .article-layout-wide .article-style .get-involved-projects--count-3{grid-template-columns:repeat(3,minmax(0,1fr))} + .article-layout-wide .article-style .get-involved-projects--count-5{grid-template-columns:repeat(6,minmax(0,1fr))} + .article-layout-wide .article-style .get-involved-projects--count-5>.get-involved-card{grid-column:span 2} + .article-layout-wide .article-style .get-involved-projects--count-5>.get-involved-card:nth-child(4), + .article-layout-wide .article-style .get-involved-projects--count-5>.get-involved-card:nth-child(5){grid-column:span 3} +} .article-layout-wide .article-style .action-cards{max-width:none} .get-involved-card[hidden]{display:none} -.get-involved-card .get-involved-link{display:inline-flex;align-items:center;min-height:40px;padding:0;color:var(--link);font-weight:600;text-decoration:underline;text-underline-offset:3px} +.get-involved-card .get-involved-link{display:inline-flex;align-items:center;min-height:44px;padding:0;color:var(--link);font-weight:600;text-decoration:underline;text-underline-offset:3px} /* About directories: only a description much longer than its neighbours is cut, to four lines, with "more" (site.js); short ones show in full. */ @@ -872,16 +909,34 @@ html:has(.contributor-az:not([hidden])){scroll-padding-top:calc(var(--contributo .article-layout-wide .article-style .doc-section>aside.callout{grid-column:2;grid-row:1/span 8;max-width:none;margin:6px 0 0} /* "Ongoing projects": the introduction takes the first card column and the guide the other two, so both line up with the projects, which take the full width below them. */ - .article-layout-wide .article-style .doc-section:has(>.get-involved-projects){grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-rows:auto 1fr;column-gap:14px} - .article-layout-wide .article-style .doc-section:has(>.get-involved-projects)>aside.callout{grid-row:1/span 2;max-width:none} - .article-layout-wide .article-style .doc-section:has(>.get-involved-projects)>aside.callout>*{max-width:32em} - .article-layout-wide .article-style .doc-section:has(>aside.callout)>.get-involved-projects{grid-column:1/-1} + .article-layout-wide .article-style .doc-section:has(.get-involved-projects){grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-rows:auto auto 1fr;column-gap:18px} + .article-layout-wide .article-style .doc-section:has(.get-involved-projects)>aside.callout{grid-row:1/span 3;max-width:none} + .article-layout-wide .article-style .doc-section:has(.get-involved-projects)>aside.callout>*{max-width:32em} + .article-layout-wide .article-style .doc-section:has(>aside.callout)>.gi-areas, + .article-layout-wide .article-style .doc-section:has(>aside.callout)>.gi-group{grid-column:1/-1} + /* Pair About FORRT and Stay updated side-by-side so neither stands alone in a narrow column (DESIGN.md §7). */ + .article-layout-wide .article-style:has(#get-involved):has(#about):has(#newsletter){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:40px;align-items:start} + .article-layout-wide .article-style:has(#get-involved):has(#about):has(#newsletter)>.doc-section{grid-column:1/-1} + /* A grid does not collapse the bricks' margins into the section's. */ + .article-layout-wide .article-style:has(#get-involved):has(#about):has(#newsletter)>#intro>.action-cards{margin-block:0} + .article-layout-wide .article-style:has(#get-involved):has(#about):has(#newsletter)>#about{grid-column:1;margin-bottom:0} + .article-layout-wide .article-style:has(#get-involved):has(#about):has(#newsletter)>#newsletter{grid-column:2;margin-bottom:0;padding:24px 28px;background:var(--surface);border-radius:var(--r-large)} } /* Where the guide spans two card columns, its introduction and its list sit side by side, each a short line. */ @media(min-width:1240px){ - .article-layout-wide .article-style .doc-section:has(>.get-involved-projects)>aside.callout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:28px;align-content:start} - .article-layout-wide .article-style .doc-section:has(>.get-involved-projects)>aside.callout>:not(ol){grid-column:1} - .article-layout-wide .article-style .doc-section:has(>.get-involved-projects)>aside.callout>ol{grid-column:2;grid-row:1/span 3;margin-top:0} + .article-layout-wide .article-style .doc-section:has(.get-involved-projects)>aside.callout{display:grid;grid-template:auto auto 1fr/minmax(0,1fr) minmax(0,1fr);column-gap:28px;align-content:start} + .article-layout-wide .article-style .doc-section:has(.get-involved-projects)>aside.callout>:not(ol){grid-column:1} + .article-layout-wide .article-style .doc-section:has(.get-involved-projects)>aside.callout>ol{grid-column:2;grid-row:1/span 3;margin-top:0} +} +/* Getting started is white with a quiet frame, so it stands apart from the area-tinted project cards; its guide is + the panel's one button. */ +.doc-section:has(.get-involved-projects)>aside.callout{background:#fff;border:1px solid var(--line)} +.article-layout .article-style .doc-section:has(.get-involved-projects)>aside.callout>.gi-guide{margin:14px 0 0} +@media(max-width:760px){ + .article-layout .article-style .doc-section:has(.get-involved-projects)>aside.callout{padding:14px 16px;margin:14px 0 18px} + .article-layout .article-style .doc-section:has(.get-involved-projects)>aside.callout>ol{margin:8px 0 0} + .article-layout .article-style .doc-section:has(.get-involved-projects)>aside.callout>ol li{margin-bottom:4px;font-size:16px;line-height:1.45} + .article-layout .article-style .doc-section:has(.get-involved-projects)>aside.callout>.gi-guide{margin-top:10px} } @@ -1220,7 +1275,7 @@ html:has(.people-az){scroll-padding-top:16px} @media(min-width:1001px){ .community-page .doc-section#about{display:grid;grid-template-columns:minmax(0,29em) minmax(0,1fr);column-gap:56px;align-items:start} .community-page .doc-section#about>h2{grid-column:1/-1} - .article-layout .article-style .doc-section#about>:is(p,ul){margin:0} + .community-page .article-style .doc-section#about>:is(p,ul){margin:0} } @media(max-width:1240px){ .article-layout .article-style ul.people-group{grid-template-columns:repeat(3,minmax(0,1fr))} diff --git a/content/about/get-involved/about.md b/content/about/get-involved/about.md index 324f1fcc7a2..00ef81a701d 100644 --- a/content/about/get-involved/about.md +++ b/content/about/get-involved/about.md @@ -5,7 +5,7 @@ widget = "blank" # See https://sourcethemes.com/academic/docs/page-builder/ headless = true # This file represents a page section. active = true # Activate this widget? true/false -weight = 12 # Order that this section will appear. +weight = 60 # Order that this section will appear. title = "About FORRT" subtitle = "" diff --git a/content/about/get-involved/calendar.md b/content/about/get-involved/calendar.md index 1b79ca607b7..f03e61bd73a 100644 --- a/content/about/get-involved/calendar.md +++ b/content/about/get-involved/calendar.md @@ -5,7 +5,7 @@ widget = "blank" # See https://sourcethemes.com/academic/docs/page-builder/ headless = true # This file represents a page section. active = true # Activate this widget? true/false -weight = 50 # Order that this section will appear. +weight = 20 # Order that this section will appear. title = "Community calendar" subtitle = "" diff --git a/content/about/get-involved/get-involved.md b/content/about/get-involved/get-involved.md index c528df621b2..00a3d73d637 100644 --- a/content/about/get-involved/get-involved.md +++ b/content/about/get-involved/get-involved.md @@ -15,17 +15,23 @@ subtitle = "" padding = ["60px", "0", "60px", "0"] +++ -These projects are looking for collaborators now. Most of them coordinate on -FORRT's Slack: [join it](https://join.slack.com/t/forrt/shared_invite/zt-alobr3z7-NOR0mTBfD1vKXn9qlOKqaQ), then contact the person named on the project. +These projects are looking for collaborators now. Most of them coordinate on FORRT's Slack: [join it](https://join.slack.com/t/forrt/shared_invite/zt-alobr3z7-NOR0mTBfD1vKXn9qlOKqaQ), then contact the person named on the project. -{{% callout title="Getting Started with FORRT" %}} + -Before you join, read [**the guide**](https://docs.google.com/document/d/e/2PACX-1vR_OKOxDlrbPcXn6SZLYlq19139ofcYDInBu9E392jWG5yzbp2VjF7E1_fwtzTz4Wxo9i4ddHZTbHfT/pub) (a Google Doc). It is organised by how involved you want to be: +{{% callout title="Getting started with FORRT" %}} + +Before you join, read the guide (a Google Doc). It is organised by how involved you want to be: 1. General information about FORRT, its Slack channels and community, with links to resources. 2. The current initiatives that would benefit from your help, with authorship opportunities and no required involvement in the organisation. 3. How FORRT is organised, and how to take part in running it. +

Read the getting-started guide

+ {{% /callout %}} {{< get_involved_projects >}} diff --git a/layouts/shortcodes/get_involved_projects.html b/layouts/shortcodes/get_involved_projects.html index 163cfefad44..6e21bf2e130 100644 --- a/layouts/shortcodes/get_involved_projects.html +++ b/layouts/shortcodes/get_involved_projects.html @@ -4,27 +4,104 @@ Regenerate with: python scripts/build_get_involved.py */}} {{ $data := index hugo.Data "get_involved_projects" }} -{{ $projects := $data.projects }} +{{ $all := $data.projects }} -{{/* No search: a list this short is read whole (DESIGN.md §4). */}} -
- {{ range $projects }} -
- {{/* Every card has the same parts in the same places: the name (a link to the project's page, where it has - one), what the project does, and one way to reach its contact, with the team's Slack channel after it. */}} -

{{ if .link }}{{ .name }}{{ else }}{{ .name }}{{ end }}

-
- {{ .description | markdownify }} +{{/* Group ongoing projects by FORRT's Strategic Focus Areas (DESIGN.md §6), and those that run FORRT itself apart. The + grouping follows the main focus area in "2025_Mapping of FORRT's Teams & Initiatives into Focus Areas" (Google + Drive); Re-SearchTerms, not listed there, goes with the Glossary. */}} +{{ $areaOf := dict + "FLoRA" "res" + "Lighthouse" "res" + "Best-Practice" "res" + "Re-SearchTerms" "res" + "JUST-OS" "res" + "Mapping Open" "res" + "Clusters" "edu" + "OS Games" "edu" + "Team Curriculum" "edu" + "Nowhere Lab" "com" + "Team Credit" "com" + "Feedback" "com" + "Team Outreach" "org" + "Team Website" "org" + "Storytelling" "org" +}} +{{ $areaGroups := slice + (dict "key" "res" "title" "Meta-Science & Research" "img" "images/area-research-bricks.webp") + (dict "key" "edu" "title" "Education & Pedagogy" "img" "images/area-education-bricks.webp") + (dict "key" "com" "title" "Community & Sustainability" "img" "images/area-community-bricks.webp") + (dict "key" "other" "title" "Other initiatives" "img" "") +}} +{{ $buckets := newScratch }} +{{ range $all }} + {{ $area := "" }} + {{ $name := .name }} + {{ range $prefix, $k := $areaOf }} + {{ if in $name $prefix }}{{ $area = $k }}{{ end }} + {{ end }} + {{ if not $area }} + {{ warnf "get_involved_projects: unmapped project %q — add it to $areaOf in layouts/shortcodes/get_involved_projects.html" $name }} + {{ $area = "other" }} + {{ end }} + {{ $buckets.Add $area (slice .) }} +{{ end }} +{{ $teams := $buckets.Get "org" | default slice }} + +
+ {{ range $areaGroups }} + {{ $area := .key }} + {{ $items := $buckets.Get $area | default slice }} + {{ if gt (len $items) 0 }} + {{ $plate := "" }}{{ with .img }}{{ $plate = resources.Get . }}{{ end }} +
+
+ {{ with $plate }}{{ $w := .Resize "200x webp q82" }}{{ end }} +

{{ .title }}

-
- {{ if .contact_email }} - Email {{ .contact_name | default "the team" }} - {{ else if .contact_name }} - {{/* No email: the person is reached on FORRT's Slack, so the button joins it. */}} - Join Slack to ask {{ .contact_name }} (opens in a new tab) +
+ {{ range $items }} + {{ end }} - {{ if .slack }}Slack channel for {{ .name }} (opens in a new tab){{ end }}
+ {{ end }} {{ end }}
+ +
+
+

Running FORRT

+

FORRT's outreach, storytelling and website. See all FORRT teams.

+
+
+ {{ range $teams }} + + {{ end }} +
+
diff --git a/scripts/rebrand/check_design.py b/scripts/rebrand/check_design.py index 9c8dfd2797c..4331ab9a73c 100644 --- a/scripts/rebrand/check_design.py +++ b/scripts/rebrand/check_design.py @@ -948,7 +948,9 @@ def check_phone_reading(browser, base, failures, selected=None): page.locator("#just-os-btn").click() page.wait_for_function("document.getElementById('just-os-window')?.style.display === 'flex'", timeout=15000) page.wait_for_function("document.activeElement?.classList.contains('just-os-input')", timeout=5000) - page.evaluate("scrollTo(0, 600); dispatchEvent(new Event('scroll'))") + # Scroll a project card under the launcher; a fixed offset can land in the gap between groups. + page.evaluate("scrollTo(0, document.querySelector('.get-involved-card').getBoundingClientRect().top + scrollY" + " - innerHeight + 160); dispatchEvent(new Event('scroll'))") page.keyboard.press("Escape") page.wait_for_timeout(400) focus_after = page.evaluate("({covered: document.getElementById('just-os-widget').classList.contains('is-covered'),"