|
6 | 6 | {%- for contributor in page_contributors %}
|
7 | 7 | {%- assign id = contributors[contributor].git | default: 'no_github' %}
|
8 | 8 | {%- capture html_code %}
|
9 |
| - {%- assign stripped_name = contributor | replace: "'", " " %} |
10 |
| - <div class="d-flex justify-content-center"> |
11 |
| - {%- if contributors[contributor].image_url %} |
12 |
| - <img class="img-fluid rounded-circle contributor-img" src="{{ contributors[contributor].image_url }}" alt="Avatar of the contributor {{ stripped_name }}"> |
13 |
| - {%- else %} |
14 |
| - <img class="img-fluid rounded-circle contributor-img" src="https://avatars.githubusercontent.com/{{ id }}" alt="Avatar of the contributor {{ stripped_name }}"> |
15 |
| - {%- endif %} |
16 |
| - </div> |
17 |
| - <div class="d-flex mt-3 justify-content-center"> |
18 |
| - {%- if contributors[contributor].git %} |
19 |
| - <div class="mx-1"><a class="btn btn-primary rounded-circle social-icons p-0" href="https://github.com/{{id}}"><i class="fa-brands fa-github"></i></a></div> |
20 |
| - {%- endif %} |
21 |
| - {%- if contributors[contributor].email %} |
22 |
| - <div class="mx-1"><a class="btn btn-primary rounded-circle social-icons p-0" href="mailto:{{contributors[contributor].email}}"><i class="fa-solid fa-envelope"></i></a></div> |
23 |
| - {%- endif %} |
24 |
| - {%- if contributors[contributor].orcid %} |
25 |
| - <div class="mx-1"><a class="btn btn-primary rounded-circle social-icons p-0" href="https://orcid.org/{{contributors[contributor].orcid}}"><i class="fa-brands fa-orcid"></i></a></div> |
| 9 | + {%- assign stripped_name = contributor | replace: "'", "’" %} |
| 10 | + <div class="card bg-white"> |
| 11 | + {%- assign id = contributors[contributor].git | default: 'no_github' %} |
| 12 | + <div class="position-relative d-flex justify-content-center"> |
| 13 | + {%- if contributors[contributor].image_url %} |
| 14 | + <img src="{{ contributors[contributor].image_url }}" class="card-img-top p-3 rounded-circle contributor-img" alt="{{ stripped_name }}"> |
| 15 | + {%- else %} |
| 16 | + <img src="https://avatars.githubusercontent.com/{{id}}" class="card-img-top p-3 rounded-circle contributor-img" alt="{{ stripped_name }}"> |
| 17 | + {%- endif %} |
| 18 | + {%- if contributors[contributor].role %} |
| 19 | + <span class="badge position-absolute top-0 end-0">{{ contributors[contributor].role | capitalize }}</span> |
| 20 | + {%- endif %} |
| 21 | + </div> |
| 22 | + <div class="card-body text-center py-0"> |
| 23 | + <p class="card-title">{{ stripped_name }}</p> |
| 24 | + {%- if contributors[contributor].affiliation %} |
| 25 | + <p class="card-affiliation">{{ contributors[contributor].affiliation | replace: "'", "’" }}</p> |
| 26 | + {%- endif %} |
| 27 | + </div> |
| 28 | + {%- if contributors[contributor].git or contributors[contributor].email or contributors[contributor].orcid %} |
| 29 | + <div class="card-footer bg-dark"> |
| 30 | + <div class="d-flex justify-content-center"> |
| 31 | + {%- if contributors[contributor].git %} |
| 32 | + <div class="mx-1"><a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="https://github.com/{{id}}"><i class="fa-brands fa-github"></i></a></div> |
| 33 | + {%- endif %} |
| 34 | + {%- if contributors[contributor].email %} |
| 35 | + <div class="mx-1"><a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="mailto:{{contributors[contributor].email}}"><i class="fa-solid fa-envelope"></i></a></div> |
| 36 | + {%- endif %} |
| 37 | + {%- if contributors[contributor].orcid %} |
| 38 | + <div class="mx-1"><a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="https://orcid.org/{{contributors[contributor].orcid}}"><i class="fa-brands fa-orcid"></i></a></div> |
| 39 | + {%- endif %} |
| 40 | + </div> |
| 41 | + </div> |
26 | 42 | {%- endif %}
|
27 |
| - </div> |
| 43 | + </div> |
28 | 44 | {%- endcapture %}
|
29 |
| - <a tabindex="0" role="button" class="btn btn-sm contributor-link hover-primary m-1 position-relative" data-bs-trigger="focus" data-bs-html="true" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-content='{{html_code}}' title="{{contributor}}"> |
| 45 | + <a tabindex="0" role="button" class="btn btn-sm contributor-link hover-primary m-1 position-relative" data-bs-html="true" data-bs-trigger="focus" data-bs-container="body" data-bs-template='<div class="popover shadow border-0 contributor-cards" role="tooltip"><div class="popover-body p-0"></div></div>' data-bs-toggle="popover" data-bs-placement="top" data-bs-content='{{html_code}}'> |
30 | 46 | <div class="d-flex align-items-center">
|
31 | 47 | <div class="flex-shrink-0">
|
32 | 48 | {%- if contributors[contributor].image_url %}
|
|
0 commit comments