From da0cac463b9ed9974681cf80087c63f4a643e2f2 Mon Sep 17 00:00:00 2001 From: Karolina T Date: Mon, 1 Jun 2026 13:14:47 +0200 Subject: [PATCH] Improved authorization, added link to event cards --- .DS_Store | Bin 0 -> 6148 bytes css/main.css | 28 ++++++++++++++- index.html | 4 +-- js/.DS_Store | Bin 0 -> 6148 bytes js/app.js | 24 +++++++++++++ js/services/eventService.js | 5 +-- js/ui/eventCard.js | 18 +++++++++- server/server.js | 66 +++++++++++++++++++++++++++++++----- 8 files changed, 130 insertions(+), 15 deletions(-) create mode 100644 .DS_Store create mode 100644 js/.DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..1910a231b508081d9e6bf29bce6cb9ce0dc2b172 GIT binary patch literal 6148 zcmeHKy-or_5S|4>h+0sXNO=Xlp)yvU1bqQ&BLe=!a2^4%G*?mTOIX|ZSJ>HTY2gdl znArIUezUv4?VYHN#+Vth`|a(_?96_9x62Zdst(!}q9PF$P#AMFs6G(Zb4f|Y_RIs7 z9^;Vuo!v^k6$aguwR8vr!oXi+fWO^5ZBZY;ZTk58b@V}4t2H}e6Mlu|oy*sai~H5& z7(v+n(x$tY+9$Hq;ym0PWc>`ITTMLn($&fH&5Mpb)=r|PwQjry2Bi$`C!-A?M*ZMd$&)Z34E!qwRIXO9 zRWT)dwx%Y>XRU|QKw)9K$e?yXWshUs;G?*Nq6IpS8$jP;WDq?N`6HldkV+W%RR-Px DKuxly literal 0 HcmV?d00001 diff --git a/css/main.css b/css/main.css index 0b4e001..15e187e 100644 --- a/css/main.css +++ b/css/main.css @@ -310,7 +310,10 @@ main { SECTION (EVENTS / SAVED / INVITATIONS) ========================= */ .events-section { - padding: 2.5rem 0 1rem; + /* Keep content away from the phone edges. + The section also has Bootstrap's .container class, but this rule appears later + and would otherwise overwrite the container's left/right padding with 0. */ + padding: 2.5rem 1rem 1rem; } .events-section h2 { @@ -336,6 +339,7 @@ main { flex-direction: column; gap: 1rem; max-width: 640px; + width: 100%; } /* ========================= @@ -408,6 +412,28 @@ main { margin: 0; } + +/* ========================= + MOBILE SPACING FIX + Prevent cards/text from touching the viewport edges +========================= */ +@media (max-width: 575.98px) { + .events-section { + padding-left: 1rem; + padding-right: 1rem; + } + + .event-card, + .invitation-card { + padding: 1rem; + } + + .invitation-card .d-flex, + .event-card .d-flex { + flex-wrap: wrap; + } +} + /* ========================= TABLET (≥768px) ========================= */ diff --git a/index.html b/index.html index 7d11fd8..a95e5c2 100644 --- a/index.html +++ b/index.html @@ -27,7 +27,7 @@