Skip to content

Commit

Permalink
changed research card styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jyao97 committed Aug 12, 2024
1 parent ed4d170 commit 9fdad3d
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 19 deletions.
38 changes: 21 additions & 17 deletions _includes/card_research.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
{{ " " }}
<div class="card" data-style="{{ include.style }}" style="width: 100%; ">
<div class="card-img" style="aspect-ratio: 5.0; overflow: hidden;">
<a
{% if include.link %}
href="{{ include.link | relative_url }}"
{% endif %}
aria-label="{{ include.title | default: "card link" }}"
class="card-image"
>
<img
src="{{ include.image | relative_url }}"
alt="{{ include.title | default: "card image" }}"
loading="lazy"
style="width: 100%; height: auto; object-fit: contain;"
{% include fallback.html %}
>
</a>
</div>


<div class="card-text">
{% if include.title %}
Expand All @@ -36,7 +20,27 @@
{% if include.subtitle %}
<span class="card-subtitle">{{ include.subtitle }}</span>
{% endif %}
</div>

<div class="card-img" style="aspect-ratio: 5.0; overflow: hidden;">
<a
{% if include.link %}
href="{{ include.link | relative_url }}"
{% endif %}
aria-label="{{ include.title | default: "card link" }}"
class="card-image"
>
<img
src="{{ include.image | relative_url }}"
alt="{{ include.title | default: "card image" }}"
loading="lazy"
style="width: 100%; height: auto; object-fit: contain;"
{% include fallback.html %}
>
</a>
</div>

<div class="card-description">
{% if include.description %}
<p>
{{ include.description | markdownify | remove: "<p>" | remove: "</p>" }}
Expand Down
2 changes: 1 addition & 1 deletion _members/kanghoon_lee.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Kanghoon Lee
image: people_photos/default.png
role: visiting
affiliation: KAIST
order: 041
order: 901
aliases:
- K. Lee
- K Lee
Expand Down
17 changes: 17 additions & 0 deletions _members/marvin-gao.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Marvin Gao
image: people_photos/marvingao.jpg
role: visiting
affiliation: JHU
order: 902
aliases:
- M. Gao
- M Gao
links:
# people-homepage: https://jyao97.github.io/
# people-email: [email protected]
# people-gs: https://scholar.google.com/citations?user=P6I5HF8AAAAJ
# people-office: 344 Winston Chung Hall (WCH)
display_1: 'M.S. Student at JHU'
display_2: 'Summer 2024 -- Present'
---
2 changes: 1 addition & 1 deletion _members/moustafa_soliman.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Moustafa Soliman
image: people_photos/default.png
image: people_photos/moustafa.jpg
role: under
affiliation: UC Riverside
order: 030
Expand Down
63 changes: 63 additions & 0 deletions _styles/card_research.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
---

.card {
display: inline-flex;
justify-content: stretch;
align-items: center;
flex-direction: column;
width: 350px;
max-width: calc(100% - 20px - 20px);
margin: 20px;
background: var(--background);
border-radius: var(--rounded);
overflow: hidden;
box-shadow: var(--shadow);
vertical-align: top;
}

.card[data-style="small"] {
width: 250px;
}

.card-image img {
aspect-ratio: 3 / 2;
object-fit: cover;
width: 100%;
// box-shadow: var(--shadow);
}

.card-text {
display: inline-flex;
justify-content: flex-start;
align-items: center;
flex-direction: column;
gap: 20px;
max-width: 100%;
padding: 20px;
}

.card-description {
display: inline-flex;
justify-content: flex-start;
align-items: center;
flex-direction: column;
gap: 20px;
max-width: 96%;
padding: 20px;
}

.card-text > * {
margin: 0 !important;
}

.card-title {
font-family: var(--heading);
font-size: var(--large);
font-weight: var(--semi-bold);
}

.card-subtitle {
margin-top: -10px !important;
font-style: italic;
}
Binary file added people_photos/marvingao.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added people_photos/moustafa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9fdad3d

Please sign in to comment.