diff --git a/resources/js/guest/pages/GalleryPage.tsx b/resources/js/guest/pages/GalleryPage.tsx index bf1c240..860a6ef 100644 --- a/resources/js/guest/pages/GalleryPage.tsx +++ b/resources/js/guest/pages/GalleryPage.tsx @@ -307,68 +307,64 @@ export default function GalleryPage() { return ( - - - -
-
-
- -
-
-

{t('galleryPage.title')}

-

{t('galleryPage.subtitle')}

+
+
+ + + +
+
+
+ +
+
+

{t('galleryPage.title')}

+

{t('galleryPage.subtitle')}

+
+ + {newCount > 0 ? ( + + ) : ( + + {newPhotosBadgeText} + + )}
- {newCount > 0 ? ( - - ) : ( - - {newPhotosBadgeText} - - )} -
+
+ +
+ - - - -
- -
-
- {loading && ( - - {t('galleryPage.loading', 'Lade…')} - - )} - - + {loading && ( + + {t('galleryPage.loading', 'Lade…')} + + )} + {list.map((p: GalleryPhoto) => { const imageUrl = normalizeImageUrl(p.thumbnail_path || p.file_path); const createdLabel = p.created_at @@ -397,75 +393,70 @@ export default function GalleryPage() { openPhoto(); } }} - className="group relative overflow-hidden border border-white/40 bg-white text-white shadow-md ring-1 ring-black/5 transition duration-300 hover:-translate-y-0.5 hover:shadow-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-pink-400 dark:border-white/10 dark:bg-slate-950 dark:ring-white/10" + className="group flex flex-col overflow-hidden border border-border/60 bg-white shadow-sm ring-1 ring-black/5 transition duration-300 hover:-translate-y-0.5 hover:shadow-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-pink-400 dark:border-white/10 dark:bg-slate-950 dark:ring-white/10" style={{ borderRadius: radius }} {...fadeScaleMotion} > - {altText} { - (e.target as HTMLImageElement).src = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjRjNGNEY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxNCIgZmlsbD0iIzk5OSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPk5vIEltYWdlPC90ZXh0Pjwvc3ZnPg=='; - }} - loading="lazy" - /> -
-
+
+ {altText} { + (e.target as HTMLImageElement).src = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSIjRjNGNEY2Ii8+PHRleHQgeD0iNTAlIiB5PSI1MCUiIGZvbnQtZmFtaWx5PSJBcmlhbCIgZm9udC1zaXplPSIxNCIgZmlsbD0iIzk5OSIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZHk9Ii4zZW0iPk5vIEltYWdlPC90ZXh0Pjwvc3ZnPg=='; + }} + loading="lazy" + /> +
+
+
{localizedTaskTitle && (

{localizedTaskTitle}

)} -
- {createdLabel} - - {p.uploader_name || t('galleryPage.photo.anonymous', 'Gast')} - +
+ {createdLabel} + {p.uploader_name || t('galleryPage.photo.anonymous', 'Gast')} +
+
+ +
-
-
- -
); @@ -486,8 +477,8 @@ export default function GalleryPage() { ))} - - + +
{currentPhotoIndex !== null && list.length > 0 && (