Skip to content

Commit

Permalink
Merge pull request #84 from geo-milev/use-figcaption-in-history
Browse files Browse the repository at this point in the history
Use figcaption in EventView.svelte
  • Loading branch information
MihailMihov authored Sep 21, 2023
2 parents b44802e + 73ac39e commit 1f9d2a3
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions src/lib/EventView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</script>

<div class="container">
<div class="image-title-container">
<div class="image-container">
<div class="image-container">
<figure>
<img src="{env.PUBLIC_SERVER_URL + event.image.url}" alt="{event.image.alt}" loading="lazy"/>
</div>
<p>{event.image.alt}</p>
<figcaption>{event.image.alt}</figcaption>
</figure>
</div>
<div class="text">
<h2>{event.title}</h2>
Expand All @@ -32,12 +32,20 @@
justify-content: center;
}
.image-title-container {
display: flex;
margin-right: 3rem;
flex-direction: column;
.image-container figure figcaption {
font-family: 'Roboto', serif;
font-size: 18px;
line-height: 22px;
font-weight: 300;
color: #FFFFFF;
text-align: start;
overflow: auto;
}
.image-container figure {
margin: 0 3rem 0 0;
}
img {
max-width: 100%;
object-fit: contain;
Expand Down Expand Up @@ -91,5 +99,9 @@
order: -1;
gap: 0;
}
.image-container figure {
margin: 0;
}
}
</style>

0 comments on commit 1f9d2a3

Please sign in to comment.