feat: front-end overhaul. added search, editing, event view, validation

This commit is contained in:
2025-05-19 04:36:28 +02:00
parent 82936633f1
commit ace54fb4ef
20 changed files with 490 additions and 89 deletions

View File

@@ -56,7 +56,7 @@
<!-- Main content -->
<div class="main">
<div class="position-relative search-bar">
<input type="text" class="form-control pe-5" placeholder="" />
<input type="text" class="form-control pe-5" placeholder="" id="searchbar"/>
<span class="position-absolute top-50 end-0 translate-middle-y me-3">
<svg xmlns="http://www.w3.org/2000/svg" height="30px" viewBox="0 -960 960 960" width="30px" fill="#2898BD"><path d="M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z" /></svg>
</span>
@@ -79,8 +79,7 @@
<div id="eventList" class="d-grid gap-3">
<!-- Karty wydarzeń będą ładowane tutaj -->
<div class="event-card filled">
<span>Event Title</span>
<button class="remove-btn delete-btn" data-id="5"><svg xmlns="http://www.w3.org/2000/svg" height="30px" viewBox="0 -960 960 960" width="30px" fill="#FFFFFF"><path d="M280-440h400v-80H280v80ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z" /></svg></button> <!-- Przyciski usuwania z ID -->
<span>Loading events... please wait.</span>
</div>
</div>
</div>