From 3e8c5322bc5eb7f001185c087e5f6cb3a7ad8ea6 Mon Sep 17 00:00:00 2001 From: torsten Date: Sun, 22 Nov 2026 10:22:42 +0100 Subject: [PATCH] Tourenplan: gemeinsames Listen-Partial, neuer Seitenkopf und Jahres-Pillen --- motorradig/public/css/custom.css | 308 +++++++++++++++++++++--- motorradig/views/tour/index.php | 82 +++---- motorradig/views/tour/index_old.php | 60 ++--- motorradig/views/tour/partials/list.php | 61 +++++ 4 files changed, 401 insertions(+), 110 deletions(-) create mode 100644 motorradig/views/tour/partials/list.php diff --git a/motorradig/public/css/custom.css b/motorradig/public/css/custom.css index e3386d6..b5c4653 100644 --- a/motorradig/public/css/custom.css +++ b/motorradig/public/css/custom.css @@ -644,14 +644,14 @@ p { border-color: #1d5bc4; } -/* Alte Touren: Jahres-Pillen und Gruppierung */ +/* Tourenplan: Seitenkopf, Jahres-Pillen und Gruppierung */ .tour-years { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; - max-width: 760px; - margin: 1.25rem auto 2rem; + max-width: 860px; + margin: .5rem auto 1.75rem; } .tour-year-pill { @@ -687,16 +687,132 @@ p { box-shadow: 0 8px 20px rgba(78, 161, 255, .35); } -.tour-years-empty { - margin-top: 2rem; +.tour-page { + max-width: 960px; + margin-top: 1.5rem; + margin-bottom: 3rem; + color: #e2e8f0; +} + +.tour-page-head { + display: flex; + flex-wrap: wrap; + align-items: flex-end; + justify-content: space-between; + gap: 1rem 1.5rem; + margin-bottom: 1.5rem; + padding-bottom: 1.25rem; + border-bottom: 1px solid rgba(255, 255, 255, .12); +} + +.tour-page-heading { + min-width: 0; +} + +.tour-page-kicker { + margin: 0 0 .35rem; + color: #7fb2ff; + font-size: .72rem; + font-weight: 700; + letter-spacing: .16em; + text-transform: uppercase; +} + +.tour-page-title { + margin: 0; + color: #f8fafc; + font-size: 1.85rem; + font-weight: 800; + letter-spacing: -.01em; +} + +.tour-page-lead { + margin: .4rem 0 0; + color: #9fb3cd; + font-size: .95rem; +} + +.tour-page-actions { + display: flex; + flex-wrap: wrap; + gap: .5rem; +} + +.tour-page-actions .btn { + display: inline-flex; + align-items: center; + gap: .45rem; + padding: .48rem .95rem; + border-radius: 999px; + font-size: .86rem; + font-weight: 600; + line-height: 1.35; +} + +.tour-page-actions .btn i { + font-size: .9em; +} + +.tour-page-actions .btn-outline-light { + border-color: rgba(255, 255, 255, .45); + color: #e6edf6; +} + +.tour-page-actions .btn-outline-light:hover, +.tour-page-actions .btn-outline-light:focus { + background: rgba(255, 255, 255, .14); + border-color: rgba(255, 255, 255, .65); + color: #fff; +} + +.tour-page-actions .btn-primary { + background: #4ea1ff; + border-color: #4ea1ff; + color: #071a30; +} + +.tour-page-actions .btn-primary:hover, +.tour-page-actions .btn-primary:focus { + background: #6cb4ff; + border-color: #6cb4ff; + color: #071a30; +} + +.tour-alert { + border-radius: 12px; + font-size: .9rem; +} + +.tour-empty { + margin-top: 1.5rem; + padding: 2.25rem 1.25rem; + border: 1px dashed rgba(255, 255, 255, .18); + border-radius: 16px; + background: rgba(13, 17, 23, .55); + color: #9fb3cd; + text-align: center; +} + +.tour-empty i { + display: block; + margin-bottom: .6rem; + font-size: 1.6rem; + color: #4ea1ff; +} + +.tour-empty p { + margin: 0; } .tour-year-group { - max-width: 760px; + max-width: 860px; margin: 0 auto 2rem; } .tour-year-heading { + display: flex; + align-items: baseline; + gap: .55rem; margin: 0 0 .85rem; color: #fff; font-size: 1.35rem; @@ -704,83 +820,199 @@ p { letter-spacing: .02em; } +.tour-year-count { + color: #9fb3cd; + font-size: .82rem; + font-weight: 600; + letter-spacing: .01em; +} + .tour-list { + display: grid; + gap: .6rem; + margin: 0; + padding: 0; + list-style: none; text-align: left; } .tour-list-item { + position: relative; display: flex; - flex-wrap: wrap; align-items: center; justify-content: space-between; - gap: .65rem 1rem; - background: rgba(13, 17, 23, .72); - border-color: rgba(255, 255, 255, .14); - color: #fff; + gap: 1rem; + padding: .95rem 1.15rem; + background: #f8fafc; + border: 1px solid #e2e8f0; + border-radius: 14px; + color: #0f172a; + box-shadow: 0 8px 20px rgba(3, 10, 24, .16); + transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; +} + +.tour-list-item:hover, +.tour-list-item:focus-within { + transform: translateY(-2px); + border-color: #4ea1ff; + box-shadow: 0 14px 30px rgba(3, 10, 24, .26); +} + +.tour-list-item:focus-within { + outline: 2px solid #4ea1ff; + outline-offset: 2px; +} + +.tour-list-item.is-cancelled { + background: #fdf3f3; + border-color: #f1c9cc; } .tour-list-link { - display: flex; - flex-wrap: wrap; - align-items: baseline; - gap: .35rem .6rem; - color: #fff; + position: absolute; + inset: 0; + z-index: 1; + border-radius: 14px; + color: inherit; text-decoration: none; } -.tour-list-link:hover, .tour-list-link:focus { - color: #9cc9ff; - text-decoration: none; + outline: none; +} + +.tour-list-body { + display: grid; + gap: .18rem; + min-width: 0; +} + +.tour-list-period { + color: #2563eb; + font-size: .78rem; + font-weight: 700; + letter-spacing: .04em; + text-transform: uppercase; + font-variant-numeric: tabular-nums; } .tour-list-title { - font-weight: 600; + color: #0f172a; + font-size: 1.02rem; + font-weight: 700; + line-height: 1.3; +} + +.tour-list-item:hover .tour-list-title { + color: #1d4ed8; } .tour-list-meta { - color: rgba(255, 255, 255, .72); + display: flex; + flex-wrap: wrap; + gap: .15rem 1rem; + margin-top: .1rem; + color: #64748b; + font-size: .82rem; font-variant-numeric: tabular-nums; } +.tour-meta-item { + display: inline-flex; + align-items: center; + gap: .35rem; +} + +.tour-meta-item i { + color: #94a3b8; + font-size: .85em; +} + +.tour-meta-link { + position: relative; + z-index: 2; + color: #2563eb; + font-weight: 600; + text-decoration: none; +} + +.tour-meta-link:hover, +.tour-meta-link:focus { + color: #1d4ed8; + text-decoration: underline; +} + +.tour-meta-item.is-joined { + color: #15803d; + font-weight: 600; +} + +.tour-meta-item.is-joined i { + color: #15803d; +} + .tour-list-actions { display: inline-flex; - flex-wrap: wrap; align-items: center; - gap: .7rem; -} - -.tour-gallery-link { - color: #9cc9ff; - text-decoration: none; -} - -.tour-gallery-link:hover, -.tour-gallery-link:focus { - color: #fff; - text-decoration: underline; -} - -.tour-list-actions .badge { + gap: .75rem; flex-shrink: 0; } +.tour-list-chevron { + color: #94a3b8; + font-size: .8rem; + transition: transform .15s ease, color .15s ease; +} + +.tour-list-item:hover .tour-list-chevron { + color: #2563eb; + transform: translateX(2px); +} + @media (max-width: 575.98px) { .tour-year-pill { min-width: 3.7rem; padding: .4rem .9rem; } + .tour-page-head { + align-items: flex-start; + } + + .tour-page-title { + font-size: 1.55rem; + } + .tour-list-item { align-items: flex-start; + padding: .85rem .9rem; + } + + .tour-list-title { + font-size: .97rem; + } + + .tour-list-actions { flex-direction: column; + align-items: flex-end; + gap: .5rem; + } + + .tour-list-chevron { + display: none; } } @media (prefers-reduced-motion: reduce) { - .tour-year-pill { + .tour-year-pill, + .tour-list-item, + .tour-list-chevron { transition: none; } + + .tour-list-item:hover { + transform: none; + } } /* Einzel-Tourenansicht: einheitliche Karten, bündige Faktenzeilen */ diff --git a/motorradig/views/tour/index.php b/motorradig/views/tour/index.php index 9997b9b..560a08c 100644 --- a/motorradig/views/tour/index.php +++ b/motorradig/views/tour/index.php @@ -1,6 +1,4 @@ -
-

Tourenplan: aktuelle Touren

+
+
+
+

Tourenplan

+

Aktuelle Touren

+

Termine, freie Plätze und Anmeldung auf einen Blick.

+
+ + +
- + - + - - -

Es sind aktuell keine Touren geplant.

+
+ +

Es sind aktuell keine Touren geplant.

+
diff --git a/motorradig/views/tour/index_old.php b/motorradig/views/tour/index_old.php index bf9b174..83d0561 100644 --- a/motorradig/views/tour/index_old.php +++ b/motorradig/views/tour/index_old.php @@ -1,6 +1,4 @@ -
-

Tourenplan: alte Touren

+
+
+
+

Tourenplan

+

Abgeschlossene Touren

+

Rückblick auf alle gefahrenen Touren mit Bildern und Teilnehmern.

+
- + +
-

Es sind noch keine abgeschlossenen Touren vorhanden.

+
+ +

Es sind noch keine abgeschlossenen Touren vorhanden.

+