added drawings to feed

This commit is contained in:
2026-04-06 20:20:56 +02:00
parent c385e66162
commit 56f7b1c847
3 changed files with 235 additions and 65 deletions

View File

@@ -3,7 +3,7 @@
export interface GalleryImage {
src: string;
alt: string;
desc: string;
desc: string[];
}
let {
@@ -36,7 +36,11 @@
<button class="gallery-button" onclick={galleryBack}>&lt;</button>
<div class="gallery-text-container">
<p class="gallery-index">{currentIndex + 1} / {images.length}</p>
<p>{@html images[currentIndex].desc}</p>
<div class="gallery-desc-container">
{#each images[currentIndex].desc as d}
<p>{@html d}</p>
{/each}
</div>
</div>
<button class="gallery-button" onclick={galleryForward}>&gt;</button>
</div>
@@ -107,6 +111,17 @@
height: fit-content;
font-size: 1.0rem;
line-height: 1.4rem;
/* margin: 0; */
}
.gallery-desc-container {
margin-bottom: 12px;
display: flex;
flex-direction: column;
gap: 4px;
}
.gallery-desc-container p {
margin: 0;
}
.gallery-button-container {