Skip to content
66 changes: 57 additions & 9 deletions assets/css/doors/sections.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,63 @@
.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-label{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.team-area-jump:hover{color:var(--ink)}
.team-area-jump:hover .team-area-label{text-decoration-thickness:2px}
.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)[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-about>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--link);font:600 16px/1.3 var(--text);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(min-width:761px){.team-about>summary{display:none}}
.team-intro>:first-child{margin-top:0}
.team-intro>:last-child{margin-bottom:0}
.team-join-panel{padding:20px 22px;background:var(--surface);border-inline-start:4px solid var(--link);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:underline;text-underline-offset:3px}
.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:30em;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}
.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}
.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}
Expand Down Expand Up @@ -533,8 +583,6 @@ html:has(.contributor-az:not([hidden])){scroll-padding-top:calc(var(--contributo
.article-layout .article-style .people-layout .people-wall{display:block;margin:0}
.article-layout .article-style .people-layout .people-wall li{display:inline-block;width:200px;margin:0 16px 18px 0;vertical-align:top}
.article-layout .article-style .people-layout .people-wall li[hidden]{display:none}
.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}
}
Expand Down
132 changes: 106 additions & 26 deletions layouts/partials/widgets/featurette_team.html
Original file line number Diff line number Diff line change
@@ -1,30 +1,110 @@
{{/* 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). 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. */}}
<div class="team-layout">
<div class="team-intro">{{ $page.Content }}
{{/* Team channels open only for members of FORRT's Slack, and signing in directly works only with some email
addresses, so the invitation comes first. */}}
<p class="team-slack-note">New to FORRT's Slack? <a href="https://join.slack.com/t/forrt/shared_invite/zt-alobr3z7-NOR0mTBfD1vKXn9qlOKqaQ">Join with the invitation link</a> first; the team buttons then open each team's channel.</p>
</div>
<ul class="feature-rows team-rows" role="list">
{{ range sort $page.Params.featurealt "name" }}
{{ $team := .name | plainify }}
<li>
{{ if .img }}{{ $dims := partial "functions/static_img_dims" .img | default (safeHTMLAttr `width="96" height="96"`) }}<img src="{{ (printf "img/%s" .img) | relURL }}" {{ $dims }} alt="">{{ end }}
<div>
<h3>{{ .name | markdownify | emojify }}</h3>
{{ with .description }}<p class="clamp-desc" data-clamp-name="{{ $team }}">{{ . | markdownify | emojify }}</p>{{ 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 }}
<p class="team-join"><a href="{{ $url }}" class="btn btn-sm dir-btn">{{ $label }}<span class="sr-only">: {{ $team }}</span></a></p>
{{ $areaMap := dict
"Team Ambassador Program" "edu"
"Team Curations" "edu"
"Team Curriculum" "edu"
"Team Feedback" "edu"
"Team Glossary" "edu"
"Team Glossary | Phase 2 | Translation" "edu"
"Team Lesson Plans" "edu"
"Team Lesson Plans | Phase 2 | Expansion" "edu"
"Team Pedagogies" "edu"
"Team Summaries" "edu"
"Team JUST-OS" "edu"
"Team Impact" "res"
"Team Landscape" "res"
"Team Manuscript" "res"
"Team Replication Hub" "res"
"Team Reversals and Replication" "res"
"Team Citation Politics" "jus"
"Team Ethics" "jus"
"Team Neurodiversity" "jus"
"Team Open Science in Developing Countries" "jus"
"Team Wheel of Privilege" "jus"
"Team Cohesion" "com"
"Team Credit" "com"
"Team Ideas" "com"
"Team Mapping Open Science Communities" "com"
"Team Outreach and Impact" "com"
"Team Website" "com"
}}
{{ $groups := slice
(dict "key" "edu" "title" "Education & Pedagogy" "img" "images/doors/area-education.webp" "blurb" "Teaching materials, glossary definitions, lesson plans, summaries and curricula.")
(dict "key" "res" "title" "Meta-Science & Research" "img" "images/doors/area-research.webp" "blurb" "Replications, reversals, literature mapping, impact synthesis and open-research tools.")
(dict "key" "jus" "title" "Social Justice & DEIA" "img" "images/doors/area-justice.webp" "blurb" "Equity, neurodiversity, citational justice, ethics and global inclusion in open scholarship.")
(dict "key" "com" "title" "Community & Sustainability" "img" "images/doors/area-community.webp" "blurb" "Cohesion, contributor credit, outreach, new ideas and FORRT's web infrastructure.")
(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 }}

<div class="team-page team-layout">
<nav class="team-area-nav" aria-label="Jump to teams by area">
{{ range $groups }}
{{ $items := $buckets.Get .key | default slice }}
{{ if gt (len $items) 0 }}
<a class="team-area-jump" data-area="{{ .key }}" href="#teams-{{ .key }}"><span class="team-area-dot" aria-hidden="true"></span><span class="team-area-label">{{ .title }}</span> <span class="team-area-count">({{ len $items }})</span></a>
{{ end }}
</div>
</li>
{{ end }}
</nav>

<div class="team-top">
<details class="list-about team-about">
<summary>About FORRT teams</summary>
<div class="team-intro">{{ $page.Content }}</div>
</details>
<aside class="team-join-panel" aria-label="Joining a FORRT team">
<h2>How to join a team</h2>
<p>Join FORRT's Slack workspace first, then use any team's button below to open its channel.</p>
<p class="team-join-cta">
<a href="https://join.slack.com/t/forrt/shared_invite/zt-alobr3z7-NOR0mTBfD1vKXn9qlOKqaQ" class="btn btn-primary" target="_blank" rel="noopener">Join FORRT's Slack<span class="visually-hidden"> (opens in a new tab)</span></a>
<a href="{{ relref $page "/about/get-involved" }}" class="team-more-link">See ongoing projects</a>
</p>
</aside>
</div>
<script>(function(){var d=document.querySelector('.team-about');if(!d)return;var mq=window.matchMedia('(min-width: 761px)');function sync(){if(mq.matches)d.open=true;}sync();if(mq.addEventListener)mq.addEventListener('change',sync);else if(mq.addListener)mq.addListener(sync);})();</script>

{{ range $groups }}
{{ $items := $buckets.Get .key | default slice }}
{{ if gt (len $items) 0 }}
{{ $plate := "" }}{{ with .img }}{{ $plate = resources.Get . }}{{ end }}
<section class="team-area-group" id="teams-{{ .key }}" data-area="{{ .key }}" aria-labelledby="teams-h-{{ .key }}">
<header class="team-area-head">
{{ with $plate }}{{ $w := .Resize "160x webp q80" }}<span class="team-area-plate" aria-hidden="true"><img src="{{ $w.RelPermalink }}" width="{{ $w.Width }}" height="{{ $w.Height }}" alt=""></span>{{ end }}
<div>
<h2 id="teams-h-{{ .key }}">{{ .title }}</h2>
<p>{{ .blurb }}</p>
</div>
</header>
<ul class="team-cards" role="list">
{{ range $items }}
{{ $team := .name | plainify }}
<li class="team-card">
<div class="team-card-head">
{{ if .img }}<span class="team-icon" aria-hidden="true"><img src="{{ (printf "img/%s" .img) | relURL }}" width="26" height="26" alt=""></span>{{ end }}
<h3>{{ .name | markdownify | emojify }}</h3>
</div>
{{ with .description }}<p class="clamp-desc" data-clamp-name="{{ $team }}">{{ . | markdownify | emojify }}</p>{{ end }}
{{ $url := "https://forrt.slack.com/archives/CM6344P5E" }}{{ $label := "Ask in #forrt-community" }}
{{ with .buttonurl }}
Comment thread
LukasWallrich marked this conversation as resolved.
Resolved
{{ 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 }}
<p class="team-join"><a href="{{ $url }}" class="btn btn-sm dir-btn" target="_blank" rel="noopener">{{ $label }}<span class="sr-only">: {{ $team }} (opens in a new tab)</span></a></p>
</li>
{{ end }}
</ul>
</section>
{{ end }}
{{ end }}
</ul>
</div>
Loading