Tipp
This commit is contained in:
@@ -8,7 +8,7 @@ Anzahl Gruppen: **41**
|
|||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| Bubus | admin | `Bubu!Herz24#` | Svenja, Dominic |
|
| Bubus | admin | `Bubu!Herz24#` | Svenja, Dominic |
|
||||||
| Remi | guest | `Remi#Ring24!` | Remi |
|
| Remi | guest | `Remi#Ring24!` | Remi |
|
||||||
| Chantal | guest | `Chan!Tanz24#` | Chantal |
|
| Chantal |
|
||||||
| Madeleine | guest | `Madi$Rose24!` | Madeleine |
|
| Madeleine | guest | `Madi$Rose24!` | Madeleine |
|
||||||
| Julie & Daniel | guest | `Juli&Dan24!#` | Julie, Daniel |
|
| Julie & Daniel | guest | `Juli&Dan24!#` | Julie, Daniel |
|
||||||
| Tim & Sophie | guest | `Tim+Sofi24!#` | Tim, Sophie |
|
| Tim & Sophie | guest | `Tim+Sofi24!#` | Tim, Sophie |
|
||||||
|
|||||||
Binary file not shown.
@@ -455,6 +455,7 @@ TEXTS = {
|
|||||||
"gallery_uploaded_by": "von {name}",
|
"gallery_uploaded_by": "von {name}",
|
||||||
"gallery_empty": "Noch keine Bilder vorhanden.",
|
"gallery_empty": "Noch keine Bilder vorhanden.",
|
||||||
"gallery_image_alt": "Upload von {name}",
|
"gallery_image_alt": "Upload von {name}",
|
||||||
|
"gallery_save_hint": "Tipp: Halte das Bild länger gedrückt, um es in deiner Mediathek zu speichern.",
|
||||||
"flash_enter_group_name": "Bitte Gruppenname eingeben.",
|
"flash_enter_group_name": "Bitte Gruppenname eingeben.",
|
||||||
"flash_invalid_group_login": "Ungültiger Gruppenname oder Passwort.",
|
"flash_invalid_group_login": "Ungültiger Gruppenname oder Passwort.",
|
||||||
"flash_rsvp_select": "Bitte für alle Mitglieder eine RSVP-Auswahl treffen.",
|
"flash_rsvp_select": "Bitte für alle Mitglieder eine RSVP-Auswahl treffen.",
|
||||||
@@ -728,6 +729,7 @@ TEXTS = {
|
|||||||
"gallery_uploaded_by": "by {name}",
|
"gallery_uploaded_by": "by {name}",
|
||||||
"gallery_empty": "No photos available yet.",
|
"gallery_empty": "No photos available yet.",
|
||||||
"gallery_image_alt": "Uploaded by {name}",
|
"gallery_image_alt": "Uploaded by {name}",
|
||||||
|
"gallery_save_hint": "Tip: Touch and hold the photo to save it to your photo library.",
|
||||||
"flash_enter_group_name": "Please enter group name.",
|
"flash_enter_group_name": "Please enter group name.",
|
||||||
"flash_invalid_group_login": "Invalid group name or password.",
|
"flash_invalid_group_login": "Invalid group name or password.",
|
||||||
"flash_rsvp_select": "Please choose RSVP values for all members.",
|
"flash_rsvp_select": "Please choose RSVP values for all members.",
|
||||||
|
|||||||
@@ -1412,6 +1412,29 @@ input[type="file"]:focus {
|
|||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lightbox-save-hint {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 4;
|
||||||
|
left: 50%;
|
||||||
|
bottom: 1rem;
|
||||||
|
width: min(78vw, 34rem);
|
||||||
|
padding: 0.65rem 0.9rem;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: rgba(20, 20, 20, 0.78);
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
text-align: center;
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
transform: translate(-50%, 0.5rem);
|
||||||
|
transition: opacity 220ms ease, transform 220ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lightbox-save-hint.is-visible {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translate(-50%, 0);
|
||||||
|
}
|
||||||
|
|
||||||
.lightbox-nav {
|
.lightbox-nav {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
<button class="lightbox-nav lightbox-prev" type="button" aria-label="Previous image">‹</button>
|
<button class="lightbox-nav lightbox-prev" type="button" aria-label="Previous image">‹</button>
|
||||||
<img class="lightbox-image" id="lightbox-image" alt="" />
|
<img class="lightbox-image" id="lightbox-image" alt="" />
|
||||||
<button class="lightbox-nav lightbox-next" type="button" aria-label="Next image">›</button>
|
<button class="lightbox-nav lightbox-next" type="button" aria-label="Next image">›</button>
|
||||||
|
<div class="lightbox-save-hint" id="lightbox-save-hint" role="status">{{ t('gallery_save_hint') }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -48,6 +49,7 @@
|
|||||||
const lightboxImage = document.getElementById("lightbox-image");
|
const lightboxImage = document.getElementById("lightbox-image");
|
||||||
const lightboxDownload = document.getElementById("lightbox-download");
|
const lightboxDownload = document.getElementById("lightbox-download");
|
||||||
const lightboxCounter = document.getElementById("lightbox-counter");
|
const lightboxCounter = document.getElementById("lightbox-counter");
|
||||||
|
const saveHint = document.getElementById("lightbox-save-hint");
|
||||||
const closeBtn = lightbox.querySelector(".lightbox-close");
|
const closeBtn = lightbox.querySelector(".lightbox-close");
|
||||||
const prevBtn = lightbox.querySelector(".lightbox-prev");
|
const prevBtn = lightbox.querySelector(".lightbox-prev");
|
||||||
const nextBtn = lightbox.querySelector(".lightbox-next");
|
const nextBtn = lightbox.querySelector(".lightbox-next");
|
||||||
@@ -67,6 +69,7 @@
|
|||||||
let touchStartY = 0;
|
let touchStartY = 0;
|
||||||
let didSwipe = false;
|
let didSwipe = false;
|
||||||
let controlsTimer = null;
|
let controlsTimer = null;
|
||||||
|
let hintTimer = null;
|
||||||
|
|
||||||
const scheduleHideControls = () => {
|
const scheduleHideControls = () => {
|
||||||
clearTimeout(controlsTimer);
|
clearTimeout(controlsTimer);
|
||||||
@@ -105,6 +108,9 @@
|
|||||||
lightbox.setAttribute("aria-hidden", "false");
|
lightbox.setAttribute("aria-hidden", "false");
|
||||||
document.body.classList.add("no-scroll");
|
document.body.classList.add("no-scroll");
|
||||||
showControlsTemporarily();
|
showControlsTemporarily();
|
||||||
|
saveHint.classList.add("is-visible");
|
||||||
|
clearTimeout(hintTimer);
|
||||||
|
hintTimer = window.setTimeout(() => saveHint.classList.remove("is-visible"), 5000);
|
||||||
};
|
};
|
||||||
|
|
||||||
const closeLightbox = () => {
|
const closeLightbox = () => {
|
||||||
@@ -113,6 +119,8 @@
|
|||||||
document.body.classList.remove("no-scroll");
|
document.body.classList.remove("no-scroll");
|
||||||
lightbox.classList.remove("lightbox-controls-hidden");
|
lightbox.classList.remove("lightbox-controls-hidden");
|
||||||
clearTimeout(controlsTimer);
|
clearTimeout(controlsTimer);
|
||||||
|
clearTimeout(hintTimer);
|
||||||
|
saveHint.classList.remove("is-visible");
|
||||||
};
|
};
|
||||||
|
|
||||||
openButtons.forEach((link) => {
|
openButtons.forEach((link) => {
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user