Skip to content

Commit 9fdad3d

Browse files
committed
changed research card styles
1 parent ed4d170 commit 9fdad3d

File tree

7 files changed

+103
-19
lines changed

7 files changed

+103
-19
lines changed

_includes/card_research.html

+21-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
{{ " " }}
22
<div class="card" data-style="{{ include.style }}" style="width: 100%; ">
3-
<div class="card-img" style="aspect-ratio: 5.0; overflow: hidden;">
4-
<a
5-
{% if include.link %}
6-
href="{{ include.link | relative_url }}"
7-
{% endif %}
8-
aria-label="{{ include.title | default: "card link" }}"
9-
class="card-image"
10-
>
11-
<img
12-
src="{{ include.image | relative_url }}"
13-
alt="{{ include.title | default: "card image" }}"
14-
loading="lazy"
15-
style="width: 100%; height: auto; object-fit: contain;"
16-
{% include fallback.html %}
17-
>
18-
</a>
19-
</div>
3+
204

215
<div class="card-text">
226
{% if include.title %}
@@ -36,7 +20,27 @@
3620
{% if include.subtitle %}
3721
<span class="card-subtitle">{{ include.subtitle }}</span>
3822
{% endif %}
23+
</div>
3924

25+
<div class="card-img" style="aspect-ratio: 5.0; overflow: hidden;">
26+
<a
27+
{% if include.link %}
28+
href="{{ include.link | relative_url }}"
29+
{% endif %}
30+
aria-label="{{ include.title | default: "card link" }}"
31+
class="card-image"
32+
>
33+
<img
34+
src="{{ include.image | relative_url }}"
35+
alt="{{ include.title | default: "card image" }}"
36+
loading="lazy"
37+
style="width: 100%; height: auto; object-fit: contain;"
38+
{% include fallback.html %}
39+
>
40+
</a>
41+
</div>
42+
43+
<div class="card-description">
4044
{% if include.description %}
4145
<p>
4246
{{ include.description | markdownify | remove: "<p>" | remove: "</p>" }}

_members/kanghoon_lee.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Kanghoon Lee
33
image: people_photos/default.png
44
role: visiting
55
affiliation: KAIST
6-
order: 041
6+
order: 901
77
aliases:
88
- K. Lee
99
- K Lee

_members/marvin-gao.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Marvin Gao
3+
image: people_photos/marvingao.jpg
4+
role: visiting
5+
affiliation: JHU
6+
order: 902
7+
aliases:
8+
- M. Gao
9+
- M Gao
10+
links:
11+
# people-homepage: https://jyao97.github.io/
12+
# people-email: [email protected]
13+
# people-gs: https://scholar.google.com/citations?user=P6I5HF8AAAAJ
14+
# people-office: 344 Winston Chung Hall (WCH)
15+
display_1: 'M.S. Student at JHU'
16+
display_2: 'Summer 2024 -- Present'
17+
---

_members/moustafa_soliman.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Moustafa Soliman
3-
image: people_photos/default.png
3+
image: people_photos/moustafa.jpg
44
role: under
55
affiliation: UC Riverside
66
order: 030

_styles/card_research.scss

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
---
3+
4+
.card {
5+
display: inline-flex;
6+
justify-content: stretch;
7+
align-items: center;
8+
flex-direction: column;
9+
width: 350px;
10+
max-width: calc(100% - 20px - 20px);
11+
margin: 20px;
12+
background: var(--background);
13+
border-radius: var(--rounded);
14+
overflow: hidden;
15+
box-shadow: var(--shadow);
16+
vertical-align: top;
17+
}
18+
19+
.card[data-style="small"] {
20+
width: 250px;
21+
}
22+
23+
.card-image img {
24+
aspect-ratio: 3 / 2;
25+
object-fit: cover;
26+
width: 100%;
27+
// box-shadow: var(--shadow);
28+
}
29+
30+
.card-text {
31+
display: inline-flex;
32+
justify-content: flex-start;
33+
align-items: center;
34+
flex-direction: column;
35+
gap: 20px;
36+
max-width: 100%;
37+
padding: 20px;
38+
}
39+
40+
.card-description {
41+
display: inline-flex;
42+
justify-content: flex-start;
43+
align-items: center;
44+
flex-direction: column;
45+
gap: 20px;
46+
max-width: 96%;
47+
padding: 20px;
48+
}
49+
50+
.card-text > * {
51+
margin: 0 !important;
52+
}
53+
54+
.card-title {
55+
font-family: var(--heading);
56+
font-size: var(--large);
57+
font-weight: var(--semi-bold);
58+
}
59+
60+
.card-subtitle {
61+
margin-top: -10px !important;
62+
font-style: italic;
63+
}

people_photos/marvingao.jpg

187 KB
Loading

people_photos/moustafa.jpg

144 KB
Loading

0 commit comments

Comments
 (0)