|
1 | 1 | {% extends "base.html" %}
|
2 | 2 |
|
| 3 | +{% block header_extra %} |
| 4 | +<link rel="stylesheet" href="/css/team.css"> |
| 5 | +{% endblock header_extra %} |
| 6 | + |
3 | 7 | {% block content %}
|
4 |
| -<section> |
5 |
| - <div class="row pt-2"> |
| 8 | +<section class="team-grid py-2"> |
| 9 | + <div class="row"> |
6 | 10 | <div class="col-md-12 mx-auto">
|
7 | 11 | {% block content_inner %}
|
8 | 12 | {{ page.content }}
|
|
11 | 15 | </div>
|
12 | 16 |
|
13 | 17 | {% 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"> |
18 | 24 | {% for member in group.members %}
|
19 | 25 | <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 %} |
24 | 30 |
|
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> |
31 | 34 |
|
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> |
33 | 43 |
|
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 %} |
44 | 47 |
|
| 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> |
45 | 59 | {% endif %}
|
46 | 60 | </div>
|
47 | 61 | </div>
|
48 | 62 | </div>
|
49 | 63 | {% endfor %}
|
50 | 64 | </div>
|
| 65 | + |
51 | 66 | </div>
|
52 | 67 | </div>
|
53 | 68 | {% endfor %}
|
|
0 commit comments