feat: enhance event detail and overview pages with improved UI and functionality

- Refactored event_detail.js to include better date formatting, time normalization, and diet label mapping.
- Improved the event detail rendering logic with a more structured layout, including a lightbox for gallery images.
- Updated event_overview.js to support dynamic filtering by location and date, with improved session storage handling.
- Added new SVG assets for location pin and invite logo to enhance visual elements.
This commit is contained in:
viiivo committed 2026-03-27 17:48:03 +01:00
1 parent c1b9bc85f5
commit edd601d330
8 files changed
+1633 -150

No files matched your search

+49 -16
View File
@@ -4,33 +4,66 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event-Overview</title>
<link rel="stylesheet" href="css/event_overview.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bagel+Fat+One&family=Jost:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/event_overview.css">
</head>
<body>
<header class="navbar">
<div class="logo">SOCIAL COOKING</div>
<nav>
<span>Events</span>
<div class="user-profile">M</div>
</nav>
<!-- Top navigation: global entry points and current page indicator -->
<header class="top-nav-wrap">
<div class="top-nav">
<a class="brand" href="index.html" aria-label="Zur Startseite">
<img src="assets/invite-logo.svg" alt="Invite Logo">
</a>
<nav class="top-nav-links" aria-label="Hauptnavigation">
<a class="nav-link active" href="event_overview.html" aria-current="page">Event finden</a>
<a class="nav-link" href="event_create.html">Event erstellen</a>
<a class="profile-pill" href="login.html" aria-label="Profil">M</a>
</nav>
</div>
</header>
<!-- Main content: page headline, filter controls and dynamic event list -->
<main class="container">
<h1>Invité Events</h1>
<!-- Page headline -->
<h1 class="overview-title">Events</h1>
<!-- Filter section: category chips + location/date filters -->
<section class="filter-section">
<p class="filter-label">WORAUF HAST DU LUST</p>
<div class="category-group">
<div class="category-item" data-cat="BRUNCH"><div class="square"></div><span>BRUNCH</span></div>
<div class="category-item" data-cat="LUNCH"><div class="square"></div><span>LUNCH</span></div>
<div class="category-item" data-cat="DINNER"><div class="square"></div><span>DINNER</span></div>
<div class="category-item" data-cat="COFFEE"><div class="square"></div><span>COFFEE</span></div>
<div class="category-item active" data-cat="ALLE"><div class="square"></div><span>ALLE</span></div>
<p class="filter-label">Was darf es sein?</p>
<div class="filter-row">
<!-- Primary category filter buttons -->
<div class="category-group">
<button class="category-item" type="button" data-cat="BRUNCH">BRUNCH</button>
<button class="category-item" type="button" data-cat="LUNCH">LUNCH</button>
<button class="category-item" type="button" data-cat="DINNER">DINNER</button>
<button class="category-item" type="button" data-cat="COFFEE">COFFEE</button>
<button class="category-item active" type="button" data-cat="ALLE">ALLE</button>
</div>
<!-- Secondary filters populated/handled by JavaScript -->
<div class="meta-filter-group" aria-label="Weitere Filter">
<label class="meta-filter" for="location-filter">
<span>Ort</span>
<select id="location-filter">
<option value="ALLE_ORTE">Alle Orte</option>
</select>
</label>
<label class="meta-filter" for="date-filter">
<span>Datum</span>
<input id="date-filter" type="date">
</label>
</div>
</div>
</section>
<!-- Render target: event cards or empty state -->
<section id="event-grid" class="event-list"></section>
</main>
<script src="js/event_overview.js"></script>
<!-- Page logic: data loading, filtering and card rendering -->
<script src="js/event_overview.js"></script>
</body>
</html>