Skip to content

Commit

Permalink
Gallery Restyling
Browse files Browse the repository at this point in the history
  • Loading branch information
s7uck committed Dec 25, 2024
1 parent 9436680 commit cc170ad
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions gallery.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,23 @@ permalink: /gallery
---

<style>
main { max-width: 120ch;}
.card {
width: 40%;
width: 35%;
padding: 0;
row-gap: 0;
overflow: hidden;
flex-grow: 1;
}
.card.big { width: 57%;}
figcaption { padding: 1em;}
.card.big { width: 47.5%;}
figcaption {
padding: 1em;
position: absolute;
background: linear-gradient(#1e1e1eaa, transparent);
width: 51%;
font-family: 'Space Grotesk';
backdrop-filter: blur(4px);
}
.card img {
height: 100%;
object-fit: cover;
Expand All @@ -27,15 +35,11 @@ permalink: /gallery
<img src="{{ photo.image }}" alt="{{ photo.title }}">

<figcaption>
<small>
{{ photo.date | date: "%-d %B %Y" }}
</small>
{% if photo.title %}<big>
{{ photo.title }}
</big>{% endif %}

<small>
<img class="icon" src="/images/camera.svg" alt="Camera"> {{ photo.camera }} <img class="icon" src="/images/location.svg" alt="Location"> {{ photo.location }}
<img class="icon" src="/images/camera.svg" alt="Camera"> {{ photo.camera }} · <img class="icon" src="/images/location.svg" alt="Location"> {{ photo.location }} · {{ photo.date | date: "%-d %B %Y %h:%m:%s" }}
</small>
</figcaption>
</li>{% endfor %}
Expand Down

0 comments on commit cc170ad

Please sign in to comment.