diff --git a/assets/css/sections.css b/assets/css/sections.css index 0283f2deb77..f8395b230c3 100644 --- a/assets/css/sections.css +++ b/assets/css/sections.css @@ -14,13 +14,62 @@ .feature-rows img{width:96px;height:96px;object-fit:contain;padding:12px;background:var(--edu-bg);border-radius:50%} .article-layout .article-style .feature-rows h3{margin:0 0 4px;font-size:23px} .feature-rows p{margin:0 0 8px} -/* Team descriptions are list summaries: 17 px at every width (DESIGN.md §7); "more" follows the text directly. */ -.article-layout .article-style ul.team-rows>li{font-size:17px} -.article-layout .article-style .team-rows p.clamp-desc{margin-bottom:0} -.feature-rows-small .feature-icon{width:96px;font-size:40px;text-align:center;color:var(--link)} -/* Teams: picture, name, description, and a button to join. */ -.article-layout .article-style ul.team-rows{padding:0} -.team-rows .team-join{margin:10px 0 0} +/* Teams: grouped by FORRT's four Strategic Focus Areas, each with its area colour and legible white-on-colour icon disc. */ +.team-page{margin-top:4px} +.team-area-nav{display:flex;flex-wrap:wrap;gap:2px 22px;margin:0 0 22px;padding:0 0 12px;border-bottom:1px solid var(--line)} +.team-area-jump{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:4px 0;color:var(--link);font:600 16px/1.3 var(--text);text-decoration:none} +.team-area-jump:is(:hover,:focus-visible) .team-area-label{text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)} +.team-area-dot{width:10px;height:10px;border-radius:2px;background:var(--area,var(--soft));flex:none} +.team-area-count{color:var(--soft);font-weight:500} +:is(.team-area-jump,.team-area-group)[data-area=edu]{--area:var(--edu);--area-bg:var(--edu-bg)} +:is(.team-area-jump,.team-area-group)[data-area=res]{--area:var(--res);--area-bg:var(--res-bg)} +:is(.team-area-jump,.team-area-group)[data-area=jus]{--area:var(--jus);--area-bg:var(--jus-bg)} +:is(.team-area-jump,.team-area-group)[data-area=com]{--area:var(--com);--area-bg:var(--com-bg)} +:is(.team-area-jump,.team-area-group):is([data-area=org],[data-area=other]){--area:var(--ink);--area-bg:var(--surface)} +.team-top{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0 0 28px;align-items:start} +@media(min-width:1001px){.team-top{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px 48px}} +.team-intro>:first-child{margin-top:0} +.team-intro>:last-child{margin-bottom:0} +.team-join-panel{padding:20px 22px;background:var(--surface);border-radius:var(--r-large)} +.article-layout .article-style .team-join-panel h2{margin:0 0 6px;font-size:22px;line-height:1.2} +.article-layout .article-style .team-join-panel p{margin:0 0 12px;font-size:17px;line-height:1.5} +.article-layout .article-style .team-join-panel .team-join-cta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0} +.team-join-panel .btn{display:inline-flex;align-items:center;min-height:44px;margin:0} +.team-more-link{display:inline-flex;align-items:center;min-height:44px;color:var(--link);font-weight:600;text-decoration:none} +.team-more-link: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)} +.team-area-group{margin:0 0 40px;scroll-margin-top:20px} +.team-area-group:last-child{margin-bottom:0} +.team-area-head{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px 18px;align-items:center;margin:0 0 18px;padding-bottom:14px;border-bottom:2px solid var(--area)} +.team-area-head:not(:has(.team-area-plate)){grid-template-columns:minmax(0,1fr)} +.team-area-plate{display:flex;align-items:flex-end;justify-content:center;width:64px;height:60px;padding:8px 6px 2px;box-sizing:border-box;background:var(--area-bg);border-radius:999px 999px 6px 6px} +.team-area-plate img{display:block;width:100%;height:100%;object-fit:contain;margin:0} +.article-layout .article-style .team-area-head h2{margin:0 0 2px;font-size:28px;line-height:1.15;color:var(--area)} +.article-layout .article-style .team-area-head p{margin:0;max-width:var(--measure);font-size:17px;color:var(--soft)} +.article-layout .article-style ul.team-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:16px;max-width:none;margin:0;padding:0;list-style:none} +/* Four teams are two rows of two rather than three and a lone one. */ +@media(min-width:1001px){.article-layout .article-style ul.team-cards:has(>li:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}} +.article-layout .article-style ul.team-cards>li.team-card{display:flex;flex-direction:column;max-width:none;margin:0;padding:18px 20px;background:var(--area-bg);border-radius:var(--r-large);font-size:17px;line-height:1.45} +.team-card-head{display:grid;grid-template-columns:46px minmax(0,1fr);gap:12px;align-items:center;margin:0 0 10px} +.team-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--area);flex:none} +.team-icon img{display:block;width:24px;height:24px;object-fit:contain;margin:0} +.article-layout .article-style .team-card h3{margin:0;font:var(--display-weight) 21px/1.2 var(--display);color:var(--ink)} +.article-layout .article-style .team-card p.clamp-desc{margin:0;font-size:17px;line-height:1.48} +.article-layout .article-style .team-card .team-join{margin:auto 0 0;padding-top:14px} +.article-layout .article-style .team-card .btn.dir-btn{min-height:44px;padding:8px 16px!important;background:#fff!important;border:1.5px solid var(--link)!important;border-radius:999px!important;color:var(--link)!important;font:600 15px/1.2 var(--text)!important} +.article-layout .article-style .team-card .btn.dir-btn:hover{background:var(--link)!important;color:#fff!important} +@media(max-width:760px){ + .team-area-nav{gap:0 16px;margin:0 0 12px;padding-bottom:8px} + .team-area-jump{font-size:15px} + .team-top{gap:8px;margin:0 0 18px} + .team-join-panel{padding:12px 14px} + .article-layout .article-style .team-join-panel h2{margin:0 0 4px;font-size:18px} + .article-layout .article-style .team-join-panel>p:not(.team-join-cta){margin:0 0 8px;font-size:15px;line-height:1.4} + .team-join-panel .btn{padding:8px 16px!important;font-size:15px!important} + .team-area-head{grid-template-columns:52px minmax(0,1fr);gap:12px;margin-bottom:14px;padding-bottom:10px} + .team-area-plate{width:52px;height:48px;padding:6px 4px 2px} + .article-layout .article-style .team-area-head h2{font-size:24px} + .article-layout .article-style ul.team-cards>li.team-card{padding:16px} +} /* Directory buttons are small and quiet beside the card's text (DESIGN.md §3); an invisible margin around each makes a 44 px tap target (§9). */ .article-layout .article-style .dir-btn{position:relative;display:inline-flex;align-items:center;min-height:34px;padding:4px 14px!important;font-size:15px!important;line-height:1.3!important} @@ -572,8 +621,6 @@ html:has(.contributor-az:not([hidden])){scroll-padding-top:calc(var(--contributo /* Wide pages: prose is not left alone in a narrow column beside an empty band (DESIGN.md §7). Teams: the introduction takes the first cell of the grid of teams. */ @media(min-width:1001px){ - .article-layout-wide .article-style .team-layout{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:28px 40px;margin:24px 0} - .article-layout-wide .article-style .team-layout>.feature-rows{display:contents} .team-intro>:first-child{margin-top:0} .team-intro>:last-child{margin-bottom:0} } diff --git a/layouts/partials/widgets/featurette_team.html b/layouts/partials/widgets/featurette_team.html index 96be079326e..fea3eeba92a 100644 --- a/layouts/partials/widgets/featurette_team.html +++ b/layouts/partials/widgets/featurette_team.html @@ -1,30 +1,108 @@ -{{/* Teams: a short intro, then the teams A to Z, each with its picture, name, description and a button to join it. - The button says where it goes: a team's own Slack channel, or #forrt-community for teams without one; - screen readers also hear the team's name, so a list of the page's links still says which team each joins. */}} +{{/* Teams: grouped under FORRT's four Strategic Focus Areas, each with its area's Doors illustration and colour + (DESIGN.md §6), then the teams that run FORRT itself. The grouping follows the main focus area in "2025_Mapping of + FORRT's Teams & Initiatives into Focus Areas" (Google Drive); Curations, undecided there, is with Education. Each team card shows its icon clearly on a solid area-coloured disc (the team SVGs are white), + its name, full description and button to join its Slack channel or ask in #forrt-community. */}} {{ $page := .page }} -{{/* On a wide screen the introduction takes the first place in the grid of teams, so no empty band sits beside it. */}} -
New to FORRT's Slack? Join with the invitation link first; the team buttons then open each team's channel.
-{{ . | markdownify | emojify }}
{{ end }} - {{ with .buttonurl }} - {{/* A team without a channel of its own is reached through #forrt-community, not a bare workspace invite. */}} - {{ $url := . }}{{ $label := "Join the team" }} - {{ if in . "slack.com/archives/" }}{{ $label = "Join the team's Slack channel" }}{{ else if in . "join.slack.com" }}{{ $url = "https://forrt.slack.com/archives/CM6344P5E" }}{{ $label = "Ask about the team in #forrt-community" }}{{ end }} - +{{ $areaMap := dict + "Team Curations" "edu" + "Team Curriculum" "edu" + "Team Lesson Plans" "edu" + "Team Lesson Plans | Phase 2 | Expansion" "edu" + "Team Pedagogies" "edu" + "Team Summaries" "edu" + "Team Glossary" "res" + "Team Glossary | Phase 2 | Translation" "res" + "Team Impact" "res" + "Team JUST-OS" "res" + "Team Landscape" "res" + "Team Mapping Open Science Communities" "res" + "Team Replication Hub" "res" + "Team Reversals and Replication" "res" + "Team Citation Politics" "jus" + "Team Neurodiversity" "jus" + "Team Wheel of Privilege" "jus" + "Team Ambassador Program" "com" + "Team Cohesion" "com" + "Team Credit" "com" + "Team Feedback" "com" + "Team Manuscript" "com" + "Team Open Science in Developing Countries" "com" + "Team Ethics" "org" + "Team Ideas" "org" + "Team Outreach and Impact" "org" + "Team Website" "org" +}} +{{ $groups := slice + (dict "key" "edu" "title" "Education & Pedagogy" "img" "images/area-education-bricks.webp" "blurb" "Teaching materials, lesson plans, summaries, pedagogies and curricula.") + (dict "key" "res" "title" "Meta-Science & Research" "img" "images/area-research-bricks.webp" "blurb" "Replications and reversals, the glossary, JUST-OS, mapping and synthesis.") + (dict "key" "jus" "title" "Social Justice & DEIA" "img" "images/area-justice-bricks.webp" "blurb" "Neurodiversity, citational justice and privilege in academia.") + (dict "key" "com" "title" "Community & Sustainability" "img" "images/area-community-bricks.webp" "blurb" "Cohesion, contributor credit, ambassadors, feedback and global participation.") + (dict "key" "org" "title" "Running FORRT" "img" "" "blurb" "Ethics, new ideas, outreach and the website.") + (dict "key" "other" "title" "Other teams" "img" "" "blurb" "Cross-cutting and newly added FORRT teams.") +}} +{{ $buckets := newScratch }} +{{ range sort $page.Params.featurealt "name" }} + {{ $teamName := .name | plainify | strings.TrimSpace }} + {{ $key := index $areaMap $teamName }} + {{ if not $key }} + {{ warnf "featurette_team: unmapped team %q — add it to $areaMap in layouts/partials/widgets/featurette_team.html" $teamName }} + {{ $key = "other" }} + {{ end }} + {{ $buckets.Add $key (slice .) }} +{{ end }} + +{{ .blurb }}
+{{ . | markdownify | emojify }}
{{ end }} + {{ $url := "https://forrt.slack.com/archives/CM6344P5E" }}{{ $label := "Ask in #forrt-community" }} + {{ with .buttonurl }} + {{ if in . "slack.com/archives/" }}{{ $url = . }}{{ $label = "Join the team's Slack channel" }}{{ else if not (in . "join.slack.com") }}{{ $url = . }}{{ $label = "Join the team" }}{{ end }} + {{ end }} + +