Skip to content

Commit

Permalink
Update group.html
Browse files Browse the repository at this point in the history
  • Loading branch information
afaji authored Nov 23, 2024
1 parent 84a39bc commit f959c5e
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions _pages/group.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,25 @@
}

.card-title {
font-size: 0.85rem; /* Smaller font for titles */
font-size: 0.75rem; /* Smaller font for titles */
font-weight: bold;
}

.card-text {
font-size: 0.7rem; /* Smaller font for details */
font-size: 0.6rem; /* Smaller font for details */
line-height: 1.2;
}

a.card-link {
text-decoration: none;
color: inherit;
}

.image-container {
width: 100%;
padding-top: 100%; /* Maintains square aspect ratio */
position: relative;
}
</style>

<div class="container my-5">
Expand All @@ -85,8 +93,8 @@ <h2 class="text-uppercase text-center mb-4">{{ category }}</h2>
{% for person in people_in_category %}
<div class="col">
<a href="{{ person.website }}" class="card-link" target="_blank">
<div class="card h-100 text-center border-0 position-relative">
<div style="position: relative; height: 250px;">
<div class="card h-100 text-center border-0">
<div class="image-container">
<img src="{{ person.photo }}" class="main-photo" alt="{{ person.name }}">
{% if person.alt_photo %}
<img src="{{ person.alt_photo }}" class="alt-photo" alt="Alternate Photo of {{ person.name }}">
Expand Down Expand Up @@ -130,8 +138,8 @@ <h2 class="text-uppercase text-center mb-4">Alumni</h2>
{% for person in alumni %}
<div class="col">
<a href="{{ person.website }}" class="card-link" target="_blank">
<div class="card h-100 text-center border-0 position-relative">
<div style="position: relative; height: 150px;">
<div class="card h-100 text-center border-0">
<div class="image-container">
<img src="{{ person.photo }}" class="main-photo" alt="{{ person.name }}">
{% if person.alt_photo %}
<img src="{{ person.alt_photo }}" class="alt-photo" alt="Alternate Photo of {{ person.name }}">
Expand Down

0 comments on commit f959c5e

Please sign in to comment.