From 95f75d9bb1022407915da2eba5e9245e8b9e2ee4 Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Fri, 1 Aug 2025 00:30:54 +0200 Subject: [PATCH] fix: photo credit text placement --- src/app/globals.css | 1 + src/components/page-sections/events.module.css | 6 ++++++ src/components/page-sections/events.tsx | 4 +--- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index defb898..82f99bf 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -224,6 +224,7 @@ section h2 { .photo-credit:hover { color: var(--light-text-color); text-align: end; + place-self: end; } @media (min-width: 70em) { .no-mobile { diff --git a/src/components/page-sections/events.module.css b/src/components/page-sections/events.module.css index 8552aa6..d4387f5 100644 --- a/src/components/page-sections/events.module.css +++ b/src/components/page-sections/events.module.css @@ -82,6 +82,12 @@ .card { padding: 2em; } + .image { + display: flex; + flex-direction: column; + align-items: stretch; + justify-content: center; + } } .readMore { diff --git a/src/components/page-sections/events.tsx b/src/components/page-sections/events.tsx index d1f81e2..fedd22f 100644 --- a/src/components/page-sections/events.tsx +++ b/src/components/page-sections/events.tsx @@ -89,9 +89,7 @@ const Events = async () => { style={{ borderRadius: "1rem", objectFit: "cover", height: "100%" }} alt="Medlemmer spiller brettspill" /> -
-

Foto: 장태민, Studentenes Fotoklubb

-
+

Foto: 장태민, Studentenes Fotoklubb