Skip to content

Commit e0d13f7

Browse files
authored
fix: Fix team page (#221)
1 parent 91e05a8 commit e0d13f7

File tree

4 files changed

+109
-32
lines changed

4 files changed

+109
-32
lines changed

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ extra_css:
2525
- css/nav.css
2626
- css/partners.css
2727
- css/search.css
28+
- css/team.css
2829
- css/tokens.css
2930
- css/utilities.css
3031

scripts/check-broken-links-md.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,16 @@ def process_log() -> None:
3737
for line in log_err.splitlines():
3838
line = line.strip() # noqa: PLW2901
3939
# Check if the line starts with '('
40-
if line.startswith("("):
41-
# Extract the URL using regex
42-
for exception_url in exception_urls:
43-
if exception_url not in line:
44-
flagged_errors.append(line)
40+
if not line.startswith("("):
41+
continue
42+
43+
if line.endswith("429)"):
44+
# Too Many Requests http error
45+
continue
46+
# Extract the URL using regex
47+
for exception_url in exception_urls:
48+
if exception_url not in line:
49+
flagged_errors.append(line)
4550

4651
# Print flagged errors
4752
if not flagged_errors:

theme/css/team.css

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/* ===== Team page (scoped) ===== */
2+
.team-grid .card{
3+
border-radius: 1rem;
4+
border: 1px solid var(--card-border, rgba(255,255,255,.12));
5+
background: var(--card-bg, rgba(20,24,33,.6));
6+
overflow: hidden;
7+
}
8+
[data-bs-theme="light"] .team-grid .card{
9+
background: #fff;
10+
border-color: rgba(0,0,0,.08);
11+
}
12+
13+
.team-grid .card-img-top{
14+
display:block;
15+
width:100%;
16+
aspect-ratio: 4 / 3; /* keeps consistent header area */
17+
object-fit: cover; /* crops tall/wide headshots neatly */
18+
}
19+
20+
.team-grid .card-title{
21+
font-size: 1.15rem;
22+
margin-bottom: .25rem;
23+
}
24+
25+
/* Social icon row */
26+
.team-grid .social{
27+
display: flex;
28+
align-items: center;
29+
gap: .5rem;
30+
}
31+
32+
/* Tight, consistent SVG icon sizing + inherit theme color */
33+
.team-grid .social .icon{
34+
width: 22px; /* <- right here: fix HUGE icon */
35+
height: 22px;
36+
display: inline-block;
37+
vertical-align: middle;
38+
fill: currentColor; /* ensure symbols use text color */
39+
}
40+
.team-grid .social a{
41+
color: var(--fg, #e6e9f0);
42+
opacity: .85;
43+
text-decoration: none;
44+
}
45+
[data-bs-theme="light"] .team-grid .social a{
46+
color: #1f2937;
47+
}
48+
.team-grid .social a:hover{
49+
color: var(--brand, #3b82f6);
50+
opacity: 1;
51+
}
52+
53+
/* Sponsor iframe wrapper spacing */
54+
.team-grid .sponsor{
55+
margin-top: .5rem;
56+
}

theme/team.html

Lines changed: 42 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{% extends "base.html" %}
22

3+
{% block header_extra %}
4+
<link rel="stylesheet" href="/css/team.css">
5+
{% endblock header_extra %}
6+
37
{% block content %}
4-
<section>
5-
<div class="row pt-2">
8+
<section class="team-grid py-2">
9+
<div class="row">
610
<div class="col-md-12 mx-auto">
711
{% block content_inner %}
812
{{ page.content }}
@@ -11,43 +15,54 @@
1115
</div>
1216

1317
{% for group in page.meta["teams"] %}
14-
<div class="row">
15-
<div class="col-md-12 mx-auto pt-3">
16-
<h2>{{ group.name }}</h2>
17-
<div class="row row-cols-1 row-cols-md-3">
18+
<div class="row pt-3">
19+
<div class="col-md-12 mx-auto">
20+
<h2 class="mb-3">{{ group.name }}</h2>
21+
22+
<!-- Responsive grid with gutter spacing -->
23+
<div class="row row-cols-1 row-cols-sm-2 row-cols-lg-3 g-4">
1824
{% for member in group.members %}
1925
<div class="col">
20-
<div class="card p-0 mt-3">
21-
<img src="{{ member.image_url }}" class="card-img-top m-0" />
22-
<div class="card-body">
23-
<h3 class="card-title">{{ member.name }}</h3>
26+
<div class="card h-100">
27+
{% if member.image_url %}
28+
<img src="{{ member.image_url }}" class="card-img-top" alt="{{ member.name }}">
29+
{% endif %}
2430

25-
<a class="git_ico" href="{{ member.github_url }}">
26-
<svg class="icon">
27-
<title>github</title>
28-
<use xlink:href="#github"></use>
29-
</svg>
30-
</a>
31+
<div class="card-body d-flex flex-column">
32+
<div class="d-flex justify-content-between align-items-start">
33+
<h3 class="card-title mb-2">{{ member.name }}</h3>
3134

32-
<p class="card-text">{{ member.bio }}</p>
35+
{% if member.github_url %}
36+
<div class="social">
37+
<a class="git_ico" href="{{ member.github_url }}" target="_blank" aria-label="{{ member.name }} on GitHub" rel="noopener">
38+
<svg class="icon"><use xlink:href="#github"/></svg>
39+
</a>
40+
</div>
41+
{% endif %}
42+
</div>
3343

34-
{% if "github_sponsor" in member %}
35-
Support his work on community and open source projects via:
36-
37-
<iframe
38-
src="{{ member.github_sponsor }}"
39-
title="Sponsor {{ member.name }}"
40-
height="35"
41-
width="116"
42-
style="border: 0"
43-
></iframe>
44+
{% if member.bio %}
45+
<p class="card-text mb-2">{{ member.bio }}</p>
46+
{% endif %}
4447

48+
{% if "github_sponsor" in member %}
49+
<div class="sponsor mt-auto">
50+
<small class="text-secondary d-block mb-1">Support this work:</small>
51+
<iframe
52+
src="{{ member.github_sponsor }}"
53+
title="Sponsor {{ member.name }}"
54+
height="35"
55+
width="116"
56+
style="border:0"
57+
></iframe>
58+
</div>
4559
{% endif %}
4660
</div>
4761
</div>
4862
</div>
4963
{% endfor %}
5064
</div>
65+
5166
</div>
5267
</div>
5368
{% endfor %}

0 commit comments

Comments
 (0)