Skip to content

Commit b084c30

Browse files
Refactor faciliators
1 parent ad8600b commit b084c30

File tree

10 files changed

+138
-261
lines changed

10 files changed

+138
-261
lines changed

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ color_scheme: wider
1515

1616
# Collections for website data
1717
collections:
18-
staffers:
18+
people:
1919
sort_by: name
2020

2121
# Default layouts for each collection type
2222
defaults:
2323
- scope:
24-
path: '_staffers'
25-
type: staffers
24+
path: '_people'
25+
type: people
2626
values:
27-
layout: staffer
27+
layout: person
2828
height: 300
2929
width: 300
3030
subpath: '/assets/headshots/'

_layouts/person.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<div class="person">
2+
{%- if page.photo -%}
3+
<img class="person-image" src="{{ site.baseurl }}{{ page.subpath }}{{ page.photo }}" alt="{{ page.name }} profile photo">
4+
{%- else -%}
5+
<img class="person-image" src="{{ site.baseurl }}{{ page.subpath }}default_photo.svg" alt="{{ page.name }} profile photo">
6+
{%- endif -%}
7+
<div>
8+
<h3 class="person-name" id="{{ page.name | slugify }}">
9+
{%- if page.website -%}
10+
<a href="{{ page.website }}">{{ page.name }}</a>
11+
{%- else -%}
12+
{{ page.name }}
13+
{%- endif -%}
14+
</h3>
15+
16+
{%- if page.role -%}
17+
<p class="person-role">{{ page.role }}</p>
18+
{%- endif -%}
19+
20+
{{ content }}
21+
</div>
22+
</div>

_layouts/staffer.html

Lines changed: 0 additions & 22 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

_sass/custom.scss

Lines changed: 0 additions & 84 deletions
This file was deleted.

_sass/custom/_staff.scss

Lines changed: 0 additions & 110 deletions
This file was deleted.

_sass/custom/custom.scss

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,76 @@
1-
// Custom styles for CRUP
2-
@import "staff";
1+
/* People layout inspired by Data 100 fa25 */
2+
.role {
3+
display: flex;
4+
flex-wrap: wrap;
5+
margin-bottom: 2rem;
6+
}
7+
8+
.person {
9+
display: flex;
10+
flex-basis: 45%;
11+
padding: 0.75rem;
12+
margin-bottom: 0.75rem;
13+
border: 1px solid #e1e4e8;
14+
border-radius: 8px;
15+
background-color: #ffffff;
16+
transition: box-shadow 0.2s ease;
17+
18+
&:hover {
19+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
20+
}
21+
22+
.person-image {
23+
border-radius: 50%;
24+
height: 60px;
25+
width: 60px;
26+
margin-right: 0.75rem;
27+
object-fit: contain;
28+
flex-shrink: 0;
29+
}
30+
31+
.person-name {
32+
margin: 0.25rem 0;
33+
font-size: 1rem;
34+
font-weight: 600;
35+
color: #24292e;
36+
37+
a {
38+
color: #0366d6;
39+
text-decoration: none;
40+
41+
&:hover {
42+
text-decoration: underline;
43+
}
44+
}
45+
}
46+
47+
.person-role {
48+
font-weight: 500;
49+
color: #0366d6;
50+
margin: 0.25rem 0;
51+
font-size: 0.9rem;
52+
}
53+
54+
p {
55+
margin: 0.25rem 0;
56+
line-height: 1.4;
57+
font-size: 0.85rem;
58+
}
59+
60+
// Responsive design
61+
@media (max-width: 768px) {
62+
flex-direction: column;
63+
text-align: center;
64+
padding: 0.75rem;
65+
flex-basis: 100%;
66+
67+
.person-image {
68+
margin-right: 0;
69+
margin-bottom: 0.5rem;
70+
}
71+
}
72+
}
73+
74+
75+
76+

0 commit comments

Comments
 (0)