Author SHA1 Message Date
viiivo e3ac1a11f0 Update event dates and participant handling; adjust visibility window to 24 hours 2026-04-21 19:51:13 +02:00
viiivo fa8a7f1fc2 Add FAQ section, back button, and info modal to event pages; update styles and scripts 2026-04-21 19:39:15 +02:00
oswaldsimona 24dc61a887 Icon Event-Beschrieb hinzugefügt 2026-04-21 15:04:39 +02:00
oswaldsimona e17a41509c Icon Gast 2026-04-21 14:13:01 +02:00
oswaldsimona add5c3eb05 Anpassungen Startseite, Footer, diversers Styling auf allen Seiten 2026-04-21 13:48:48 +02:00
oswaldsimona 540754d7d0 Logout-Button in Navigation 2026-04-20 22:18:14 +02:00
oswaldsimona 28e1647749 Anpassungen Details 2026-04-18 00:09:58 +02:00
oswaldsimona 536df27e57 Anpassungen Login Signup 2026-04-17 23:55:12 +02:00
oswaldsimona 01e30bfb64 Anpassung Event Detail II 2026-04-17 23:54:19 +02:00
oswaldsimona db939c6660 Anpassungen Event Detail 2026-04-17 23:50:58 +02:00
oswaldsimona 433743069c Anpassungen Event Uebersicht II 2026-04-17 16:09:35 +02:00
oswaldsimona 23f3e85543 Anpassungen Event Übersicht 2026-04-17 15:15:50 +02:00
oswaldsimona 2015454f6c Anpassung Progress Bar Event erstellen 2026-04-17 09:57:41 +02:00
oswaldsimona 9a2c66e026 Anpassung primary-button, badge und Event erstellen 2026-04-15 10:35:35 +02:00
viiivo 9d763b3680 Funktioniert doch nicht also gelöscht 2026-04-12 17:22:54 +02:00
vonburvivien 1c6dcea906 Netlify Deploy Code
Deploy to Netlify / deploy (push) Has been cancelled
Hosting auf Netlify für einfachere User Test
2026-04-12 17:19:52 +02:00
Estelle Köhler 027f722d69 feat: Abmeldefrist-Hinweis auf Event-Detailseite, .hidden fix 2026-04-12 17:16:34 +02:00
Estelle Köhler e91cd8572e fix: proper umlauts across all files, simplify gallery upload, fix Menu spelling, show local events in overview 2026-04-12 15:37:31 +02:00
Estelle Köhler e805abbf12 feat: lightbox gallery, event create UX improvements, cancel modal, footer consistency, Swiss German fixes 2026-04-12 15:18:40 +02:00
Estelle Köhler 4b54c48311 Add snackbar feedback, logout modal, profile pill nav, calendar styling, fix image paths and signup flow 2026-04-12 14:19:09 +02:00
Estelle Köhler 221aa90649 Refactor hero section, update how-it-works cards, add Instagram invite + footer to all pages 2026-04-12 13:43:36 +02:00
Estelle Köhler 5ee62ff604 Resolve merge conflicts and fix styling issues
- Resolve all merge conflicts from main branch pull
- Fix CSS load order: global stylesheet before page-specific on all pages
- Add navigation.js to impressum.html and datenschutz.html
- Unify nav classes across all pages (nav-tab-links + button-small)
- Add footer styles to global stylesheet
- Remove duplicate landingpage.css (redundant with index.css)
- Fix duplicate head/body tags in event_detail.html
- Merge login.js: keep user auth logic + snackbar support
- Merge index-carousel.js: keep dots + responsive resize handling
2026-04-12 10:49:17 +02:00
viiivo d04a7e07de feat: Update CSS styles and enhance JavaScript functionality for event visibility and navigation
Added Comments for easier understanding of code
2026-04-10 18:16:03 +02:00
viiivo c3bea2817c feat: Enhance profile page with tab navigation and event management features
Fix Event anmeldung und abmeldung Button.

12h vor Event beginn wird Adresse angezeigt.
2026-04-10 18:05:46 +02:00
viiivo 1efa4dcd39 feat: Implement user profile management and navigation updates
- Added a new profile page (my_profil.html) for users to manage their events and personal information.
- Introduced a new CSS file (my_profil.css) for styling the profile page.
- Created a JavaScript file (my_profil.js) to handle profile data retrieval, event registration management, and form submission.
- Updated navigation logic (navigation.js) to dynamically display login/signup or event management links based on user authentication status.
- Enhanced event creation and detail pages to support user-specific actions (registration/unregistration).
- Improved login and signup processes to handle user data more robustly, including fallback user creation.
- Refactored event overview to show user-specific events and registrations.
- Added error handling and validation for user input in profile management.
2026-04-10 16:28:44 +02:00
Estelle Köhler 642f0d4b80 fix: correct stylesheet references, shorten login snackbar, add datenschutz page 2026-04-03 17:25:34 +02:00
Estelle Köhler 6d3f699ea4 Clean up CSS to use global stylesheet, fix carousel, add impressum page and footer to all pages, update login styles 2026-04-03 16:54:16 +02:00
Estelle Köhler a456caa24a Rename landingpage.css to index.css and rename asset files 2026-04-03 14:26:04 +02:00
49 changed files with 4944 additions and 1489 deletions

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
{
"chat.tools.terminal.autoApprove": {
"git remote": true,
"git push": true,
"ssh": true,
"git add": true
}
}
File renamed without changes.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">
<!-- Generator: Adobe Illustrator 30.3.0, SVG Export Plug-In . SVG Version: 2.1.3 Build 182) -->
<defs>
<style>
.st0 {
fill: #6b6b05;
}
</style>
</defs>
<path class="st0" d="M9,1v2h6V1h2v2h4c.55,0,1,.45,1,1v16c0,.55-.45,1-1,1H3c-.55,0-1-.45-1-1V4c0-.55.45-1,1-1h4V1h2ZM20,11H4v8h16v-8ZM7,5h-3v4h16v-4h-3v2h-2v-2h-6v2h-2v-2Z"/>
</svg>

After

Width:  |  Height:  |  Size: 497 B

+40
View File
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 298.748 298.748" xml:space="preserve">
<g id="XMLID_1429_">
<g>
<g>
<path d="M89.486,99.966l5.118,2.999l10.451-6.427c1.463-0.9,2.999-1.573,4.57-2.038l-12.606-7.387
c-3.552-2.081-8.113-0.889-10.193,2.661C84.746,93.323,85.937,97.887,89.486,99.966z"/>
<path d="M194.008,187.239c5.392,0,9.764-4.372,9.764-9.764c0-5.393-4.372-9.764-9.764-9.764H99.344
c-5.393,0-9.764,4.372-9.764,9.764c0,5.393,4.372,9.764,9.764,9.764h39.885v46.522h-7.948c-4.113,0-7.447,3.334-7.447,7.447
c0,4.113,3.334,7.447,7.447,7.447h30.791c4.113,0,7.447-3.334,7.447-7.447c0-4.113-3.334-7.447-7.447-7.447h-7.949v-46.522
H194.008z"/>
<path d="M80.72,177.226c-1.169-3.279-3.799-5.825-7.112-6.888l-10.951-3.51l7.194-25.11l-18.93-16.393l30.517,14.102
c2.778,1.283,6.078,1.142,8.782-0.521l29.67-18.248c4.379-2.694,5.746-8.427,3.052-12.806c-2.694-4.379-8.427-5.746-12.806-3.052
l-25.418,15.634l-25.987-12.009l13.749,2.106c-1.581-1.776-3.658-3.147-6.112-3.851l-21.263-6.092
c-3.485-0.998-7.227-0.497-10.326,1.384c-3.099,1.881-5.271,4.97-5.993,8.522l-12.821,63.063
c-0.664,3.266,0.174,6.657,2.283,9.237c0.327,0.4,0.686,0.764,1.06,1.11H7.621c-0.541,0-1.067,0.061-1.576,0.17
C2.603,184.73,0,187.751,0,191.384v49.815c0,4.113,3.334,7.447,7.447,7.447s7.447-3.334,7.447-7.447v-42.401H49.29v42.401
c0,4.113,3.334,7.447,7.447,7.447s7.447-3.334,7.447-7.447v-43.818l15.626,43.848c2.072,5.815,8.466,8.843,14.272,6.772
c5.812-2.071,8.844-8.461,6.773-14.273L80.72,177.226z"/>
<circle cx="66.103" cy="76.449" r="19.243"/>
<circle cx="252.446" cy="69.335" r="19.243"/>
<path d="M291.129,183.905h-14.077c0.415-0.256,0.819-0.532,1.201-0.844c2.579-2.111,4.073-5.268,4.07-8.6l-0.054-64.353
c-0.006-7.573-6.471-13.548-14.029-12.947l-22.049,1.752c-7.156,0.569-12.498,6.831-11.929,13.988l0.922,11.603l1.781-0.025
l16.473-14.381l-15.502,24.067l-29.838,0.426c-5.14,0.073-9.248,4.3-9.175,9.441c0.073,5.095,4.226,9.176,9.305,9.176
c0.045,0,0.091,0,0.136-0.001l34.828-0.498c3.117-0.044,6.005-1.646,7.693-4.267l18.205-28.263l-10.052,33.515
c-1.559,5.197-6.287,8.576-11.439,8.655c-5.26,0.071-3.13,0.042-9.398,0.131l0.362,4.555l-12.661,3.092
c-3.652,0.892-6.611,3.561-7.872,7.102l-20.136,56.505c-2.072,5.812,0.961,12.201,6.773,14.273
c5.812,2.072,12.202-0.963,14.272-6.772l15.626-43.85v43.82c0,4.113,3.335,7.447,7.447,7.447c4.113,0,7.447-3.334,7.447-7.447
v-42.401h34.395v42.401c0,4.113,3.335,7.447,7.447,7.447s7.447-3.334,7.447-7.447v-49.815
C298.748,187.265,295.406,183.905,291.129,183.905z"/>
<path d="M104.088,144.815c-0.057,0.25-0.09,0.502-0.09,0.757c0,4.239,6.881,7.896,16.812,9.586v1.397
c0,2.202,1.786,3.988,3.988,3.988h16.795c2.203,0,3.988-1.786,3.988-3.988v-1.396c9.931-1.69,16.812-5.346,16.812-9.586
c0-0.255-0.032-0.506-0.088-0.755c-0.11-0.487-0.933-0.854-1.915-0.854h-54.387C105.024,143.963,104.2,144.33,104.088,144.815z"
/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 36 36">
<!-- Generator: Adobe Illustrator 30.3.0, SVG Export Plug-In . SVG Version: 2.1.3 Build 182) -->
<defs>
<style>
.st0 {
fill: #6b6b05;
}
</style>
</defs>
<path class="st0" d="M6,33c0-6.63,5.37-12,12-12s12,5.37,12,12h-3c0-4.97-4.03-9-9-9s-9,4.03-9,9h-3ZM18,19.5c-4.97,0-9-4.03-9-9S13.03,1.5,18,1.5s9,4.03,9,9-4.03,9-9,9ZM18,16.5c3.32,0,6-2.68,6-6s-2.68-6-6-6-6,2.68-6,6,2.68,6,6,6Z"/>
</svg>

After

Width:  |  Height:  |  Size: 553 B

+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">
<!-- Generator: Adobe Illustrator 30.3.0, SVG Export Plug-In . SVG Version: 2.1.3 Build 182) -->
<defs>
<style>
.st0 {
fill: #6b6b05;
}
</style>
</defs>
<path class="st0" d="M12,20.9l4.95-4.95c2.73-2.73,2.73-7.17,0-9.9-2.73-2.73-7.17-2.73-9.9,0-2.73,2.73-2.73,7.17,0,9.9l4.95,4.95ZM12,23.73l-6.36-6.36c-3.51-3.51-3.51-9.21,0-12.73,3.51-3.51,9.21-3.51,12.73,0,3.51,3.51,3.51,9.21,0,12.73l-6.36,6.36ZM12,13c1.1,0,2-.9,2-2s-.9-2-2-2-2,.9-2,2,.9,2,2,2ZM12,15c-2.21,0-4-1.79-4-4s1.79-4,4-4,4,1.79,4,4-1.79,4-4,4Z"/>
</svg>

After

Width:  |  Height:  |  Size: 681 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 93 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 148 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 203 KiB

After

Width:  |  Height:  |  Size: 203 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 120 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 112 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 400 KiB

After

Width:  |  Height:  |  Size: 400 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 189 KiB

After

Width:  |  Height:  |  Size: 189 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 282 KiB

After

Width:  |  Height:  |  Size: 282 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 142 KiB

-6
View File
@@ -1,6 +0,0 @@
<svg preserveAspectRatio="none" width="100%" height="100%" overflow="visible" style="display: block;" viewBox="0 0 23 27.6667" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Icon">
<path d="M22 11.5C22 19.6667 11.5 26.6667 11.5 26.6667C11.5 26.6667 1 19.6667 1 11.5C1 8.71523 2.10625 6.04451 4.07538 4.07538C6.04451 2.10625 8.71523 1 11.5 1C14.2848 1 16.9555 2.10625 18.9246 4.07538C20.8938 6.04451 22 8.71523 22 11.5Z" stroke="var(--stroke-0, #D44B24)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M11.5 15C13.433 15 15 13.433 15 11.5C15 9.567 13.433 8 11.5 8C9.567 8 8 9.567 8 11.5C8 13.433 9.567 15 11.5 15Z" stroke="var(--stroke-0, #D44B24)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

+133 -271
View File
@@ -6,25 +6,6 @@
--control-min-height: 3rem; --control-min-height: 3rem;
--input-min-height: 3.5rem; --input-min-height: 3.5rem;
--card-min-height: 6rem; --card-min-height: 6rem;
--color-bg: var(--butter);
--color-surface: var(--white);
--color-surface-soft: var(--butter-light);
--color-text: var(--black);
--color-text-secondary: rgba(34, 33, 26, 0.8);
--color-muted: rgba(34, 33, 26, 0.68);
--color-border: rgba(102, 52, 13, 0.16);
--color-border-strong: var(--brown);
--color-divider: rgba(102, 52, 13, 0.14);
--color-primary: var(--olive);
--color-primary-hover: var(--olive-dark);
--color-progress-bg: rgba(212, 75, 36, 0.18);
--color-focus: var(--blue);
--color-error: var(--error);
--shadow-soft: 0 12px 30px rgba(102, 52, 13, 0.1);
--input-border-soft: rgba(102, 52, 13, 0.2);
--input-border-focus: rgba(107, 107, 5, 0.45);
--input-shadow-focus: 0 0 0 4px rgba(107, 107, 5, 0.12);
} }
*, *,
@@ -33,77 +14,6 @@
box-sizing: border-box; box-sizing: border-box;
} }
html {
font-size: 100%;
}
body {
margin: 0;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: var(--color-bg);
color: var(--color-text);
line-height: 1.5;
}
a,
button,
input,
textarea {
font: inherit;
}
a {
color: inherit;
text-decoration: none;
}
.site-header {
background: var(--color-bg);
border-top: 2px solid #232323;
border-bottom: 1px solid var(--color-border);
}
.site-nav {
width: min(100% - 2rem, var(--max-width));
margin: 0 auto;
min-height: var(--header-height);
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-4);
}
.site-logo {
font-size: 2rem;
font-weight: 800;
letter-spacing: 0.02em;
}
.site-nav-links {
display: flex;
align-items: center;
gap: var(--space-5);
margin: 0;
padding: 0;
list-style: none;
}
.site-nav-links a {
font-weight: 500;
}
.site-nav-links li:last-child a {
width: 2.25rem;
height: 2.25rem;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: #231f20;
color: #ffffff;
font-weight: 700;
}
.event-create-page { .event-create-page {
width: min(100% - 2rem, var(--max-width)); width: min(100% - 2rem, var(--max-width));
margin: 0 auto; margin: 0 auto;
@@ -124,7 +34,7 @@ a {
.step { .step {
display: none; display: none;
padding: var(--space-4) 0 var(--space-7); padding: var(--space-4) 0 var(--space-4);
} }
.submission-success { .submission-success {
@@ -139,7 +49,7 @@ a {
width: min(100%, var(--content-width)); width: min(100%, var(--content-width));
margin: 0 auto; margin: 0 auto;
display: grid; display: grid;
gap: var(--space-6); gap: var(--space-40);
} }
.step-layout--intro { .step-layout--intro {
@@ -173,38 +83,21 @@ fieldset {
gap: var(--space-3); gap: var(--space-3);
} }
.step-kicker {
margin: 0;
font-weight: 700;
color: var(--color-muted);
letter-spacing: 0.02em;
}
h1,
h2 {
margin: 0;
font-size: clamp(2rem, 4vw, 4rem);
line-height: 1.03;
letter-spacing: -0.03em;
}
.step-text { .step-text {
margin: 0; /* definiert Breite des Beschriebtexts der einzelnen Schritte*/
max-width: 42rem; max-width: 600px;
color: var(--color-text-secondary);
font-size: clamp(1rem, 1.4vw, 1.2rem);
} }
.intro-card, .intro-card,
.review-card { .review-card {
border: 1px solid var(--color-border); border: 1px solid var(--color-border);
background: var(--color-surface); background: var(--color-surface);
box-shadow: var(--shadow-soft); box-shadow: var(--shadow-interaction);
} }
.intro-card { .intro-card {
max-width: 24rem; padding: var(--space-40);
padding: var(--space-6);
border-radius: 1.75rem; border-radius: 1.75rem;
background: linear-gradient(135deg, var(--color-surface), var(--color-surface-soft)); background: linear-gradient(135deg, var(--color-surface), var(--color-surface-soft));
} }
@@ -220,16 +113,27 @@ h2 {
.intro-image { .intro-image {
width: 100%; width: 100%;
aspect-ratio: 16 / 10; height: 100%;
display: block; display: block;
object-fit: cover; object-fit: cover;
border-radius: 1.875rem; border-radius: var(--radius-lg);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
} }
label,
label {
font-family: var(--font-main);
font-weight: 400;
font-size: 1.25rem;
}
legend { legend {
font-weight: 700; font-size: 1rem;
font-weight: 600;
letter-spacing: var(--ls-sm);
line-height: 1;
margin-bottom: var(--space-3);
} }
.field-hint { .field-hint {
@@ -243,15 +147,27 @@ input[type="date"],
input[type="time"], input[type="time"],
input[type="number"], input[type="number"],
textarea { textarea {
width: 100%; font-family: var(--font-main);
min-height: var(--input-min-height); font-weight: 400;
padding: 1rem 1.1rem; font-size: 1.25rem;;
border: 1px solid var(--input-border-soft); padding: 1rem 1.25rem;
border-radius: 1.125rem; border: 1.5px solid var(--olive-light);
border-radius: var(--radius-md);
background: var(--butter-light); background: var(--butter-light);
color: var(--color-text); transition: border-color 0.2s ease;
box-shadow: 0 1px 2px rgba(102, 52, 13, 0.04);
transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
/* Blendet die Standard-Buttons für number inputs aus */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type="number"] {
-moz-appearance: textfield;
} }
textarea { textarea {
@@ -272,15 +188,12 @@ input[type="date"]:focus,
input[type="time"]:focus, input[type="time"]:focus,
input[type="number"]:focus, input[type="number"]:focus,
textarea:focus { textarea:focus {
border-color: var(--input-border-focus); border-color: var(--olive-dark);
box-shadow: var(--input-shadow-focus);
background: var(--butter-light);
outline: none;
} }
.field-invalid { .field-invalid {
border-color: var(--tomato) !important; border-color: var(--error) !important;
box-shadow: 0 0 0 2px rgba(212, 75, 36, 0.14); box-shadow: var(--shadow-error);
} }
.field-row { .field-row {
@@ -296,23 +209,18 @@ textarea:focus {
.option-card { .option-card {
position: relative; position: relative;
display: grid; display: grid;
gap: 0.15rem; padding: var(--space-20);
min-height: var(--card-min-height); border: 1.5px solid var(--olive-light);
padding: 1rem 1rem 1rem 1.05rem; border-radius: var(--radius-md);
border: 1px solid var(--color-border);
border-radius: 1rem;
background: var(--butter-light); background: var(--butter-light);
transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease; transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
} }
.option-card small {
color: var(--color-muted);
}
.option-card:hover { .option-card:hover {
background: var(--olive-light); background: var(--olive-light);
transform: translateY(-1px); box-shadow: var(--shadow-interaction);
box-shadow: var(--shadow-soft); transform: translateY(-3px);
} }
.option-card input { .option-card input {
@@ -323,17 +231,12 @@ textarea:focus {
} }
.option-card:has(input:checked) { .option-card:has(input:checked) {
border: 1px solid var(--color-primary); border: 1.5px solid var(--olive-light);
background: var(--color-primary); background: var(--olive-light);
color: var(--white);
}
.option-card:has(input:checked) small {
color: rgba(247, 246, 230, 0.88);
} }
.option-card--invalid { .option-card--invalid {
border-color: var(--tomato) !important; border-color: var(--error) !important;
box-shadow: 0 0 0 2px rgba(212, 75, 36, 0.14); box-shadow: 0 0 0 2px rgba(212, 75, 36, 0.14);
} }
@@ -348,34 +251,6 @@ textarea:focus {
text-align: center; text-align: center;
} }
.counter-button,
.button {
min-height: var(--control-min-height);
}
.counter-button {
width: var(--control-min-height);
height: var(--control-min-height);
border: 1px solid var(--color-primary);
border-radius: 50%;
background: var(--color-primary);
color: var(--white);
font-size: 1.5rem;
line-height: 1;
box-shadow: 0 6px 16px rgba(107, 107, 5, 0.18);
transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.counter-button:hover {
background: var(--color-primary-hover);
transform: translateY(-1px);
}
.counter-button:focus-visible {
outline: 3px solid rgba(107, 107, 5, 0.22);
outline-offset: 3px;
}
.review-card { .review-card {
display: grid; display: grid;
gap: var(--space-4); gap: var(--space-4);
@@ -445,68 +320,56 @@ textarea:focus {
} }
.flow-footer { .flow-footer {
position: sticky;
bottom: 0; bottom: 0;
z-index: 5;
margin-top: auto;
background: var(--color-bg);
backdrop-filter: none; backdrop-filter: none;
padding-top: var(--space-4); padding-top: var(--space-4);
padding-bottom: env(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);
} }
.flow-actions {
display: flex;
justify-content: space-between;
align-items: center;
}
.error-message {
margin: 0;
text-align: center;
width: 100%;
}
.progress-wrap { .progress-wrap {
position: relative;
width: min(100%, var(--content-width)); width: min(100%, var(--content-width));
margin: 0 auto; margin: 0 auto;
padding-top: 4.35rem; display: flex;
align-items: center;
gap: 0.75rem;
}
.progress-label {
flex-shrink: 0;
font-size: 0.8rem;
font-weight: 600;
color: var(--color-muted);
white-space: nowrap;
} }
.progress { .progress {
width: 100%; flex: 1;
height: 0.375rem; height: 0.3rem;
background: var(--color-progress-bg); background: var(--olive-light);
border-radius: var(--radius-sm);
overflow: hidden;
} }
.progress-bar { .progress-bar {
display: block; display: block;
width: 0; width: 0;
height: 100%; height: 100%;
background: var(--tomato); background: var(--olive);
transition: width 0.25s ease;
}
.progress-marker {
position: absolute;
top: 0;
transform: translateX(-50%);
display: grid;
justify-items: center;
gap: 0.2rem;
pointer-events: none;
}
.progress-marker::after {
content: "";
width: 0.125rem;
height: 1rem;
background: var(--tomato);
border-radius: 999px; border-radius: 999px;
} transition: width 0.25s ease;
.progress-marker__circle {
width: 2.9rem;
height: 2.9rem;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--tomato);
color: var(--butter-light);
font-size: 1.35rem;
font-weight: 600;
line-height: 1;
box-shadow: 0 10px 24px rgba(212, 75, 36, 0.18);
} }
.flow-actions { .flow-actions {
@@ -525,60 +388,67 @@ textarea:focus {
gap: var(--space-4); gap: var(--space-4);
} }
.error-message {
min-height: 1.5rem;
margin: 0;
color: var(--color-error);
font-size: 0.95rem;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.9rem 1.35rem;
border-radius: var(--radius-pill);
border: 1px solid var(--color-border);
background: transparent;
color: var(--color-text);
cursor: pointer;
}
.button--ghost:hover { .button--ghost:hover {
background: rgba(0, 0, 0, 0.03); background: rgba(0, 0, 0, 0.03);
} }
.button--text {
border: 0;
padding-left: 0;
}
.button--primary {
min-width: 10rem;
border-color: var(--color-primary);
background: var(--color-primary);
color: #ffffff;
font-weight: 700;
}
.button--primary:hover {
background: var(--color-primary-hover);
}
.button--primary:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.button--intro { .button--intro {
justify-self: start; justify-self: start;
margin-top: var(--space-2); margin-top: var(--space-2);
} }
/* Gallery Upload */
.gallery-upload {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem;
}
.gallery-preview {
display: contents;
}
.gallery-thumb {
position: relative;
width: 5.5rem;
height: 5.5rem;
border-radius: var(--radius-sm, 0.5rem);
overflow: hidden;
flex-shrink: 0;
}
.gallery-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.gallery-thumb-remove {
position: absolute;
top: 0.2rem;
right: 0.2rem;
width: 1.4rem;
height: 1.4rem;
border: 0;
border-radius: 50%;
background: rgba(0, 0, 0, 0.6);
color: #fff;
font-size: 0.85rem;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.site-footer { .site-footer {
width: min(100% - 2rem, var(--max-width)); width: min(100% - 2rem, var(--max-width));
margin: 0 auto; margin: 0 auto;
padding: var(--space-5) 0 var(--space-6); padding: var(--space-5) 0 var(--space-40);
color: var(--color-muted); color: var(--color-muted);
text-align: center; text-align: center;
} }
@@ -607,14 +477,6 @@ textarea:focus-visible {
align-items: stretch; align-items: stretch;
} }
.button--text {
justify-content: flex-start;
}
.button--primary {
width: 100%;
}
.event-flow-header { .event-flow-header {
justify-content: flex-start; justify-content: flex-start;
} }
@@ -624,7 +486,7 @@ textarea:focus-visible {
.step-layout--intro { .step-layout--intro {
width: min(100%, 56rem); width: min(100%, 56rem);
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
align-items: center; align-items: stretch;
gap: var(--space-8); gap: var(--space-8);
} }
+265 -256
View File
@@ -4,26 +4,15 @@
Shared Typography Tokens Shared Typography Tokens
Reuse common text styles across nav, controls and buttons Reuse common text styles across nav, controls and buttons
--------------------------------------------------------- */ --------------------------------------------------------- */
.nav-link,
.login-pill,
.category-item,
.meta-filter select, .meta-filter select,
.meta-filter input[type="date"], .meta-filter input[type="date"],
.btn-primary,
.empty-state-btn,
.detail-primary-btn { .detail-primary-btn {
font-family: "Jost", sans-serif; font-family: var(--font-main);
font-size: 17px; font-size: 1.125rem;
font-weight: 500; line-height: 1;
letter-spacing: var(--ls-ui); color: var(--black);
}
.event-date-time,
.event-location {
color: var(--olive);
font-size: 18px;
font-weight: 400;
line-height: 1.3;
} }
/* Heading hierarchy: page title > detail title > card title > section title */ /* Heading hierarchy: page title > detail title > card title > section title */
@@ -37,21 +26,7 @@
} }
.detail-title { .detail-title {
margin: 0; margin-bottom: var(--space-4);
color: var(--brown);
font-family: "Bagel Fat One", cursive;
font-size: clamp(44px, 6vw, 52px);
line-height: 1.15;
font-weight: 400;
}
.event-title {
margin: 0 0 var(--space-3);
color: var(--brown);
font-family: "Bagel Fat One", cursive;
font-size: clamp(32px, 4.2vw, 44px);
font-weight: 400;
line-height: 1.15;
} }
.detail-section-title { .detail-section-title {
@@ -68,48 +43,34 @@
--------------------------------------------------------- */ --------------------------------------------------------- */
.filter-label { .filter-label {
margin: 0 0 var(--space-1); margin: 0 0 var(--space-1);
color: var(--olive); letter-spacing: var(--ls-la);
font-size: 18px;
letter-spacing: var(--ls-label);
font-weight: 500;
} }
.filter-row { .filter-row {
display: flex; display: flex;
align-items: flex-end; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: var(--space-3); gap: var(--space-3);
margin-bottom: var(--space-6); margin-bottom: var(--space-2);
} }
.category-group { .category-group {
display: flex; display: flex;
gap: var(--space-2); gap: var(--space-1);
margin-bottom: 0; margin-bottom: 0;
flex-wrap: wrap; flex-wrap: wrap;
flex: 1; flex: 1;
} }
.category-item { .event-tag {
border: 2px solid var(--olive); border: 1.5px solid var(--tomato);
border-radius: var(--radius-md); color: var(--tomato);
background: var(--butter); border-radius: var(--radius-pill);
color: var(--black); font-family: var(--font-main);
line-height: 1.3; font-weight: 400;
padding: var(--space-1) var(--space-4); font-size: 1rem;
min-height: 40px; line-height: 1;
cursor: pointer; padding: var(--space-1) var(--space-20);
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.category-item:hover {
background: #faf8e8;
}
.category-item.active {
border-color: transparent;
background: var(--olive);
color: var(--white);
} }
.meta-filter-group { .meta-filter-group {
@@ -121,7 +82,6 @@
.meta-filter { .meta-filter {
display: block; display: block;
min-width: 220px;
} }
.meta-filter span { .meta-filter span {
@@ -130,21 +90,43 @@
.meta-filter select, .meta-filter select,
.meta-filter input[type="date"] { .meta-filter input[type="date"] {
border: 2px solid var(--olive); border: 1.5px solid var(--olive);
border-radius: var(--radius-md); border-radius: var(--radius-sm);
background: var(--butter); background: var(--butter-light);
color: var(--black); height: 37px;
line-height: 1.3; padding: 0 var(--space-4);
padding: var(--space-1) var(--space-4);
min-height: 40px;
height: 40px;
box-sizing: border-box; box-sizing: border-box;
} }
.meta-filter select:focus, .meta-filter select:focus,
.meta-filter input[type="date"]:focus { .meta-filter input[type="date"]:focus {
outline: 2px solid rgba(107, 107, 5, 0.35); border: 1.5px solid var(--olive-dark);
outline-offset: 1px; outline: 2px solid var(--butter);
}
.meta-filter input[type="date"] {
color-scheme: light;
accent-color: var(--olive-dark);
}
.meta-filter input[type="date"]::-webkit-calendar-picker-indicator {
cursor: pointer;
filter: invert(8%) sepia(5%) saturate(300%) hue-rotate(10deg) brightness(10%) contrast(95%);
transition: background-color 0.2s ease;
}
.meta-filter input[type="date"]::-webkit-calendar-picker-indicator:hover {
filter: brightness(0.8);
}
.meta-filter select {
cursor: pointer;
-webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='currentColor' stroke-width='1.5' fill='none' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E");
background-repeat: no-repeat;
color: var(--black);
background-position: right var(--space-4) center;
} }
/* --------------------------------------------------------- /* ---------------------------------------------------------
@@ -153,20 +135,24 @@
.event-list { .event-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 18px; gap: var(--space-3);
} }
.event-card { .event-card {
/* Core card container for every overview event entry. */ /* Core card container for every overview event entry. */
background: rgba(255, 255, 255, 0.9); background: var(--butter-light);
border: 1.5px solid var(--olive-light);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
padding: var(--space-5) 40px var(--space-4); padding: var(--space-5) var(--space-40);
display: flex; display: flex;
justify-content: space-between; gap: var(--space-40);
align-items: flex-start;
gap: var(--space-6);
cursor: pointer; cursor: pointer;
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.1); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.event-card:hover {
box-shadow: var(--shadow-interaction);
transform: translateY(-3px);
} }
.event-main { .event-main {
@@ -174,30 +160,32 @@
flex: 1; flex: 1;
} }
.event-date-time { .event-location,
margin: 0; .event-date-time,
.event-gast {
display: inline-flex;
gap: var(--space-0);
} }
.event-top-row { .event-top-row {
/* Primary metadata line: location + date/time/guest counters. */ /* Primary metadata line: location + date/time/guest counters. */
display: flex; display: flex;
align-items: center; align-items: center;
gap: var(--space-5); gap: var(--space-4);
margin-bottom: var(--space-1); margin-bottom: var(--space-0);
flex-wrap: wrap; flex-wrap: wrap;
} }
.event-location { .event-location {
display: inline-flex; display: inline-flex;
align-items: center; gap: var(--space-0);
gap: 6px;
} }
.event-location img { .event-location .icon path{
width: 18px; width: 20px;
height: 18px; height: 20px;
flex: 0 0 20px;
display: block; display: block;
filter: brightness(0) saturate(100%) invert(35%) sepia(95%) saturate(501%) hue-rotate(22deg) brightness(96%) contrast(96%);
} }
.event-meta-row { .event-meta-row {
@@ -205,19 +193,17 @@
align-items: center; align-items: center;
gap: var(--space-1); gap: var(--space-1);
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: 12px;
} }
.event-tag { .event-tag {
border: 1px solid var(--tomato); border: 1.5px solid var(--tomato);
color: var(--tomato); color: var(--tomato);
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
padding: 7px 14px; font-family: var(--font-main);
font-size: 14px; font-weight: 400;
font-weight: 500; font-size: 1rem;
letter-spacing: var(--ls-ui);
line-height: 1; line-height: 1;
text-transform: uppercase; padding: var(--space-1) var(--space-20);
} }
.event-spec-chip { .event-spec-chip {
@@ -239,46 +225,53 @@
.event-side { .event-side {
/* Right-side action area: availability status and optional signup button. */ /* Right-side action area: availability status and optional signup button. */
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
justify-content: flex-end;
gap: var(--space-3); gap: var(--space-3);
padding-top: 36px; padding-top: 36px;
flex-shrink: 0; flex-shrink: 0;
} }
.button-plaetze {
border: none;
padding: var(--space-01) var(--space-4);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.125rem;
color: var(--olive);
}
.event-spots { .event-spots {
color: var(--olive); color: var(--olive);
font-size: 18px; font-size: 18px;
font-weight: 500;
white-space: nowrap; white-space: nowrap;
} }
.event-spots-full { .event-spots-full, .detail-spots-pill-full {
/* Sold-out visual state, intentionally high-contrast and always filled. */ /* Sold-out visual state, intentionally high-contrast and always filled. */
border: 2px solid var(--tomato); border: 1.5px solid var(--tomato);
padding: var(--space-01) var(--space-4);
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
color: var(--white); color: var(--butter-light);
background: var(--tomato); background: var(--tomato);
opacity: 1; font-family: var(--font-main);
font-weight: 600; font-weight: 400;
font-size: 14px; font-size: 1.25rem;
padding: 7px 14px; opacity: 0.6;
line-height: 1; cursor: not-allowed;
} }
.btn-primary { .btn-primary-register {
background: var(--olive); background: var(--olive);
color: #fffde8;
border: none;
border-radius: var(--radius-pill);
padding: 10px 22px;
font-size: 16px;
line-height: 1.3;
cursor: pointer;
white-space: nowrap;
} }
.btn-primary:hover { .btn-primary-own,
filter: brightness(0.95); .btn-primary-own:disabled {
background: var(--olive-light);
color: var(--black);
opacity: 1;
cursor: not-allowed;
} }
/* --------------------------------------------------------- /* ---------------------------------------------------------
@@ -289,9 +282,8 @@
padding: 42px var(--space-5); padding: 42px var(--space-5);
border: 2px solid var(--olive-light); border: 2px solid var(--olive-light);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
background: rgba(255, 255, 255, 0.92); background: var(--butter-light);
margin-top: 8px; margin-top: 8px;
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.08);
} }
.empty-state-kicker { .empty-state-kicker {
@@ -299,8 +291,7 @@
color: var(--olive); color: var(--olive);
font-size: 13px; font-size: 13px;
font-weight: 600; font-weight: 600;
letter-spacing: var(--ls-label); letter-spacing: var(--ls-la);
text-transform: uppercase;
} }
.empty-state h3 { .empty-state h3 {
@@ -324,19 +315,6 @@
text-decoration: none; text-decoration: none;
} }
.empty-state-btn {
border: 0;
border-radius: var(--radius-pill);
background: var(--olive);
color: var(--white);
font-weight: 600;
padding: 10px 22px;
cursor: pointer;
}
.empty-state-btn:hover {
filter: brightness(0.95);
}
/* --------------------------------------------------------- /* ---------------------------------------------------------
Detail Page Detail Page
@@ -346,33 +324,13 @@
gap: 14px; gap: 14px;
} }
.detail-back {
display: inline-flex;
align-items: center;
justify-content: flex-start;
gap: var(--space-1);
width: fit-content;
color: var(--tomato);
text-decoration: none;
font-family: "Jost", sans-serif;
font-size: 17px;
font-weight: 500;
letter-spacing: var(--ls-none);
line-height: 1.2;
}
.detail-back span {
font-size: 24px;
line-height: 1;
}
.detail-hero { .detail-hero {
display: grid; display: grid;
gap: var(--space-1); margin-bottom: var(--space-40);
} }
.detail-top-row { .detail-top-row {
display: flex; display: inline-flex;
align-items: center; align-items: center;
gap: var(--space-5); gap: var(--space-5);
flex-wrap: wrap; flex-wrap: wrap;
@@ -391,23 +349,20 @@
.detail-content-grid { .detail-content-grid {
/* Two-column detail layout: content stack (left) + gallery (right). */ /* Two-column detail layout: content stack (left) + gallery (right). */
display: grid; display: grid;
grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr); grid-template-columns: 1fr 1fr;
grid-template-areas: "side gallery"; grid-template-areas: "side gallery";
gap: var(--space-3); gap: var(--space-40);
align-items: stretch; align-items: stretch;
} }
.detail-side-stack { .detail-side-stack {
grid-area: side; grid-area: side;
display: grid; display: grid;
gap: var(--space-2); gap: var(--space-3);
align-content: start; align-content: start;
} }
.host-card {
border: 2px solid var(--butter);
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.1);
}
.host-header { .host-header {
display: flex; display: flex;
@@ -416,39 +371,25 @@
margin-bottom: 30px; margin-bottom: 30px;
} }
.host-avatar {
width: 32px;
height: 32px;
border-radius: 999px;
background: var(--olive);
color: var(--white);
display: inline-flex;
align-items: center;
font-size: 13px;
}
.host-name { .host-name {
font-weight: 500; margin-left: 12px;
}
.host-role {
padding: 4px 10px;
border: 1px solid var(--olive-light);
border-radius: var(--radius-pill);
background: rgba(107, 107, 5, 0.08);
color: var(--olive);
font-size: 12px;
font-weight: 600; font-weight: 600;
letter-spacing: var(--ls-label); letter-spacing: var(--ls-sm);
text-transform: uppercase;
} }
.host-card p { /*
margin: 0 0 10px; .host-role {
font-size: 20px; border: 1.5px solid var(--olive-light);
line-height: 1.3; background: var(--olive-light);;
color: var(--black); color: var(--olive);
} border-radius: var(--radius-pill);
font-family: var(--font-main);
font-weight: 400;
font-size: 1rem;
line-height: 1;
letter-spacing: var(--ls-la);
padding: var(--space-1) var(--space-20);
}*/
.detail-gallery { .detail-gallery {
grid-area: gallery; grid-area: gallery;
@@ -457,9 +398,9 @@
.detail-gallery-large { .detail-gallery-large {
/* Editorial mosaic: first image spans two rows, side images stack vertically. */ /* Editorial mosaic: first image spans two rows, side images stack vertically. */
grid-template-columns: 1.4fr 1fr; grid-template-columns: 1fr 1fr;
grid-template-rows: repeat(2, minmax(220px, 1fr)); grid-template-rows: repeat(2, minmax(220px, 1fr));
gap: 12px; gap: var(--space-3);
min-height: 520px; min-height: 520px;
} }
@@ -468,9 +409,8 @@
height: 100%; height: 100%;
min-height: 220px; min-height: 220px;
object-fit: cover; object-fit: cover;
border: 2px solid var(--black); border-radius: var(--radius-md);
border-radius: 20px; box-shadow: var(--shadow-interaction);
box-shadow: 0 4px 12px rgba(34, 28, 26, 0.14);
} }
.detail-gallery-item { .detail-gallery-item {
@@ -487,7 +427,7 @@
.detail-gallery-item:hover .detail-gallery-image, .detail-gallery-item:hover .detail-gallery-image,
.detail-gallery-item:focus-visible .detail-gallery-image { .detail-gallery-item:focus-visible .detail-gallery-image {
transform: scale(1.015); transform: translateY(-3px);
} }
.detail-gallery-large img:first-child { .detail-gallery-large img:first-child {
@@ -511,16 +451,18 @@
.detail-lightbox-backdrop { .detail-lightbox-backdrop {
position: absolute; position: absolute;
z-index: 200;
inset: 0; inset: 0;
background: rgba(0, 0, 0, 0.75); background: var(--black);
opacity: 0.6;
} }
.detail-lightbox-content { .detail-lightbox-content {
position: relative; position: relative;
z-index: 300;
margin: 0; margin: 0;
max-width: min(96vw, 1100px); max-width: min(96vw, 1100px);
max-height: 90vh; max-height: 90vh;
z-index: 1;
} }
.detail-lightbox-image { .detail-lightbox-image {
@@ -528,7 +470,7 @@
width: 100%; width: 100%;
max-height: 90vh; max-height: 90vh;
object-fit: contain; object-fit: contain;
border-radius: 16px; border-radius: var(--radius-md);
background: #111; background: #111;
} }
@@ -538,16 +480,16 @@
right: 0; right: 0;
border: 0; border: 0;
background: transparent; background: transparent;
color: var(--white); color: var(--butter-light);
font-size: 40px; font-size: 40px;
line-height: 1; line-height: 1;
cursor: pointer; cursor: pointer;
} }
.detail-panel { .detail-panel {
background: rgba(255, 255, 255, 0.86); background: var(--butter-light);
border-radius: var(--radius-md); border-radius: var(--radius-md);
padding: 14px 16px; padding: var(--space-4) var(--space-5);
} }
.detail-panel-compact { .detail-panel-compact {
@@ -557,8 +499,8 @@
.detail-menu-list { .detail-menu-list {
margin: 20px; margin: 20px;
list-style: disc; list-style: disc;
font-size: 20px; font-size: 1.125rem;
line-height: 1.35; line-height: 1.5;
} }
.detail-participants-head { .detail-participants-head {
@@ -572,7 +514,7 @@
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
color: var(--tomato); color: var(--tomato);
letter-spacing: var(--ls-label); letter-spacing: var(--ls-la);
text-decoration: none; text-decoration: none;
} }
@@ -587,7 +529,7 @@
height: 34px; height: 34px;
border-radius: 50%; border-radius: 50%;
background: var(--tomato); background: var(--tomato);
color: var(--white); color: var(--butter-light);
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -600,20 +542,57 @@
opacity: 0.7; opacity: 0.7;
} }
.detail-participants-full {
display: flex;
flex-direction: column;
gap: 10px;
}
.detail-participant-item {
display: flex;
align-items: center;
gap: 10px;
}
.participant-name {
font-size: 0.95rem;
font-weight: 500;
color: var(--black);
}
.detail-participants-link {
background: none;
border: none;
color: var(--olive);
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
padding: 0;
text-decoration: underline;
text-underline-offset: 3px;
}
.detail-participants-link:hover {
color: var(--olive-dark);
}
.detail-action-bar { .detail-action-bar {
/* Sticky bottom CTA bar with summary and booking controls. */ /* Sticky bottom CTA bar with summary and booking controls. */
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
gap: var(--space-2); gap: var(--space-2);
background: rgba(255, 255, 255, 0.95); background: var(--white);
border: 1px solid var(--olive-light); border: 1.5px solid var(--olive-light);
border-radius: var(--radius-md); border-radius: var(--radius-md);
padding: 10px 14px; box-shadow: var(--shadow-interaction);
padding: var(--space-4) var(--space-5);
margin-top: var(--space-40);
position: sticky; position: sticky;
bottom: 18px; bottom: var(--space-40);
z-index: 12; z-index: 100;
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.1);
} }
.detail-action-summary { .detail-action-summary {
@@ -630,23 +609,21 @@
.detail-action-meta { .detail-action-meta {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: 6px; gap: 16px;
flex-wrap: wrap; flex-wrap: wrap;
} }
.detail-action-location { .detail-action-location,
.detail-action-meta-text {
color: var(--olive); color: var(--olive);
font-size: 17px; font-size: 1rem;
} }
.detail-action-location img { .detail-action-location img {
width: 16px; width: 18px;
height: 16px; height: 18px;
} }
.detail-action-meta-text {
color: var(--brown);
}
.detail-action-summary strong { .detail-action-summary strong {
font-size: 40px; font-size: 40px;
@@ -662,30 +639,82 @@
gap: var(--space-1); gap: var(--space-1);
} }
.detail-spots-pill { .detail-spots-pill {
border: 2px solid var(--olive-light); border: none;
border-radius: var(--radius-pill); padding: var(--space-01) var(--space-4);
opacity: 0.5; font-family: var(--font-main);
font-size: 14px; font-weight: 400;
letter-spacing: var(--ls-ui); font-size: 1rem;
padding: 7px 14px;
color: var(--olive); color: var(--olive);
} }
/*
.detail-spots-pill-full { .detail-spots-pill-full {
border-color: var(--tomato); border-color: var(--tomato);
color: var(--tomato); color: var(--tomato);
opacity: 1; opacity: 1;
font-weight: 600; font-weight: 600;
}*/
.detail-action-btn-wrap {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.detail-dereg-hint {
display: block;
font-size: 11px;
font-weight: 400;
color: var(--olive);
opacity: 0.75;
}
.detail-dereg-hint--closed {
color: var(--tomato);
font-weight: 500;
opacity: 1;
} }
.detail-primary-btn { .detail-primary-btn {
border: 2px solid var(--tomato);
border-radius: var(--radius-pill); border-radius: var(--radius-pill);
background: var(--tomato);
color: var(--white); color: var(--white);
padding: 10px 22px; padding: 10px 22px;
cursor: pointer; cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.detail-primary-btn-register {
border: 2px solid var(--olive);
background: var(--olive);
}
.detail-primary-btn-register:not(:disabled):hover,
.detail-primary-btn-register:not(:disabled):focus-visible {
background: #575704;
border-color: #575704;
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(107, 107, 5, 0.28);
}
.detail-primary-btn-danger {
border: 2px solid var(--tomato);
background: var(--tomato);
}
.detail-primary-btn-danger:not(:disabled):hover,
.detail-primary-btn-danger:not(:disabled):focus-visible {
background: var(--tomato-dark);
border-color: var(--tomato-dark);
transform: translateY(-1px);
box-shadow: 0 4px 10px rgba(188, 74, 52, 0.28);
}
.detail-primary-btn:not(:disabled):active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(102, 52, 13, 0.22);
} }
.detail-primary-btn:disabled { .detail-primary-btn:disabled {
@@ -693,6 +722,15 @@
cursor: not-allowed; cursor: not-allowed;
} }
.detail-primary-btn-own,
.detail-primary-btn-own:disabled {
border-color: var(--olive-light);
background: var(--olive-light);
color: var(--black);
opacity: 1;
cursor: not-allowed;
}
/* --------------------------------------------------------- /* ---------------------------------------------------------
Responsive: Tablet (<= 850px) Responsive: Tablet (<= 850px)
@@ -734,14 +772,6 @@
font-size: 15px; font-size: 15px;
} }
.category-group {
gap: 10px;
}
.category-item {
font-size: 15px;
padding: 8px 14px;
}
.meta-filter { .meta-filter {
min-width: 155px; min-width: 155px;
@@ -755,27 +785,6 @@
height: 38px; height: 38px;
} }
.event-card {
flex-direction: column;
align-items: stretch;
gap: 16px;
padding: 22px 20px 20px;
}
.event-title {
font-size: 34px;
}
.event-date-time,
.event-location,
.event-spots {
font-size: 18px;
}
.event-side {
padding-top: 0;
justify-content: space-between;
}
.event-side-full { .event-side-full {
justify-content: flex-end; justify-content: flex-end;
+524
View File
@@ -0,0 +1,524 @@
/* ===========================================
INDEX.CSS — Styles specific to index.html
Global styles (reset, variables, body, nav,
brand, typography) are in stylesheet_global.css
=========================================== */
/* --- Navigation overrides (index-specific) --- */
.nav-link {
border: 2px solid var(--olive-light);
transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover,
.nav-link.active,
.nav-link:focus-visible {
background: var(--olive);
color: var(--white);
border-color: var(--olive);
}
.nav-link--login {
background: var(--olive);
color: var(--white);
border-color: var(--olive);
}
.nav-link--login:hover,
.nav-link--login:focus-visible {
background: var(--white);
color: var(--olive);
border-color: var(--olive);
}
/* --- Page layout --- */
.main-content {
width: min(100% - 4rem, 1120px);
margin: 0 auto;
padding: 0 20px;
}
/* --- Hero section --- */
.hero {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 55px;
margin-bottom: 88px;
align-items: center;
padding: 44px 0;
}
/*
.hero__buttons {
display: flex;
gap: var(--space-3);
flex-wrap: wrap;
}*/
.hero__right {
display: flex;
align-items: center;
justify-content: center;
}
.image-card {
width: 100%;
max-width: 436px;
overflow: hidden;
border-radius: var(--radius-lg);
}
.hero-image {
width: 100%;
max-width: 436px;
max-height: 510px;
height: auto;
border-radius: var(--radius-lg);
object-fit: cover;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
@media (max-width: 900px) {
.hero {
grid-template-columns: 1fr;
padding: 30px 0;
}
.hero__right {
order: -1;
}
.hero-image {
min-height: 320px;
}
}
/* --- "So funktioniert's" steps --- */
.how-it-works {
margin-bottom: 70px;
}
.how-it-works__header {
text-align: center;
margin-bottom: 32px;
}
.how-it-works__header h2 {
font-size: 2rem;
margin: 0;
color: var(--black);
}
.how-it-works__steps {
display: grid;
grid-template-columns: repeat(3, minmax(180px, 1fr));
gap: 20px;
}
.how-step {
display: flex;
flex-direction: column;
align-items: center;
padding: var(--space-40);
background: var(--butter-light);
border-radius: var(--radius-lg);
}
.how-step-number-numbered {
position: relative;
}
.how-step_corner-number {
position: absolute;
color: var(--butter-light);
background: var(--tomato);
border-radius: var(--radius-lg);
top: var(--space-20);
left: var(--space-20);
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
font-family: 'Bagel Fat One';
font-size: 1.5rem;
font-weight: 400;
color: var(--butter-light);
}
.how-step_corner-number--brown {
color: var(--brown);
}
.how-step_icon {
font-size: 3.5rem;
color: var(--brown);
margin: var(--space-4) 0;
}
.how-step__png {
width: 192px;
height: 192px;
object-fit: contain;
}
.how-step__png--brown {
filter: brightness(0) saturate(100%) invert(18%) sepia(56%) saturate(2800%) hue-rotate(16deg) brightness(92%) contrast(95%);
}
.how-step_text {
margin-bottom: var(--space-4);
text-align: center;
}
.text-left{
text-align: left;
}
.how-step__footer-pill {
margin-bottom: 4px;
}
.how-step__footer-badges {
display: flex;
gap: var(--space-2);
justify-content: center;
}
.how-step__footer-banner {
width: 100%;
padding: 10px 16px;
background: var(--butter);
border-radius: var(--radius-sm);
text-align: center;
font-family: 'Bagel Fat One', sans-serif;
font-size: 0.85rem;
letter-spacing: 0.12rem;
color: var(--brown);
}
@media (max-width: 900px) {
.how-it-works__steps {
grid-template-columns: 1fr;
}
}
/* --- Carousel gallery --- */
.gallery__carousel {
position: relative;
overflow: hidden;
}
.gallery__track {
display: flex;
gap: 20px;
margin-bottom: 30px;
}
.gallery__item {
flex: 0 0 calc((100% - 40px) / 3);
min-width: calc((100% - 40px) / 3);
border-radius: 24px;
overflow: hidden;
background: var(--white);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
aspect-ratio: 2 / 3;
cursor: pointer;
}
.gallery__item img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}
.gallery__arrow {
position: absolute;
display: grid;
top: 45%;
width: 44px;
height: 44px;
border: 1.5px solid var(--butter-light);
background: var(--butter-light);
border-radius: var(--radius-lg);
font-family: var(--font-main);
display: none;
font-weight: 400;
font-size: 1.25rem;
place-items: center;
z-index: 2;
color: var(--olive);
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.gallery__arrow:hover,
.gallery__arrow:focus-visible {
border: 1.5px solid var(--butter);
background: var(--butter);
}
.gallery__arrow--prev {
left: var(--space-4);
}
.gallery__arrow--next {
right: var(--space-4);
}
/* --- Carousel dot indicators --- */
.gallery_dots {
display: flex;
justify-content: center;
gap: 10px;
padding: 12px 0 8px;
}
.gallery_dot {
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid var(--olive);
background: transparent;
cursor: pointer;
padding: 0;
transition: background 0.25s ease, transform 0.2s ease;
}
.gallery_dot:hover,
.gallery_dot--active {
background: var(--olive);;
transform: scale(1.2);
}
.gallery_dot:focus-visible {
outline: 2px solid var(--olive);
outline-offset: 3px;
}
@media (max-width: 900px) {
.gallery__track {
gap: 16px;
}
.gallery__item {
flex: 0 0 100%;
min-width: 100%;
}
}
/* --- Gallery info (Instagram link) --- */
.gallery__info {
display: flex;
align-items: center;
gap: 10px;
}
.gallery__icon--instagram {
height: 32px;
width: 32px;
object-fit: contain;
border-radius: 8px;
background: none;
filter: brightness(0) saturate(100%) invert(27%) sepia(81%) saturate(749%) hue-rotate(24deg) brightness(90%) contrast(90%);
}
.gallery__icon--invite {
height: 56px;
width: 56px;
object-fit: contain;
margin-left: 0;
transform: translate(-4%, -1%);
position: relative;
}
/* --- CTA button --- */
.btn {
border: none;
background: var(--olive);
color: var(--white);
padding: 12px 22px;
font-weight: 700;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-pill);
font-size: 0.95rem;
transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
background-color: var(--olive-dark);
transform: translateY(-1px);
}
/* --- Footer --- */
.footer {
display: flex;
justify-content: center;
align-items: center;
gap: 24px;
padding: 16px 24px;
border: none;
margin-top: 40px;
}
.footer-link {
color: var(--black);
text-decoration: underline;
font-size: 0.8rem;
font-weight: 400;
}
/* --- FAQ Section: Akkordion --- */
.faq-section {
padding: var(--space-8) var(--space-4);
margin: var(--space-8) 0 var(--space-5);
}
.faq-section h2 {
text-align: center;
margin-bottom: var(--space-5);
color: var(--brown);
}
.faq-accordion {
width: 100%;
max-width: 56rem;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.faq-item {
border: 1.5px solid var(--olive-light);
border-radius: var(--radius-lg);
overflow: hidden;
background: var(--white);
transition: background-color 0.2s ease, box-shadow var(--shadow-interaction);
}
.faq-item:hover {
box-shadow: var(--shadow-interaction);
}
.faq-trigger {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-3) var(--space-4);
background: transparent;
border: none;
cursor: pointer;
font-size: 1.25rem;
font-weight: 400;
color: var(--olive);
text-align: left;
transition: background-color 0.2s ease;
font-family: var(--font-main);
}
.faq-trigger:hover {
background-color: var(--butter-light);
}
.faq-trigger:focus-visible {
outline: 2px solid var(--olive);
outline-offset: -2px;
}
.faq-title {
flex: 1;
font-weight: 600;
}
.faq-icon {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
font-size: 1.5rem;
font-weight: 300;
color: var(--olive);
transition: transform 0.3s ease;
flex-shrink: 0;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
transform: rotate(45deg);
}
.faq-content {
padding: 0 var(--space-4);
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease, padding 0.3s ease;
font-size: 1.125rem;
line-height: 1.7;
color: var(--black);
font-family: var(--font-main);
}
.faq-content p {
margin: 0;
padding: var(--space-3) 0;
}
.faq-trigger[aria-expanded="true"] + .faq-content {
display: block;
max-height: 500px;
padding: var(--space-3) var(--space-4);
}
/* --- Responsive: FAQ Section --- */
@media (max-width: 768px) {
.faq-section {
padding: var(--space-40) var(--space-4);
margin: var(--space-40) 0 var(--space-5);
}
.faq-trigger {
padding: var(--space-2) var(--space-3);
font-size: 1.125rem;
}
.faq-content {
padding: 0 var(--space-3);
font-size: 1rem;
}
.faq-content p {
padding: var(--space-2) 0;
}
}
-534
View File
@@ -1,534 +0,0 @@
/* Instagram and Invite logo in gallery info area */
.gallery__icon--instagram {
height: 32px;
width: 32px;
object-fit: contain;
border-radius: 8px;
background: none;
/* Olive green filter for PNG: #6b6b05 */
filter: brightness(0) saturate(100%) invert(27%) sepia(81%) saturate(749%) hue-rotate(24deg) brightness(90%) contrast(90%);
}
.gallery__icon--invite {
height: 56px;
width: 56px;
object-fit: contain;
margin-left: 0;
transform: translate(-4%, -1%);
position: relative;
}
* { box-sizing: border-box; }
:root {
--black: #000000;
--white: #ffffff;
--button-green: #6b6b05;
--button-green-dark: #514c04;
}
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: #FFFDE3; /* butter background color from stylesheet */
}
.page-wrapper {
max-width: 1440px;
margin: 0 auto;
background: var(--white);
padding: 40px;
border: 1px solid var(--black);
}
/* --- 1. Basic Layout Logic --- */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 24px;
border: 1px solid var(--black);
margin-bottom: 40px; /* Using your 40px margin from the first block */
}
.header__brand {
display: flex;
align-items: center;
gap: 10px;
font-weight: 700;
font-size: 1.2rem;
}
.brand__logo {
height: 34px;
width: auto;
object-fit: contain;
}
/* Grouping container for 'Event finden' and 'Login' */
.header__actions {
display: flex;
align-items: center;
gap: 6px;
}
.top-nav-wrap {
background: #FFFDE3;
padding: 18px 0;
}
.top-nav {
background: rgba(255, 255, 255, 0.95);
border-radius: 30px;
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
min-height: 58px;
padding: 12px 24px;
width: 100%;
max-width: none;
box-sizing: border-box;
margin: 0 0 40px;
}
.brand {
display: inline-flex;
align-items: center;
height: 50px;
text-decoration: none;
}
.brand img {
width: auto;
height: 100%;
max-width: 104px;
display: block;
}
.top-nav-links {
display: flex;
align-items: center;
gap: 16px;
}
.nav-link {
color: #221c1a;
line-height: 1.3;
text-decoration: none;
padding: 8px 20px;
border: 2px solid #e5e1b7;
border-radius: 20px;
transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover,
.nav-link.active,
.nav-link:focus-visible {
background: #6b6b05;
color: #ffffff;
border-color: #6b6b05;
}
.nav-link--login {
background: #6b6b05;
color: #ffffff;
border-color: #6b6b05;
}
.nav-link--login:hover,
.nav-link--login:focus-visible {
background: #ffffff;
color: #6b6b05;
border-color: #6b6b05;
}
.main-content {
width: min(100% - 4rem, 1120px);
margin: 0 auto;
padding: 0 20px;
}
.hero {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 50px;
margin-bottom: 80px;
align-items: center;
padding: 40px 0;
}
.how-it-works {
margin-bottom: 70px;
}
.how-it-works__header {
text-align: center;
margin-bottom: 32px;
}
.how-it-works__header h2 {
font-size: 2rem;
margin: 0;
color: #221c1a;
}
.how-it-works__steps {
display: grid;
grid-template-columns: repeat(3, minmax(180px, 1fr));
gap: 20px;
}
.how-step {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
padding: 28px 20px;
background: var(--white) !important;
border: 2px solid var(--tomato) !important;
border-radius: 28px;
box-shadow: 0 12px 30px rgba(212, 75, 36, 0.08);
}
.how-step__icon {
width: 64px;
height: 64px;
display: grid;
place-items: center;
background: var(--button-green);
color: var(--white);
border-radius: 50%;
font-size: 1.4rem;
}
.how-step__number {
width: 36px;
height: 36px;
display: grid;
place-items: center;
background: #f4efd7;
color: #221c1a;
border-radius: 50%;
font-weight: 700;
}
.how-step__label {
margin: 0;
font-size: 1rem;
line-height: 1.6;
font-weight: 600;
color: #221c1a;
text-align: center;
}
.how-step__icon--brown {
background: #66340d;
}
.how-step__label--brown {
color: var(--tomato);
}
.how-step__label--big {
font-size: 1.25rem;
font-weight: 700;
}
.how-step--numbered {
position: relative;
}
.how-step__corner-number {
position: absolute;
top: 12px;
left: 16px;
font-size: 2.2rem;
font-weight: 700;
}
.how-step__corner-number--brown {
color: var(--tomato);
}
.how-step__png {
width: 192px;
height: 192px;
object-fit: contain;
}
.how-step__png--brown {
filter: brightness(0) saturate(100%) invert(39%) sepia(84%) saturate(1682%) hue-rotate(349deg) brightness(93%) contrast(86%);
}
}
@media (max-width: 900px) {
.how-it-works__steps {
grid-template-columns: 1fr;
}
}
.hero__left {
max-width: 520px;
}
.hero__left p {
margin: 24px 0 32px;
line-height: 1.8;
}
.hero__right {
display: flex;
align-items: center;
justify-content: center;
}
.image-card {
width: 100%;
max-width: 396px;
overflow: hidden;
border-radius: 30px;
}
.hero-image {
width: 100%;
max-width: 396px;
max-height: 464px;
height: auto;
border-radius: 30px;
object-fit: cover;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
@media (max-width: 900px) {
.hero {
grid-template-columns: 1fr;
padding: 30px 0;
}
.hero__right {
order: -1;
}
.hero-image {
min-height: 320px;
}
}
/* Carousel gallery */
.gallery__carousel {
position: relative;
}
.gallery__track {
display: flex;
gap: 20px;
overflow: hidden;
margin-bottom: 30px; /* Space between photos and dots */
scroll-behavior: smooth;
}
.gallery__item {
flex: 0 0 calc((100% - 40px) / 3);
min-width: calc((100% - 40px) / 3);
border-radius: 24px;
overflow: hidden;
background: #fff;
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
aspect-ratio: 2 / 3;
}
.gallery__item img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}
.gallery__arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 48px;
height: 48px;
display: grid;
place-items: center;
border-radius: 0;
background: none;
backdrop-filter: none;
border: none;
color: #ffffff;
cursor: pointer;
font-size: 1.6rem;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
transition: transform 0.2s ease, color 0.2s ease;
z-index: 2;
}
.gallery__arrow:hover {
transform: translateY(-50%) scale(1.15);
color: #e5e1b7;
}
.gallery__arrow--prev {
left: 12px;
}
.gallery__arrow--next {
right: 12px;
}
/* Center arrow removed – using side arrows only */
}
@media (max-width: 900px) {
.gallery__track {
gap: 16px;
}
.gallery__item {
flex: 0 0 100%;
min-width: 100%;
}
}
/* --- 2. Button & Link Styling --- */
.btn {
border: none;
background: var(--button-green);
color: var(--white);
padding: 12px 22px;
font-weight: 700;
cursor: pointer;
text-decoration: none; /* Keeps the link from having an underline */
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 999px;
font-size: 0.95rem;
transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
background-color: var(--button-green-dark);
transform: translateY(-1px);
}
.nav__link {
color: var(--black); /* Fixes the purple link issue */
}
/* --- 3. The "X" Box Logic --- */
.image-card__placeholder, .placeholder {
width: 100%;
height: 100%;
min-height: 250px;
position: relative;
border: 1px solid var(--black);
background: var(--white);
}
.image-card__placeholder::before, .image-card__placeholder::after,
.placeholder::before, .placeholder::after {
content: "";
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
}
/* Drawing the diagonal lines for the wireframe look */
.image-card__placeholder::before, .placeholder::before {
background: linear-gradient(to top left, transparent 49.5%, var(--black) 49.5%, var(--black) 50.5%, transparent 50.5%);
}
.image-card__placeholder::after, .placeholder::after {
background: linear-gradient(to top right, transparent 49.5%, var(--black) 49.5%, var(--black) 50.5%, transparent 50.5%);
}
/* The "X" Box Logic - IMPORTANT */
.image-card__placeholder, .placeholder {
width: 100%;
height: 100%;
min-height: 250px; /* Ensures the box has height */
position: relative; /* REQUIRED for the X lines to stay inside */
border: 1px solid var(--black);
background: var(--white);
}
/* Creating the diagonal lines */
.image-card__placeholder::before, .image-card__placeholder::after,
.placeholder::before, .placeholder::after {
content: "";
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
}
.image-card__placeholder::before, .placeholder::before {
background: linear-gradient(to top left, transparent 49.5%, var(--black) 49.5%, var(--black) 50.5%, transparent 50.5%);
}
.image-card__placeholder::after, .placeholder::after {
background: linear-gradient(to top right, transparent 49.5%, var(--black) 49.5%, var(--black) 50.5%, transparent 50.5%);
}
/* Badges and Buttons */
.social-badge {
display: flex;
justify-content: center; /* This centers the dots */
gap: 10px;
margin-top: 20px; /* This creates space between the photos and the dots */
/* REMOVE any line that says "position: absolute" or "bottom: 16px" */
}
.social-badge__dot { width: 12px; height: 12px; background: var(--black); border-radius: 50%; }
.profile-badge {
width: 60px; height: 60px;
border-radius: 50%;
border: 1px solid var(--black);
margin-top: 20px;
}
.gallery__info {
display: flex;
align-items: center;
gap: 10px;
}
.gallery__handle {
display: flex;
align-items: center;
font-size: 1.1rem;
font-weight: 700;
color: var(--black);
gap: 6px;
}
.gallery__icon {
font-size: 1.15rem;
color: #DD541A;
}
.gallery__at {
font-size: 1.1rem;
color: #222;
}
.gallery__brand {
font-family: 'Inter', sans-serif;
color: #DD541A;
}
/* Footer */
.footer {
display: flex;
justify-content: center;
align-items: center;
padding: 16px 24px;
border: none;
margin-top: 40px;
}
.footer__link {
color: var(--black);
text-decoration: underline;
font-size: 0.8rem;
font-weight: 400;
}
+170 -84
View File
@@ -1,17 +1,37 @@
/* ===========================================
LOGIN_SIGNUP.CSS — Styles for login & signup
Global styles (reset, variables, body, nav,
typography) are in stylesheet_global.css
=========================================== */
/* --- Page layout --- */
.main-content {
display: flex;
justify-content: center;
align-items: center;
flex: 1;
padding: var(--space-4);
}
.container { .container {
margin-top: 5rem;
background-color: var(--white); background-color: var(--white);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
max-width: 1000px; max-width: 1000px;
width: 100%; width: 100%;
display: flex; display: flex;
gap: 20px; gap: var(--space-4);
overflow: hidden; overflow: hidden;
} }
/* --- Image section --- */
.image-section { .image-section {
flex: 1; flex: 1;
background-color: var(--white); background-color: var(--butter-light);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -24,6 +44,9 @@
object-fit: cover; object-fit: cover;
} }
/* --- Form section --- */
.form-section { .form-section {
flex: 1; flex: 1;
padding: 40px; padding: 40px;
@@ -32,85 +55,106 @@
justify-content: center; justify-content: center;
} }
/* Formularelemente */ h1 {
.info-box {
background-color: var(--olive-light);
padding: 15px;
margin-bottom: 30px;
border-radius: 8px;
font-size: 16px;
color: var(--black); color: var(--black);
line-height: 1.4; margin-bottom: var(--space-4);
text-align: center;
} }
/* --- Form elements --- */
.form-group { .form-group {
margin-bottom: 20px; margin-bottom: var(--space-4);
} }
label { label {
display: block; display: block;
margin-bottom: 6px; margin-bottom: var(--space-1);
color: var(--black); color: var(--black);
font-weight: 500; font-weight: 600;
font-size: 14px; font-size: 0.9rem;
} }
input[type="text"], input[type="text"],
input[type="email"], input[type="email"],
input[type="password"] { input[type="password"] {
width: 100%; width: 100%;
padding: 12px; padding: var(--space-2);
border: 1px solid #ddd; border: 2px solid var(--olive-light);
border-radius: 4px; border-radius: var(--radius-md);
font-size: 14px; font-size: 0.9rem;
font-family: var(--font-main);
transition: border-color 0.3s ease; transition: border-color 0.3s ease;
background: var(--white);
color: var(--black);
} }
input:focus { input:focus {
outline: none; outline: none;
border-color: var(--olive-dark); border-color: var(--olive);
box-shadow: 0 0 5px rgba(107, 107, 5, 0.25);
} }
button[type="submit"] {
width: 100%;
/* Hilfstexte & Fehler */ padding: var(--space-2);
.signup-hint, .login-hint { background-color: var(--olive);
text-align: left; color: var(--white);
margin-top: 20px; border: none;
color: var(--black); border-radius: var(--radius-pill);
font-size: 1rem; font-size: 1rem;
line-height: 130%; font-weight: 700;
font-family: var(--font-main);
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
margin-top: var(--space-2);
} }
.signup-hint a, .login-hint a { button[type="submit"]:hover {
color: var(--blue); background-color: var(--olive-dark);
text-decoration: none; transform: translateY(-1px);
font-weight: 500;
transition: color 0.3s ease;
} }
.signup-hint a:hover, .login-hint a:hover { button[type="submit"]:active {
text-decoration: underline; background-color: var(--olive-dark);
text-underline-offset: 2px; transform: translateY(0);
color: var(--blue);
} }
/* --- Info box --- */
.info-box {
background-color: var(--butter-light);
border-left: 4px solid var(--olive);
padding: var(--space-3);
margin-bottom: var(--space-40);
border-radius: 4px;
font-size: 0.9rem;
color: var(--black);
line-height: 1.5;
}
/* --- Hints & errors --- */
.error-message { .error-message {
color: var(--error);
font-size: 13px;
margin-top: 5px; margin-top: 5px;
display: none; display: none;
} }
.form-group.has-error input { .form-group.has-error input {
border-color: var(--error); border-color: var(--error);
box-shadow: 0 0 5px rgba(212, 75, 36, 0.3);
} }
.form-group.has-error .error-message { .form-group.has-error .error-message {
display: block; display: block;
} }
/* Modal / Popup Styles */
/* --- Modal / Popup --- */
.modal { .modal {
display: none; display: none;
position: fixed; position: fixed;
@@ -134,38 +178,19 @@ input:focus {
align-items: center; align-items: center;
} }
.modal-content {
background-color: white;
padding: 40px;
border-radius: 8px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
max-width: 500px;
width: 90%;
text-align: center;
animation: slideIn 0.3s ease;
}
@keyframes slideIn { @keyframes slideIn {
from { transform: translateY(-50px); opacity: 0; } from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; } to { transform: translateY(0); opacity: 1; }
} }
.modal-header {
position: relative;
margin-bottom: 20px;
}
.modal-header h2 {
color: #0084ff;
font-size: 24px;
}
.close-btn { .close-btn {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
font-size: 28px; font-size: 28px;
color: #999; color: var(--black);
background: none; background: none;
border: none; border: none;
cursor: pointer; cursor: pointer;
@@ -176,20 +201,69 @@ input:focus {
justify-content: center; justify-content: center;
} }
.modal-body {
color: #333;
font-size: 16px;
line-height: 1.6;
margin-bottom: 30px;
}
.modal-footer { .modal-footer {
display: flex; display: flex;
gap: 10px; gap: var(--space-2);
justify-content: center; justify-content: center;
} }
/* Responsive Anpassungen */ .btn-primary {
padding: var(--space-2) var(--space-5);
background-color: var(--olive);
color: var(--white);
border: none;
border-radius: var(--radius-pill);
font-size: 1rem;
font-weight: 700;
font-family: var(--font-main);
cursor: pointer;
transition: background-color 0.3s ease;
}
.btn-primary:hover {
background-color: var(--olive-dark);
}
/* --- Footer --- */
.footer {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
padding: var(--space-3) var(--space-5);
border: none;
margin-top: 40px;
}
.footer_link {
color: var(--black);
text-decoration: underline;
font-size: 0.8rem;
font-weight: 400;
}
/* Left aligned */
.footer-left {
justify-self: start;
}
/* Center aligned */
.footer-center {
justify-self: center;
}
/* Right aligned */
.footer-right {
justify-self: end;
display: flex;
gap: var(--space-4);
}
/* --- Responsive --- */
@media (max-width: 768px) { @media (max-width: 768px) {
.container { .container {
flex-direction: column; flex-direction: column;
@@ -198,19 +272,31 @@ input:focus {
.image-section { .image-section {
min-height: 300px; min-height: 300px;
} }
}
.header {
flex-direction: column;
gap: 15px; /* --- Snackbar --- */
}
.snackbar {
.header-buttons { position: fixed;
width: 100%; bottom: 30px;
flex-direction: column; left: 50%;
} transform: translateX(-50%) translateY(100px);
background: var(--olive);
.header-btn { color: var(--white);
width: 100%; padding: var(--space-3) var(--space-40);
text-align: center; border-radius: var(--radius-pill);
} font-size: 1rem;
font-weight: 600;
font-family: var(--font-main);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
opacity: 0;
transition: transform 0.4s ease, opacity 0.4s ease;
z-index: 9999;
pointer-events: none;
}
.snackbar--visible {
transform: translateX(-50%) translateY(0);
opacity: 1;
} }
+292
View File
@@ -0,0 +1,292 @@
.profile-page {
/* Reserve a large safe zone below sticky nav so title/actions are never covered. */
margin-top: 0;
padding-top: 6.5rem;
margin-bottom: var(--space-8);
}
/* Kopfbereich mit Titel und Logout-Aktion. */
.profile-hero {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: var(--space-4);
margin-bottom: var(--space-5);
}
.profile-kicker {
margin: 0;
color: var(--olive);
font-size: 1rem;
font-weight: 500;
letter-spacing: var(--ls-la);
}
#headline {
margin: 0.4rem 0;
color: var(--brown);
font-size: clamp(2rem, 4.4vw, 2.8rem);
}
.profile-subline {
margin: 0;
max-width: 48rem;
}
.profile-logout {
border: none;
cursor: pointer;
}
.profile-grid {
display: grid;
grid-template-columns: 1fr;
gap: var(--space-4);
}
/* Konsistentes Karten-Layout für alle Profilsektionen. */
.profile-panel {
background: var(--butter-light);
border-radius: var(--radius-lg);
padding: var(--space-5);
}
.panel-head {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-3);
}
.panel-title {
margin: 0;
color: var(--brown);
font-size: 1.8rem;
}
.panel-count {
min-width: 2rem;
padding: 0.1rem 0.65rem;
border-radius: var(--radius-pill);
background: var(--olive-light);
color: var(--black);
font-size: 0.95rem;
font-weight: 600;
text-align: center;
}
.profile-card-list {
display: grid;
gap: var(--space-2);
}
/* Einzelne Eventkarte für "Meine Events" und "Meine Anmeldungen". */
.profile-event-card {
background: var(--butter-light);
border: 1.5px solid var(--olive-light);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-interaction);
padding: var(--space-5) var(--space-40);
display: flex;
justify-content: space-between;
gap: var(--space-40);
cursor: pointer;
transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.profile-event-card-clickable {
cursor: pointer;
}
.profile-event-card-clickable:hover {
transform: translateY(-1px);
}
.profile-event-title h3{
margin: 0;
}
/*
.profile-event-meta {
}*/
.profile-event-address-block {
margin-top: 0.55rem;
padding: 0.6rem 0.75rem;
border-radius: var(--radius-sm);
border-left: 4px solid var(--tomato);
background: rgba(232, 237, 209, 0.65);
}
.profile-event-address-label {
margin: 0;
color: var(--olive);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: var(--ls-la);
}
.profile-event-address {
margin: 0.2rem 0 0;
font-size: 0.95rem;
color: var(--black);
font-weight: 600;
line-height: 1.35;
}
.profile-event-link {
flex-shrink: 0;
color: var(--blue);
font-weight: 500;
text-decoration: none;
}
.profile-event-link:hover,
.profile-event-link:focus-visible {
text-decoration: underline;
text-underline-offset: 3px;
}
.profile-event-actions {
display: flex;
align-items: center;
gap: var(--space-2);
}
.profile-empty {
margin: 0;
color: var(--black);
}
.profile-empty-state {
text-align: center;
padding: 2.4rem 1.3rem;
border: 2px solid var(--olive-light);
border-radius: var(--radius-lg);
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 3px 12px rgba(102, 52, 13, 0.08);
}
.profile-empty-kicker {
margin: 0 0 0.5rem;
color: var(--olive);
font-size: 0.8rem;
font-weight: 600;
letter-spacing: var(--ls-la);
}
.profile-empty-state h3 {
margin: 0;
font-size: 1.5rem;
color: var(--brown);
}
.profile-empty-state p {
margin: 0.65rem auto 1rem;
max-width: 36rem;
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-3);
}
.form-group {
margin-bottom: var(--space-3);
}
.form-group label {
display: block;
margin-bottom: 0.35rem;
font-size: 0.95rem;
font-weight: 500;
}
.form-group input {
width: 100%;
border: 1px solid #d8d8d8;
border-radius: var(--radius-sm);
background: var(--white);
padding: 0.7rem 0.85rem;
font-size: 1rem;
}
.form-group input:focus {
outline: 2px solid rgba(107, 107, 5, 0.35);
outline-offset: 1px;
}
.input-hint {
margin: 0.4rem 0 0;
font-size: 0.9rem;
color: #535353;
}
.input-error {
margin-top: 0.35rem;
color: var(--error);
font-size: 0.85rem;
display: none;
}
.form-group.has-error .input-error {
display: block;
}
.form-group.has-error input {
border-color: var(--error);
}
.profile-feedback {
margin: 0.75rem 0 0;
font-size: 0.95rem;
color: var(--olive);
min-height: 1.3rem;
}
.profile-cta-row {
display: flex;
gap: var(--space-2);
margin-top: var(--space-3);
}
.profile-button-secondary {
background: var(--tomato);
}
.profile-button-secondary:hover {
background: var(--tomato-dark);
}
@media (max-width: 48rem) {
.profile-page {
padding-top: 5.5rem;
}
.profile-hero {
flex-direction: column;
align-items: stretch;
}
.profile-logout {
width: max-content;
}
.form-grid {
grid-template-columns: 1fr;
}
.profile-event-card {
flex-direction: column;
align-items: flex-start;
}
.profile-event-actions {
width: 100%;
justify-content: flex-start;
flex-wrap: wrap;
}
}
+666 -44
View File
@@ -20,49 +20,54 @@
--tomato: #D44B24; --tomato: #D44B24;
--tomato-dark: #D44B24; --tomato-dark: #D44B24;
--olive: #6B6B05; --olive: #6B6B05;
--olive-dark: #5C5C05; --olive-dark: #545404;
--olive-light: #C8CC7A; --olive-light: #C8CC7A;
--butter: #F5F1BC; --butter: #F5F1BC;
--butter-light: #F7F6E6; --butter-light: #FAF9F0;
--white: #ffffff; --white: #ffffff;
--black: #22211A; --black: #141411;
--brown: #66340d; --brown: #66340d;
--blue: #3489DA; --blue: #3489DA;
--blue-dark: #1D70BF; --blue-dark: #1D70BF;
--error: #FF3B30; --error: #FF3B30;
--error-text: #d91200;
--font-main: 'Jost', sans-serif; --font-main: 'Jost', sans-serif;
--font-size-base: 1rem; --font-size-base: 1rem;
/* Spacing Scale */ /* Shadows */
--space-1: 0.5rem; --shadow-interaction: 0 0.1875rem 0.75rem rgba(102, 52, 13, 0.1);
--space-2: 0.75rem; --shadow-error: 0 0 0 2px rgba(255, 59, 48, 0.1);
--space-3: 1rem;
--space-4: 1.25rem; /* Spacing Scale > 1rem = 16px*/
--space-5: 1.5rem; --space-0: 0.25rem; /* 4px */
--space-6: 2rem; --space-01: 0.375rem; /* 6px */
--space-7: 3rem; --space-1: 0.5rem; /* 8px */
--space-8: 4rem; --space-2: 0.75rem; /* 12px */
--space-3: 1rem; /* 16px */
--space-20: 1.25rem; /* 20px */
--space-4: 1.5rem; /* 24px */
--space-5: 2rem; /* 32px */
--space-40: 2.5rem; /* 40px */
--space-7: 3rem; /* 48px */
--space-8: 4rem; /* 64px */
/* Radius Scale */ /* Radius Scale */
--radius-pill: 62.4375rem; --radius-pill: 100rem;
--radius-sm: 0.5rem; --radius-sm: 0.5rem;
--radius-md: 1.5rem; --radius-md: 1rem;
--radius-lg: 1.875rem; --radius-lg: 2rem;
/* Letter Spacing */ /* Letter Spacing */
--ls-none: 0; --ls-none: 0;
--ls-sm: 2.5%; --ls-sm: 2.5%;
--ls-label: 0.045rem; --ls-la: 5%;
} }
/* Base Styles */ /* Base Styles */
body { body {
font-family: var(--font-main); font-family: var(--font-main);
font-size: 1.125rem;
line-height: 1.5;
color: var(--black);
background-color: var(--butter); background-color: var(--butter);
} }
@@ -78,20 +83,111 @@ h1, h2, h3, h4, h5, h6 {
} }
h1 { h1 {
font-size: 2em; font-size: clamp(2.25rem, 5vw, 3rem);
font-weight: 600; font-weight: 600;
line-height: 120%; line-height: 120%;
letter-spacing: var(--ls-sm); letter-spacing: var(--ls-sm);
color: var(--brown); color: var(--brown);
margin-bottom: var(--space-5);
}
h2 {
font-size: 2.5rem;
font-weight: 600;
line-height: 120%;
letter-spacing: var(--ls-sm);
color: var(--brown);
margin-bottom: var(--space-4);
}
h3 {
font-size: 2rem;
font-weight: 600;
line-height: 120%;
letter-spacing: var(--ls-sm);
color: var(--brown);
margin-bottom: 1.5rem;
} }
p { p {
font-family: 'Jost', sans-serif; font-family: var(--font-main);
font-size: 1.125rem;
line-height: 1.5;
color: var(--black);
margin-bottom: 1rem; margin-bottom: 1rem;
} }
/* Layout */ .p-small {
font-family: var(--font-main);
font-size: 1rem;
line-height: 1.5;
margin-bottom: 0rem;
}
.link-text a{
color: var(--blue);
margin-top: var(--space-4);
text-decoration: none;
transition: color 0.3s ease;
}
.link-text a:hover {
color: var(--blue-dark);
text-decoration: underline;
}
.link-text-footer{
color: var(--black);
text-decoration: none;
transition: color 0.3s ease;
}
.link-text-footer:hover {
text-decoration: underline;
}
.error-message {
color: var(--error-text);
font-size: 1rem;
}
/* Margins */
.margin-bottom-24 {
margin-bottom: var(--space-4);
}
.margin-bottom-40 {
margin-bottom: var(--space-40);
}
.event-side {
/* Right-side action area: availability status and optional signup button. */
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
gap: var(--space-3);
padding-top: 36px;
flex-shrink: 0;
}
/* Event-Beschrieb oberhalb von Eventtitel */
.event-location,
.event-date-time,
.event-gast,
.profile-event-meta {
color: var(--olive);
font-family: var(--font-main);
font-size: 1.125rem;
font-weight: 400;
line-height: 1;
display: inline-flex;
gap: var(--space-0);
}
/* Layout */
.main-content { .main-content {
margin-top: var(--space-8); margin-top: var(--space-8);
@@ -103,12 +199,32 @@ p {
margin: 0 auto; margin: 0 auto;
} }
/*
Content pages with sticky nav require top padding to avoid overlap.
Used on event_overview, event_detail, and similar pages.
*/
.container.page-content-safe {
padding-top: 6.5rem;
}
/* Detail pages with back button need less top padding. */
.container.page-content-safe.detail-page {
padding-top: 3.5rem;
}
.icon {
width: 20px;
height: 20px;
flex: 0 0 20px;
display: inline-block;
}
/* Top Navigation */ /* Top Navigation */
.top-nav-wrap { .top-nav-wrap {
position: sticky; position: sticky;
height: 58px; height: 58px;
top: 1rem; top: 1rem;
z-index: 1000; z-index: 100;
background: none; background: none;
padding: 0 1rem; padding: 0 1rem;
} }
@@ -119,7 +235,7 @@ p {
-webkit-backdrop-filter: blur(3px) saturate(140%);*/ -webkit-backdrop-filter: blur(3px) saturate(140%);*/
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
box-shadow: 0 0.1875rem 0.75rem rgba(102, 52, 13, 0.1); box-shadow: var(--shadow-interaction);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@@ -147,22 +263,24 @@ p {
.nav-tab { .nav-tab {
color: var(--black); color: var(--black);
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 500; font-weight: 400;
letter-spacing: var(--ls-sm); letter-spacing: var(--ls-sm);
line-height: 1; line-height: 1;
text-decoration: none; text-decoration: none;
padding-bottom: 4px;
} }
.nav-tab:hover, .nav-tab:active, .nav-tab:hover, .nav-tab:active,
.nav-tab:focus-visible { .nav-tab:focus-visible {
text-decoration: underline; text-decoration: underline;
text-underline-offset: 4px; text-underline-offset: 6px;
text-decoration-thickness: 1.5px;
} }
.button-small:hover, .button-small:active, .nav-tab--active {
.button-small:focus-visible { text-decoration: underline;
background: var(--olive-dark); text-underline-offset: 6px;
color: var(--black); text-decoration-thickness: 1.5px;
} }
.nav-tab-links { .nav-tab-links {
@@ -172,42 +290,273 @@ p {
} }
/* Buttons */ /* Badge */
.button { .badge,
.host-role {
position: relative;
display: inline-block; display: inline-block;
padding: 0.5rem 1.25rem; width: fit-content;
color: var(--olive-dark);
font-family: var(--font-main);
font-size: 1rem;
font-weight: 600;
letter-spacing: var(--ls-la);
z-index: 0;
}
.badge::before,
.host-role::before {
content: "";
position: absolute;
inset: 0;
background-color: var(--olive-light);
margin: -0.25rem -0.75rem;
z-index: -1;
clip-path: polygon(
1.5% 0%,
100% 0%,
98.5% 100%,
0% 100%
);
}
/* Buttons */
.button-primary {
display: inline-block;
padding: var(--space-01) var(--space-4);
background-color: var(--olive); background-color: var(--olive);
border: none; border: 1.5px solid var(--olive);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
font-family: 'Jost', sans-serif; font-family: var(--font-main);
font-weight: 400; font-weight: 400;
font-size: 1.25rem; font-size: 1.25rem;
color: var(--butter-light); color: var(--butter-light);
cursor: pointer; cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
} }
.button:hover { .button-primary:hover {
background-color: var(--olive-dark); background-color: var(--olive-dark);
border-color: var(--olive-dark);
} }
.button-primary:disabled {
border-color: transparent;
background: transparent;
color: var(--olive-dark);
opacity: 0.6;
padding: var(--space-01) 0 var(--space-01) var(--space-4);
cursor: not-allowed;
}
.button-primary-abmelden {
display: inline-block;
padding: 0.375rem 1.5rem;
background-color: var(--blue);
border: 1.5px solid var(--blue);
border-radius: var(--radius-lg);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.25rem;
color: var(--butter-light);
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.button-primary-abmelden:hover,
.button-primary-abmelden:focus-visible {
background: var(--blue-dark);
border-color: var(--blue-dark);
}
.button-primary-eigener-event{
display: inline-block;
padding: 0.375rem 1.5rem;
background-color: var(--blue);
border: 1.5px solid var(--blue);
border-radius: var(--radius-lg);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.25rem;
color: var(--butter-light);
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.button-primary-eigener-event:hover {
background: var(--blue-dark);
border-color: var(--blue-dark);
}
.button-primary-eigener-event:disabled {
border-color: transparent;
background-color: var(--olive-light);
color: var(--olive-dark);
cursor: not-allowed;
}
.button-secondary {
display: inline-block;
padding: 0.375rem 1.5rem;
background-color: transparent;
border: 1.5px solid var(--olive);
border-radius: var(--radius-lg);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.25rem;
color: var(--olive);
cursor: pointer;
text-decoration: none;
transition: color 0.2s ease;
}
.button-secondary:hover {
color: var(--olive-dark);
background-color: var(--olive-light);
border-color: var(--olive-dark);
}
/* Butter-colored back button for detail pages. */
.btn-back-to-overview {
display: inline-block;
padding: 0.5rem 1.5rem;
background-color: var(--butter);
border: 1.5px solid var(--olive-light);
border-radius: var(--radius-lg);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.125rem;
color: var(--olive);
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
margin-bottom: var(--space-4);
}
.btn-back-to-overview:hover,
.btn-back-to-overview:focus-visible {
background-color: var(--butter-light);
border-color: var(--olive);
}
.button--outline {
background-color: transparent;
color: var(--olive);
border: 1.5px solid var(--olive);
}
.button--outline:hover {
background-color: var(--olive-light);
color: var(--black);
}
.counter-button {
width: 44px;
height: 44px;
background-color: var(--olive);
border: 1.5px solid var(--olive);
border-radius: var(--radius-lg);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.25rem;
color: var(--butter-light);
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.counter-button:hover, .counter-button:focus-visible {
background-color: var(--olive-dark);
border-color: var(--olive-dark);
}
.category-item {
border: 1.5px solid var(--tomato);
color: var(--tomato);
border-radius: var(--radius-pill);
background: var(--butter-light);
font-family: var(--font-main);
font-weight: 400;
font-size: 1.125rem;
line-height: 1;
padding: var(--space-1) var(--space-20);
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease;
}
.category-item:hover, .category-item:focus-visible {
background: var(--tomato);
color: var(--butter-light);
}
.category-item.is-active, .category-item.active {
background: var(--tomato);
color: var(--butter-light);
}
.category-item-profile {
font-size: 1.25rem;
font-weight: 400;
line-height: 1;
padding: var(--space-1) var(--space-4);
}
.category-items {
display: inline-flex;
flex-wrap: wrap;
gap: var(--space-1);
}
.button-small { .button-small {
background: var(--olive); background: var(--olive);
color: var(--butter-light); color: var(--butter-light);
border: none;
font-size: 1.125rem; font-size: 1.125rem;
font-weight: 500;
letter-spacing: var(--ls-sm); letter-spacing: var(--ls-sm);
font-family: var(--font-main);
font-weight: 400;
line-height: 1; line-height: 1;
border-radius: var(--radius-pill);
padding: 10px var(--space-3);
text-decoration: none; text-decoration: none;
cursor: pointer;
padding: var(--space-1) var(--space-4);
border-radius: var(--radius-md);
} }
§
.button-small:hover, .button-small:active, .button-small:hover, .button-small:active,
.button-small:focus-visible { .button-small:focus-visible {
background: var(--olive-dark); background: var(--olive-dark);
}
.logout-button {
margin-right: -1.25rem;
}
/* Auth-Links in ausgeloggter Navigation: klarer Aktiv-/Default-Zustand. */
.auth-nav-button--default {
background: transparent;
color: var(--olive);
border: 2px solid var(--olive);
}
.auth-nav-button--default:hover,
.auth-nav-button--default:focus-visible {
background: var(--olive-light);
color: var(--black);
}
.auth-nav-button--active {
background: var(--olive);
color: var(--butter-light); color: var(--butter-light);
border: 2px solid var(--olive);
} }
.profile-pill { .profile-pill {
@@ -215,9 +564,9 @@ p {
height: 2.375rem; height: 2.375rem;
border-radius: 1.1875rem; border-radius: 1.1875rem;
background: var(--tomato); background: var(--tomato);
color: var(--butter); color: var(--white);
font-size: 1.0625rem; font-size: 1.0625rem;
font-weight: 500; font-weight: 400;
letter-spacing: var(--ls-ui); letter-spacing: var(--ls-ui);
line-height: 1.3; line-height: 1.3;
display: inline-flex; display: inline-flex;
@@ -228,11 +577,284 @@ p {
/* Utilities */ /* Utilities */
.text-center { .text-center {
text-align: left; text-align: center;
} }
.hidden { .hidden {
display: none !important;
}
/* Text Muted */
.text-muted {
color: #888;
font-size: 0.8rem;
font-weight: 400;
line-height: 1.4;
}
/* Instagram Invite */
.instagram-invite {
display: flex;
align-items: center;
justify-content: center;
height: 1em; /* keeps it aligned with text size */
margin-top: var(--space-7);
}
.instagram-invite__link {
display: flex;
align-items: center;
gap: 16px;
text-decoration: none;
}
.instagram-invite_icon {
height: 32px;
width: 32px;
object-fit: contain;
border-radius: 8px;
filter: brightness(0) saturate(100%) invert(27%) sepia(81%) saturate(749%) hue-rotate(24deg) brightness(90%) contrast(90%);
}
.footer-invite_logo {
height: 56px;
width: 56px;
object-fit: contain;
}
.inline {
color: var(--tomato);
display: flex;
align-items: center;
gap: 8px;
}
/* Info button for event overview page */
.btn-info {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border: 1.5px solid var(--olive-light);
border-radius: 999px;
background-color: var(--butter);
color: var(--olive);
font-family: var(--font-main);
font-size: 1.5rem;
font-weight: 600;
line-height: 1;
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease;
flex-shrink: 0;
}
.btn-info:hover,
.btn-info:focus-visible {
background-color: var(--butter-light);
border-color: var(--olive);
}
/* Modal / Popup */
.modal {
display: none; display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.4);
animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.modal.show {
display: flex;
justify-content: center;
align-items: center;
}
.modal-content {
background-color: var(--white);
padding: var(--space-20) var(--space-20) var(--space-40) var(--space-20);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-interaction);
max-width: 500px;
width: 90%;
text-align: center;
animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
from { transform: translateY(-50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.modal-header {
position: relative;
}
.modal-header h2 {
padding: var(--space-20)var(--space-20) 0 var(--space-20);
}
.close-btn {
position: absolute;
right: 0;
top: 0;
font-size: 28px;
color: var(--black);
background: none;
border: none;
cursor: pointer;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}
.modal-close {
position: absolute;
right: 0;
top: 0;
font-size: 28px;
color: var(--black);
background: none;
border: none;
cursor: pointer;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
}
.modal-body {
padding: var(--space-20) var(--space-20) var(--space-4) var(--space-20);
}
.modal-footer {
display: flex;
gap: var(--space-2);
justify-content: center;
}
/* Snackbar */
.snackbar {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%) translateY(100px);
background: var(--olive);
color: var(--white);
padding: var(--space-3) var(--space-40);
border-radius: var(--radius-pill);
font-size: 1rem;
font-weight: 600;
font-family: var(--font-main);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
opacity: 0;
transition: transform 0.4s ease, opacity 0.4s ease;
z-index: 9999;
pointer-events: none;
}
.snackbar--visible {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
.snackbar--danger {
background: var(--tomato);
}
/* Lightbox */
.lightbox {
position: fixed;
inset: 0;
z-index: 200;
display: none;
align-items: center;
justify-content: center;
padding: 24px;
}
.lightbox.is-open {
display: flex;
}
.lightbox__backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.75);
}
.lightbox__content {
position: relative;
margin: 0;
max-width: min(96vw, 1100px);
max-height: 90vh;
z-index: 1;
}
.lightbox__image {
display: block;
width: 100%;
max-height: 90vh;
object-fit: contain;
border-radius: 16px;
background: #111;
}
.lightbox__close {
position: absolute;
top: -42px;
right: 0;
border: 0;
background: transparent;
color: var(--white);
font-size: 40px;
line-height: 1;
cursor: pointer;
}
/* Footer */
.footer {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
margin-top: 120px;
padding: var(--space-3) var(--space-7);
}
.footer-links {
display: flex;
gap: var(--space-4);
}
/* Left aligned */
.footer-left {
justify-self: start;
}
/* Centered */
.footer-center {
justify-self: center;
}
/* Right aligned */
.footer-right {
justify-self: end;
display: flex;
gap: var(--space-4);
} }
/* Media Queries (Responsive) */ /* Media Queries (Responsive) */
+16 -13
View File
@@ -1,20 +1,21 @@
[ [
{ {
"id": 1, "id": 1,
"title": "Italienische Tavolata", "title": "Italienische Tavolata",
"location": "Luzern", "location": "Luzern",
"date": "19. MÄR. 2026", "address": "Pilatusstrasse 18, 6003 Luzern",
"time": "18:30 UHR", "date": "22. APR. 2026",
"category": "DINNER", "time": "15:30 UHR",
"diet": "VEGGIE", "category": "Dinner",
"spots": 6, "diet": "Vegetarisch",
"spots": 8,
"host": { "host": {
"name": "Ferdinando", "name": "Ferdinando",
"initial": "F" "initial": "F"
}, },
"hostMessage": [ "hostMessage": [
"Ciao zusammen! Ich liebe die italienische Küche, nicht nur wegen des Essens, sondern wegen des Gefühls: Alle sitzen an einem langen Tisch, teilen sich grosse Platten und geniessen die Zeit.", "Ciao zusammen! Ich liebe die italienische Küche, nicht nur wegen des Essens, sondern wegen des Gefühls: Alle sitzen an einem langen Tisch, teilen sich grosse Platten und geniessen die Zeit.",
"Genau das möchte ich mit euch teilen. Ich bereite dafuer eine klassische Tavolata vor, bei der verschiedene Gerichte in die Mitte des Tisches kommen und sich jeder bedient." "Genau das möchte ich mit euch teilen. Ich bereite dafür eine klassische Tavolata vor, bei der verschiedene Gerichte in die Mitte des Tisches kommen und sich jeder bedient."
], ],
"menu": [ "menu": [
"Bruschetta-Variationen und Antipasti", "Bruschetta-Variationen und Antipasti",
@@ -43,9 +44,10 @@
"id": 2, "id": 2,
"title": "Noche Peruana", "title": "Noche Peruana",
"location": "Chur", "location": "Chur",
"date": "11. APR. 2026", "address": "Obere Gasse 41, 7000 Chur",
"date": "12. April 2026",
"time": "19:00 UHR", "time": "19:00 UHR",
"category": "DINNER", "category": "Dinner",
"diet": "Omnivore", "diet": "Omnivore",
"spots": 4, "spots": 4,
"host": { "host": {
@@ -55,7 +57,7 @@
"hostMessage": [ "hostMessage": [
"¡Hola a todos! Ich lade euch ein auf eine kulinarische Reise nach Peru.", "¡Hola a todos! Ich lade euch ein auf eine kulinarische Reise nach Peru.",
"Ich koche für euch ein authentisches peruanisches Sharing-Menü, das vor Lebensfreude nur so sprüht. Freut euch auf eine Explosion aus leuchtenden Farben, fein abgestimmter Schärfe und der unverwechselbaren Frische verschiedenster Kräuter.", "Ich koche für euch ein authentisches peruanisches Sharing-Menü, das vor Lebensfreude nur so sprüht. Freut euch auf eine Explosion aus leuchtenden Farben, fein abgestimmter Schärfe und der unverwechselbaren Frische verschiedenster Kräuter.",
"Wir genießen den Abend gemeinsam in mehreren kleinen Gängen, ganz nach dem Sharing-Prinzip. Dabei entdecken wir die klassischen Aromen meiner Heimatstadt Lima – von traditionell bis modern interpretiert.", "Wir geniessen den Abend gemeinsam in mehreren kleinen Gängen, ganz nach dem Sharing-Prinzip. Dabei entdecken wir die klassischen Aromen meiner Heimatstadt Lima – von traditionell bis modern interpretiert.",
"Es wird gesellig, aromatisch und ein echtes Erlebnis für alle Sinne. ¡Buen provecho!" "Es wird gesellig, aromatisch und ein echtes Erlebnis für alle Sinne. ¡Buen provecho!"
], ],
"menu": [ "menu": [
@@ -83,11 +85,12 @@
{ {
"id": 3, "id": 3,
"title": "Japanese Delight", "title": "Japanese Delight",
"location": "ZÜRICH", "location": "Zürich",
"address": "Limmatquai 92, 8001 Zürich",
"date": "02. MAI. 2026", "date": "02. MAI. 2026",
"time": "12:30 UHR", "time": "12:30 UHR",
"category": "LUNCH", "category": "Lunch",
"diet": "Pescetarisch", "diet": "Fisch",
"spots": 8, "spots": 8,
"host": { "host": {
"name": "Akiko", "name": "Akiko",
+107
View File
@@ -0,0 +1,107 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Invité | Datenschutz</title>
<link rel="stylesheet" href="css/stylesheet_global.css" />
<script src="js/navigation.js" defer></script>
</head>
<body>
<header class="top-nav-wrap">
<div class="top-nav">
<a class="brand" href="index.html" aria-label="Zur Startseite">
<img src="assets/logo_invite.svg" alt="Invité">
</a>
<nav class="nav-tab-links" aria-label="Hauptnavigation">
<a class="button-small" href="login.html" aria-label="Login">Login</a>
</nav>
</div>
</header>
<main class="main-content" style="padding: 40px 20px; max-width: 800px; margin: 0 auto;">
<h1>Datenschutzerklärung</h1>
<h3>1. Verantwortliche Stelle</h3>
<p>
Invité GmbH<br>
Musterstrasse 12<br>
7000 Chur<br>
Schweiz<br>
E-Mail: datenschutz@invite-cooking.ch
</p>
<h3>2. Erhebung und Verarbeitung personenbezogener Daten</h3>
<p>
Beim Besuch unserer Website werden automatisch Informationen allgemeiner Natur erfasst.
Diese Informationen (Server-Logfiles) beinhalten die Art des Webbrowsers, das verwendete
Betriebssystem, den Domainnamen Ihres Internet-Service-Providers, Ihre IP-Adresse und
Ähnliches. Sie werden ausschliesslich zur technischen Bereitstellung und Verbesserung
unserer Website verwendet.
</p>
<h3>3. Registrierung und Nutzerkonto</h3>
<p>
Bei der Erstellung eines Nutzerkontos erheben wir folgende Daten: Name, E-Mail-Adresse
und Passwort. Diese Daten werden ausschliesslich zur Bereitstellung unserer Dienste
verwendet und nicht an Dritte weitergegeben.
</p>
<h3>4. Cookies</h3>
<p>
Unsere Website verwendet Cookies, um die Nutzererfahrung zu verbessern. Cookies sind
kleine Textdateien, die auf Ihrem Endgerät gespeichert werden. Sie können die Verwendung
von Cookies in Ihren Browsereinstellungen deaktivieren. Bitte beachten Sie, dass dadurch
die Funktionalität der Website eingeschränkt sein kann.
</p>
<h3>5. Datenweitergabe an Dritte</h3>
<p>
Eine Übermittlung Ihrer persönlichen Daten an Dritte findet nicht statt, es sei denn,
wir sind gesetzlich dazu verpflichtet oder Sie haben Ihre ausdrückliche Einwilligung
erteilt.
</p>
<h3>6. Datensicherheit</h3>
<p>
Wir setzen technische und organisatorische Sicherheitsmassnahmen ein, um Ihre Daten
gegen zufällige oder vorsätzliche Manipulation, Verlust, Zerstörung oder den Zugriff
unberechtigter Personen zu schützen. Unsere Sicherheitsmassnahmen werden entsprechend
der technologischen Entwicklung fortlaufend verbessert.
</p>
<h3>7. Ihre Rechte</h3>
<p>
Sie haben jederzeit das Recht auf Auskunft über die bei uns gespeicherten
personenbezogenen Daten. Ebenso haben Sie das Recht auf Berichtigung, Löschung
oder Einschränkung der Verarbeitung Ihrer Daten. Bitte wenden Sie sich dazu an:
datenschutz@invite-cooking.ch
</p>
<h3>8. Änderungen dieser Datenschutzerklärung</h3>
<p>
Wir behalten uns vor, diese Datenschutzerklärung gelegentlich anzupassen, damit sie
stets den aktuellen rechtlichen Anforderungen entspricht oder um Änderungen unserer
Leistungen umzusetzen. Für Ihren erneuten Besuch gilt dann die neue Datenschutzerklärung.
</p>
</main>
<div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
</body>
</html>
+84 -46
View File
@@ -3,15 +3,19 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Event erstellen | Invité</title> <title>Invité | Event erstellen</title>
<!-- Stylesheet für diese Seite--> <!-- Stylesheet für diese Seite-->
<link rel="stylesheet" href="css/event_create.css" /> <link rel="stylesheet" href="css/event_create.css" />
<!-- Globales Stylesheet --> <script src="js/navigation.js" defer></script>
<!-- Globales Stylesheet -->
<link rel="stylesheet" href="css/stylesheet_global.css"> <link rel="stylesheet" href="css/stylesheet_global.css">
</head> </head>
<body> <body>
<!-- Top Navigation mit Seitenlinks --> <!-- Top Navigation mit Seitenlinks -->
<header class="top-nav-wrap"> <header class="top-nav-wrap">
<div class="top-nav"> <div class="top-nav">
@@ -19,9 +23,7 @@
<img src="assets/logo_invite.svg" alt="Invite Logo"> <img src="assets/logo_invite.svg" alt="Invite Logo">
</a> </a>
<nav class="nav-tab-links" aria-label="Hauptnavigation"> <nav class="nav-tab-links" aria-label="Hauptnavigation">
<a class="nav-tab" href="event_overview.html">Event finden</a> <a class="button-small" href="login.html" aria-label="Login">Login</a>
<a class="nav-tab" href="event_create.html">Event erstellen</a>
<a class="button-small" href="login.html" aria-label="Profil">Login</a>
</nav> </nav>
</div> </div>
</header> </header>
@@ -39,13 +41,13 @@
> >
<div class="step-layout step-layout--intro"> <div class="step-layout step-layout--intro">
<div class="step-copy"> <div class="step-copy">
<p class="step-kicker">Event erstellen</p> <p class="badge">Event erstellen</p>
<h1 id="intro-title">Hey <span id="username">{{username}}</span>, was hast du vor?</h1> <h1 id="intro-title">Hey <span id="username">{{username}}</span>, was hast du vor?</h1>
<p class="step-text"> <p class="step-text">
Erzähl uns von deiner Idee – vom Essen bis zur Stimmung. Ob Dinner, Brunch Erzähl uns von deiner Idee, vom Essen bis zur Stimmung. Ob Dinner, Brunch
oder etwas ganz Eigenes – wir helfen dir dabei, dein Event in sieben Schritten aufzubauen. oder etwas ganz Eigenes wir helfen dir dabei, dein Event in sieben Schritten aufzubauen.
</p> </p>
<button type="button" class="button button--primary button--intro" data-start-flow> <button type="button" class="button-primary button--intro" data-start-flow>
Los geht’s! Los geht’s!
</button> </button>
</div> </div>
@@ -63,11 +65,11 @@
<section class="step" data-step="1" aria-labelledby="step1-title"> <section class="step" data-step="1" aria-labelledby="step1-title">
<div class="step-layout"> <div class="step-layout">
<div class="step-copy"> <div class="step-copy">
<p class="step-kicker">Schritt 1</p> <p class="badge">Schritt 1</p>
<h2 id="step1-title">Was hast du vor?</h2> <h2 id="step1-title">Was hast du vor?</h2>
<p class="step-text"> <p class="step-text">
Erzähl uns, was für ein Event du planst. Ist es ein gemütlicher Brunch, Erzähl uns, was für ein Event du planst. Ist es ein gemütlicher Brunch,
ein Dinner mit Wow-Effekt oder einfach ein entspannter Abend mit gutem Essen? ein Dinner mit Wow-Effekt oder einfach ein entspanntes Mittagessen mit gutem Essen?
</p> </p>
</div> </div>
@@ -136,7 +138,7 @@
<section class="step" data-step="2" aria-labelledby="step2-title"> <section class="step" data-step="2" aria-labelledby="step2-title">
<div class="step-layout"> <div class="step-layout">
<div class="step-copy"> <div class="step-copy">
<p class="step-kicker">Schritt 2</p> <p class="badge">Schritt 2</p>
<h2 id="step2-title">Was kommt auf den Tisch?</h2> <h2 id="step2-title">Was kommt auf den Tisch?</h2>
<p class="step-text"> <p class="step-text">
Mach uns neugierig. Was gibt es zu essen? Gibt es eine bestimmte Ernährungsform oder ein Motto? Je mehr du verrätst, desto besser können sich deine Gäste auf dein Event freuen. Mach uns neugierig. Was gibt es zu essen? Gibt es eine bestimmte Ernährungsform oder ein Motto? Je mehr du verrätst, desto besser können sich deine Gäste auf dein Event freuen.
@@ -147,20 +149,24 @@
<fieldset class="form-field"> <fieldset class="form-field">
<legend>Ernährungsform</legend> <legend>Ernährungsform</legend>
<div class="option-grid option-grid--3"> <div class="option-grid option-grid--4">
<label class="option-card"> <label class="option-card">
<input type="radio" name="dietType" value="Omnivor" required /> <input type="checkbox" name="dietType" value="Fleisch" />
<span>Omnivor</span> <span>Fleisch</span>
<small>Fleisch und/oder Fisch</small>
</label> </label>
<label class="option-card"> <label class="option-card">
<input type="radio" name="dietType" value="Vegetarisch" /> <input type="checkbox" name="dietType" value="Fisch" />
<span>Fisch</span>
</label>
<label class="option-card">
<input type="checkbox" name="dietType" value="Vegetarisch" />
<span>Vegetarisch</span> <span>Vegetarisch</span>
</label> </label>
<label class="option-card"> <label class="option-card">
<input type="radio" name="dietType" value="Vegan" /> <input type="checkbox" name="dietType" value="Vegan" />
<span>Vegan</span> <span>Vegan</span>
</label> </label>
</div> </div>
@@ -177,7 +183,7 @@
<section class="step" data-step="3" aria-labelledby="step3-title"> <section class="step" data-step="3" aria-labelledby="step3-title">
<div class="step-layout"> <div class="step-layout">
<div class="step-copy"> <div class="step-copy">
<p class="step-kicker">Schritt 3</p> <p class="badge">Schritt 3</p>
<h2 id="step3-title">Gibt es etwas zu beachten?</h2> <h2 id="step3-title">Gibt es etwas zu beachten?</h2>
<p class="step-text"> <p class="step-text">
Gibt es Allergien, Unverträglichkeiten oder andere Hinweise, die für dein Event wichtig sind? So wissen deine Gäste gleich, worauf sie sich einstellen können. Gibt es Allergien, Unverträglichkeiten oder andere Hinweise, die für dein Event wichtig sind? So wissen deine Gäste gleich, worauf sie sich einstellen können.
@@ -218,7 +224,7 @@
<section class="step" data-step="4" aria-labelledby="step4-title"> <section class="step" data-step="4" aria-labelledby="step4-title">
<div class="step-layout"> <div class="step-layout">
<div class="step-copy"> <div class="step-copy">
<p class="step-kicker">Schritt 4</p> <p class="badge">Schritt 4</p>
<h2 id="step4-title">Wann findet dein Event statt?</h2> <h2 id="step4-title">Wann findet dein Event statt?</h2>
<p class="step-text"> <p class="step-text">
Wähle Datum und Uhrzeit für dein Event. So können deine Gäste direkt einschätzen, ob der Termin für sie passt. Wähle Datum und Uhrzeit für dein Event. So können deine Gäste direkt einschätzen, ob der Termin für sie passt.
@@ -244,7 +250,7 @@
<section class="step" data-step="5" aria-labelledby="step5-title"> <section class="step" data-step="5" aria-labelledby="step5-title">
<div class="step-layout"> <div class="step-layout">
<div class="step-copy"> <div class="step-copy">
<p class="step-kicker">Schritt 5</p> <p class="badge">Schritt 5</p>
<h2 id="step5-title">Wo findet dein Event statt?</h2> <h2 id="step5-title">Wo findet dein Event statt?</h2>
<p class="step-text"> <p class="step-text">
Sag uns, wo dein Event stattfindet. Keine Sorge: Die genaue Adresse sehen Gäste erst nach der Buchung. Sag uns, wo dein Event stattfindet. Keine Sorge: Die genaue Adresse sehen Gäste erst nach der Buchung.
@@ -268,7 +274,7 @@
<section class="step" data-step="6" aria-labelledby="step6-title"> <section class="step" data-step="6" aria-labelledby="step6-title">
<div class="step-layout"> <div class="step-layout">
<div class="step-copy"> <div class="step-copy">
<p class="step-kicker">Schritt 6</p> <p class="badge">Schritt 6</p>
<h2 id="step6-title">Gib deinem Event den letzten Schliff.</h2> <h2 id="step6-title">Gib deinem Event den letzten Schliff.</h2>
<p class="step-text"> <p class="step-text">
Jetzt bekommt dein Event seinen Namen und die Atmosphäre, die Lust aufs Dabeisein macht. Jetzt bekommt dein Event seinen Namen und die Atmosphäre, die Lust aufs Dabeisein macht.
@@ -278,14 +284,23 @@
<div class="step-fields"> <div class="step-fields">
<div class="form-field"> <div class="form-field">
<label for="eventTitle">Wie soll dein Event heißen?</label> <label for="eventTitle">Wie soll dein Event heissen?</label>
<input type="text" id="eventTitle" name="eventTitle" required /> <input type="text" id="eventTitle" name="eventTitle" required />
</div> </div>
<div class="form-field"> <div class="form-field">
<label for="eventDescription">Beschreibung des Event-Abends</label> <label for="eventDescription">Beschreibung des Events</label>
<textarea id="eventDescription" name="eventDescription" rows="6" required></textarea> <textarea id="eventDescription" name="eventDescription" rows="6" required></textarea>
</div> </div>
<div class="form-field">
<label>Fotos hinzufügen <span class="field-hint-inline">(optional)</span></label>
<div class="gallery-upload">
<div class="gallery-preview" id="galleryPreview"></div>
<button type="button" class="button-primary" id="galleryAddBtn" aria-label="Foto hinzufügen">Foto hinzufügen</button>
<input type="file" id="galleryFileInput" accept="image/*" multiple hidden />
</div>
</div>
</div> </div>
</div> </div>
</section> </section>
@@ -293,7 +308,7 @@
<section class="step" data-step="7" aria-labelledby="step7-title"> <section class="step" data-step="7" aria-labelledby="step7-title">
<div class="step-layout"> <div class="step-layout">
<div class="step-copy"> <div class="step-copy">
<p class="step-kicker">Schritt 7</p> <p class="badge">Schritt 7</p>
<h2 id="step7-title">Dein Event auf einen Blick.</h2> <h2 id="step7-title">Dein Event auf einen Blick.</h2>
<p class="step-text"> <p class="step-text">
Schau dir alle Details nochmal in Ruhe an. Wenn alles passt, Schau dir alle Details nochmal in Ruhe an. Wenn alles passt,
@@ -362,25 +377,35 @@
</div> </div>
</section> </section>
<div class="flow-footer" id="flowFooter" hidden>
<div class="progress-wrap" aria-hidden="true">
<div class="progress-marker" id="progressMarker">
<span class="progress-marker__circle" id="progressMarkerLabel">1</span>
</div>
<div class="progress">
<span id="progressBar" class="progress-bar"></span>
</div>
</div>
<div class="flow-actions"> <div class="flow-footer" id="flowFooter" hidden>
<button type="button" id="backButton" class="button button--text">Zurück</button>
<div class="flow-actions-right"> <p id="errorMessage" class="error-message" role="alert" aria-live="assertive"></p>
<p id="errorMessage" class="error-message" role="alert" aria-live="assertive"></p>
<button type="button" id="nextButton" class="button button--primary">Weiter</button> <div class="flow-actions">
</div> <button type="button" id="backButton" class="button-secondary">
</div> Zurück
</button>
<div class="progress-wrap">
<span class="progress-label" id="progressMarkerLabel">
Schritt 1 von 7
</span>
<div class="progress">
<span id="progressBar" class="progress-bar"></span>
</div> </div>
</div>
<button type="button" id="nextButton" class="button-primary">
Weiter
</button>
</div>
<div class="flow-actions-right">
<p id="errorMessage" class="error-message" role="alert" aria-live="assertive"></p>
</div>
</div>
<section <section
id="submissionSuccess" id="submissionSuccess"
@@ -391,7 +416,7 @@
> >
<div class="step-layout"> <div class="step-layout">
<div class="step-copy"> <div class="step-copy">
<p class="step-kicker">Event erstellt</p> <p class="badge">Event erstellt</p>
<h2 id="success-title">Dein Event ist ready.</h2> <h2 id="success-title">Dein Event ist ready.</h2>
<p class="step-text"> <p class="step-text">
Sieht gut aus: Deine Idee ist jetzt live und bereit für Gäste. Sieht gut aus: Deine Idee ist jetzt live und bereit für Gäste.
@@ -401,7 +426,7 @@
<div class="review-card review-card--success"> <div class="review-card review-card--success">
<div class="submission-success-actions"> <div class="submission-success-actions">
<a class="button button--primary" href="event_overview.html">Weiter zu deinem Profil</a> <a class="button-primary" href="my_profil.html">Weiter zu deinem Profil</a>
</div> </div>
</div> </div>
</div> </div>
@@ -409,9 +434,22 @@
</form> </form>
</main> </main>
<footer class="site-footer"> <div class="footer">
<p>&copy; Social Cooking</p> <div class="footer-left">
</footer> <p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
<script src="js/event_create.js"></script> <script src="js/event_create.js"></script>
</body> </body>
+26 -5
View File
@@ -3,12 +3,15 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event-Detail</title> <title>Invité | Event-Detail</title>
<!-- Stylesheet für diese Seite--> <!-- Stylesheet für diese Seite-->
<link rel="stylesheet" href="css/event_overview.css"> <link rel="stylesheet" href="css/event_overview.css">
<script src="js/navigation.js" defer></script>
<!-- Globales Stylesheet --> <!-- Globales Stylesheet -->
<link rel="stylesheet" href="css/stylesheet_global.css"> <link rel="stylesheet" href="css/stylesheet_global.css">
</head> </head>
<body> <body>
@@ -19,15 +22,13 @@
<img src="assets/logo_invite.svg" alt="Invite Logo"> <img src="assets/logo_invite.svg" alt="Invite Logo">
</a> </a>
<nav class="nav-tab-links" aria-label="Hauptnavigation"> <nav class="nav-tab-links" aria-label="Hauptnavigation">
<a class="nav-tab" href="event_overview.html">Event finden</a> <a class="button-small" href="login.html" aria-label="Login">Login</a>
<a class="nav-tab" href="event_create.html">Event erstellen</a>
<a class="button-small" href="login.html" aria-label="Profil">Login</a>
</nav> </nav>
</div> </div>
</header> </header>
<!-- Main content: detail page gets fully injected by JavaScript --> <!-- Main content: detail page gets fully injected by JavaScript -->
<main class="container"> <main class="container page-content-safe detail-page">
<!-- Render target: loading, error state or full detail layout --> <!-- Render target: loading, error state or full detail layout -->
<div id="detail-view"> <div id="detail-view">
<p>Lädt Event-Details...</p> <p>Lädt Event-Details...</p>
@@ -37,5 +38,25 @@
<!-- Page logic: fetch by URL id, compose detail UI, handle gallery lightbox --> <!-- Page logic: fetch by URL id, compose detail UI, handle gallery lightbox -->
<script src="js/event_detail.js"></script> <script src="js/event_detail.js"></script>
<!-- Snackbar: Feedback bei An-/Abmeldung -->
<div class="snackbar" id="snackbar"></div>
<div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
</body> </body>
</html> </html>
+75 -14
View File
@@ -3,12 +3,15 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event-Overview</title> <title>Invité | Event-Übersicht</title>
<!-- Stylesheet für diese Seite--> <!-- Stylesheet für diese Seite-->
<link rel="stylesheet" href="css/event_overview.css"> <link rel="stylesheet" href="css/event_overview.css">
<script src="js/navigation.js" defer></script>
<!-- Globales Stylesheet --> <!-- Globales Stylesheet -->
<link rel="stylesheet" href="css/stylesheet_global.css"> <link rel="stylesheet" href="css/stylesheet_global.css">
</head> </head>
<body> <body>
@@ -19,17 +22,18 @@
<img src="assets/logo_invite.svg" alt="Invite Logo"> <img src="assets/logo_invite.svg" alt="Invite Logo">
</a> </a>
<nav class="nav-tab-links" aria-label="Hauptnavigation"> <nav class="nav-tab-links" aria-label="Hauptnavigation">
<a class="nav-tab" href="event_overview.html">Event finden</a> <a class="button-small" href="login.html" aria-label="Login">Login</a>
<a class="nav-tab" href="event_create.html">Event erstellen</a>
<a class="button-small" href="login.html" aria-label="Profil">Login</a>
</nav> </nav>
</div> </div>
</header> </header>
<!-- Main content: page headline, filter controls and dynamic event list --> <!-- Main content: page headline, filter controls and dynamic event list -->
<main class="container"> <main class="container page-content-safe">
<!-- Page headline --> <!-- Page headline with info button -->
<h1 class="overview-title">Events</h1> <div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem;">
<h1 style="margin-bottom: 0;">Events</h1>
<button type="button" class="btn-info" id="info-button" aria-label="Information über kostenlose Events">?</button>
</div>
<!-- Filter section: category chips + location/date filters --> <!-- Filter section: category chips + location/date filters -->
<section class="filter-section"> <section class="filter-section">
@@ -37,11 +41,11 @@
<div class="filter-row"> <div class="filter-row">
<!-- Primary category filter buttons --> <!-- Primary category filter buttons -->
<div class="category-group"> <div class="category-group">
<button class="category-item" type="button" data-cat="BRUNCH">BRUNCH</button> <button class="category-item active" type="button" data-cat="ALLE">Alle</button>
<button class="category-item" type="button" data-cat="LUNCH">LUNCH</button> <button class="category-item" type="button" data-cat="Brunch">Brunch</button>
<button class="category-item" type="button" data-cat="DINNER">DINNER</button> <button class="category-item" type="button" data-cat="Lunch">Lunch</button>
<button class="category-item" type="button" data-cat="COFFEE">COFFEE</button> <button class="category-item" type="button" data-cat="Kaffee + Kuchen">Kaffee + Kuchen</button>
<button class="category-item active" type="button" data-cat="ALLE">ALLE</button> <button class="category-item" type="button" data-cat="Dinner">Dinner</button>
</div> </div>
<!-- Secondary filters populated/handled by JavaScript --> <!-- Secondary filters populated/handled by JavaScript -->
@@ -55,17 +59,74 @@
<label class="meta-filter" for="date-filter"> <label class="meta-filter" for="date-filter">
<span>Datum</span> <span>Datum</span>
<input id="date-filter" type="date"> <div class="date-input-wrapper">
<input id="date-filter" type="date">
</div>
</label> </label>
</div> </div>
</div> </div>
<div class="filter-row">
<!-- Diet filter buttons -->
<div class="category-group">
<button class="category-item" type="button" data-diet="Fleisch">Fleisch</button>
<button class="category-item" type="button" data-diet="Fisch">Fisch</button>
<button class="category-item" type="button" data-diet="Vegetarisch">Vegetarisch</button>
<button class="category-item" type="button" data-diet="Vegan">Vegan</button>
</div>
</div>
<div class="filter-row">
<!-- Allergen filter buttons -->
<div class="category-group">
<button class="category-item" type="button" data-allergie="glutenfrei">glutenfrei</button>
<button class="category-item" type="button" data-allergie="laktosefrei">laktosefrei</button>
<button class="category-item" type="button" data-allergie="ohne Nüsse">ohne Nüsse</button>
</div>
</div>
</section> </section>
<!-- Render target: event cards or empty state --> <!-- Render target: event cards or empty state -->
<section id="event-grid" class="event-list"></section> <section id="event-grid" class="event-list"></section>
</main> </main>
<!-- Page logic: data loading, filtering and card rendering --> <!-- Seitenlogik: Daten laden, filtern und Event-Karten rendern -->
<script src="js/event_overview.js"></script> <script src="js/event_overview.js"></script>
<!-- Info Modal: Kostenlose Events Info -->
<div id="info-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Warum Invité kostenlos ist</h2>
<button type="button" class="modal-close" aria-label="Popup schließen">&times;</button>
</div>
<div class="modal-body">
<p>Alle Events bei uns sind komplett kostenlos. Invité basiert rein auf Freiwilligkeit und der Freude am Teilen. Kein Geldfluss, keine versteckten Kosten – nur die pure Absicht, die Community zu stärken und den sozialen Zusammenhalt in unserer Nachbarschaft zu fördern. Egal ob du den Kochlöffel schwingst oder dich als Gast dazu gesellst: Bei uns zählt nur die menschliche Begegnung.</p>
</div>
</div>
</div>
<!-- Snackbar: Feedback bei An-/Abmeldung -->
<div class="snackbar" id="snackbar"></div>
<div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
</body> </body>
</html> </html>
+80
View File
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Invité | Impressum</title>
<link rel="stylesheet" href="css/stylesheet_global.css" />
<script src="js/navigation.js" defer></script>
</head>
<body>
<header class="top-nav-wrap">
<div class="top-nav">
<a class="brand" href="index.html" aria-label="Zur Startseite">
<img src="assets/logo_invite.svg" alt="Invité">
</a>
<nav class="nav-tab-links" aria-label="Hauptnavigation">
<a class="button-small" href="login.html" aria-label="Login">Login</a>
</nav>
</div>
</header>
<main class="main-content" style="padding: 40px 20px; max-width: 800px; margin: 0 auto;">
<h1>Impressum</h1>
<h3>Angaben gemäss § 5 TMG</h3>
<p>
Invité GmbH<br>
Musterstrasse 12<br>
7000 Chur<br>
Schweiz
</p>
<h3>Kontakt</h3>
<p>
Telefon: +41 81 123 45 67<br>
E-Mail: info@invite-cooking.ch
</p>
<h3>Vertretungsberechtigte Person</h3>
<p>Max Mustermann, Geschäftsführer</p>
<h3>Handelsregistereintrag</h3>
<p>
Eingetragen im Handelsregister des Kantons Graubünden<br>
Firmennummer: CHE-123.456.789
</p>
<h3>Haftungsausschluss</h3>
<p>
Die Inhalte dieser Website wurden mit grösster Sorgfalt erstellt. Für die Richtigkeit,
Vollständigkeit und Aktualität der Inhalte können wir jedoch keine Gewähr übernehmen.
</p>
<h3>Urheberrecht</h3>
<p>
Die durch die Seitenbetreiber erstellten Inhalte und Werke auf diesen Seiten unterliegen
dem schweizerischen Urheberrecht. Die Vervielfältigung, Bearbeitung, Verbreitung und jede
Art der Verwertung ausserhalb der Grenzen des Urheberrechtes bedürfen der schriftlichen
Zustimmung des jeweiligen Autors bzw. Erstellers.
</p>
</main>
<div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
</body>
</html>
+193 -62
View File
@@ -3,15 +3,17 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Invité | Events entdecken</title> <title>Invité</title>
<!-- Stylesheet für diese Seite--> <!-- Stylesheet für diese Seite-->
<link rel="stylesheet" href="css/landingpage.css?v=2" /> <link rel="stylesheet" href="css/index.css">
<!-- Globales Stylesheet -->
<link rel="stylesheet" href="css/stylesheet_global.css?v=2">
<!-- Font Awesome <!-- Globales Stylesheet -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" integrity="sha512-dU7ZrF1pFq5kVnPzlV9+04YhARzNjCX5Q5P1shgMpuN4s5I8mI8QD4981h7kYtV7sSgNldR0z5pZW5bS2ZpY3Q==" crossorigin="anonymous" referrerpolicy="no-referrer" /> --> <link rel="stylesheet" href="css/stylesheet_global.css">
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<script src="js/navigation.js" defer></script>
</head> </head>
<body> <body>
@@ -19,12 +21,10 @@
<header class="top-nav-wrap"> <header class="top-nav-wrap">
<div class="top-nav"> <div class="top-nav">
<a class="brand" href="index.html" aria-label="Zur Startseite"> <a class="brand" href="index.html" aria-label="Zur Startseite">
<img src="assets/logo_invite.svg" alt="Invite Logo"> <img src="assets/logo_invite.svg" alt="Invité">
</a> </a>
<nav class="nav-tab-links" aria-label="Hauptnavigation"> <nav class="nav-tab-links" aria-label="Hauptnavigation">
<a class="nav-tab" href="event_overview.html">Event finden</a> <a class="button-small" href="login.html" aria-label="Login">Login</a>
<a class="nav-tab" href="event_create.html">Event erstellen</a>
<a class="button-small" href="login.html" aria-label="Profil">Login</a>
</nav> </nav>
</div> </div>
</header> </header>
@@ -33,81 +33,99 @@
<!-- Hero: uses .hero, .btn, .image-card, and .hero-image for a polished first impression --> <!-- Hero: uses .hero, .btn, .image-card, and .hero-image for a polished first impression -->
<section class="hero"> <section class="hero">
<div class="hero__left"> <div class="hero__left">
<h1>Dein Platz am Tisch wartet schon.</h1> <span class="badge margin-bottom-40">einfach. lecker. gemeinsam.</span>
<p>Egal, ob du leidenschaftlich gerne den Kochlöffel schwingst oder dich einfach auf ein hausgemachtes Essen in guter Gesellschaft freust: Bei Invité bringst du Menschen zusammen. Finde Events, die zu deinem Geschmack passen, und geniesse unkomplizierte Begegnungen ohne Networking-Zwang.</p> <h1>Teile deine Leidenschaft, geniesse gemeinsam.</h1>
<a class="btn" href="login.html">Anmelden</a> <p>Ob du als leidenschaftlicher Hobbykoch Gastgeber sein möchtest oder als Feinschmecker einen Platz an einem lokalen Tisch suchst Invité verbindet Menschen durch die Kraft einer gemeinsamen Mahlzeit.</p>
<a class="button-primary" href="signup.html">Registrieren</a>
</div> </div>
<div class="hero__right"> <div class="hero__right">
<div class="image-card"> <div class="image-card">
<img class="hero-image" src="assets/Startpage ingredients.jpg" alt="Startpage Ingredients" /> <img class="hero-image" src="assets/index_ingredients.jpg" alt="Startpage Ingredients" />
</div> </div>
</div> </div>
</section> </section>
<section class="how-it-works"> <section class="how-it-works">
<div class="how-it-works__header">
<h2>So funktioniert's</h2> <h2>So funktioniert's</h2>
</div>
<div class="how-it-works__steps"> <div class="how-it-works__steps">
<article class="how-step how-step--numbered"> <article class="how-step how-step-number-numbered">
<span class="how-step__corner-number how-step__corner-number--brown">1</span> <span class="how-step_corner-number">1</span>
<img src="assets/register icon.png" alt="Register" class="how-step__png how-step__png--brown" /> <i class="fa-solid fa-id-card how-step_icon"></i>
<p class="how-step__label how-step__label--brown how-step__label--big">Anmelden</p> <h3 class="how-step_text">Anmelden und Dabeisein</h3>
<p class="how-step_text text-left">Erstelle kurz dein Profil und zeig uns deinen Geschmack. Bei uns zählt der Mensch am Tisch, nicht der Lebenslauf.</p>
<div class="badge margin-bottom-24">
<span>Quick Setup in 2 Min</span>
</div>
</article> </article>
<article class="how-step how-step--numbered"> <article class="how-step how-step-number-numbered">
<span class="how-step__corner-number how-step__corner-number--brown">2</span> <span class="how-step_corner-number">2</span>
<img src="assets/add-event icon.png" alt="Event erstellen" class="how-step__png how-step__png--brown" /> <i class="fa-solid fa-magnifying-glass-location how-step_icon"></i>
<p class="how-step__label how-step__label--brown how-step__label--big">Event erstellen</p> <h3 class="how-step_text">Tisch finden oder decken</h3>
<p class="how-step_text text-left">Entdecke spontane Events in deiner Nähe oder öffne deine eigene Küche. Du entscheidest, ob du Gast oder Gastgeber:in bist.</p>
<div class="badge margin-bottom-24">
<span>Gast – Gastgeber:in</span>
</div>
</article> </article>
<article class="how-step how-step--numbered"> <article class="how-step how-step-number-numbered">
<span class="how-step__corner-number how-step__corner-number--brown">3</span> <span class="how-step_corner-number">3</span>
<img src="assets/Plate icon.png" alt="Gemeinsam essen" class="how-step__png how-step__png--brown" />
<p class="how-step__label how-step__label--brown how-step__label--big">Gemeinsam essen</p> <i class="fa-solid fa-utensils how-step_icon"></i>
<h3 class="how-step_text">Teile den Tisch</h3>
<p class="how-step_text text-left">Triff neue Leute in entspannter Atmosphäre. Geniesse gutes Essen in Gesellschaft und mach aus einer Mahlzeit eine echte Begegnung.</p>
<div class="badge margin-bottom-24">
<span>Gemeinsam geniessen</span>
</div>
</article> </article>
</div> </div>
</section> </section>
<!-- Main Content: uses .gallery, .gallery__carousel, .gallery__track, .gallery__item, and .gallery__info to present event carousel content --> <!-- Main Content: uses .gallery, .gallery__carousel, .gallery__track, .gallery__item, and .gallery__info to present event carousel content -->
<section class="gallery"> <section class="gallery" aria-label="Bildergalerie" aria-roledescription="Karussell">
<h2>Einblick in Cooking-Erlebnisse</h2>
<p>#gemeinsam_invité auf Instagram</p>
</div>
<div class="gallery__carousel"> <div class="gallery__carousel">
<button type="button" class="gallery__arrow gallery__arrow--prev" aria-label="Vorheriges Bild"> <button type="button" class="gallery__arrow gallery__arrow--prev" aria-label="Vorheriges Bild">
<i class="fas fa-chevron-left"></i> <i class="fas fa-chevron-left"></i>
</button> </button>
<div class="gallery__track"> <div class="gallery__track" aria-live="polite">
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 1 von 12">
<img src="assets/Red checkered social eating.jpg" alt="Red checkered social eating"> <img src="assets/index_Red checkered social eating.jpg" alt="Red checkered social eating">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 2 von 12">
<img src="assets/Pasta and many forks.jpg" alt="Pasta and many forks"> <img src="assets/index_Pasta and many forks.jpg" alt="Pasta and many forks">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 3 von 12">
<img src="assets/Zoomed in asian eating.jpg" alt="Zoomed in asian eating"> <img src="assets/index_Zoomed in asian eating.jpg" alt="Zoomed in asian eating">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 4 von 12">
<img src="assets/Burger eating together.jpg" alt="Burger eating together"> <img src="assets/index_Burger eating together.jpg" alt="Burger eating together">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 5 von 12">
<img src="assets/Cake cutting figs.jpg" alt="Cake cutting figs"> <img src="assets/index_Cake cutting figs.jpg" alt="Cake cutting figs">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 6 von 12">
<img src="assets/Cooking woman at home.jpg" alt="Cooking woman at home"> <img src="assets/index_Cooking woman at home.jpg" alt="Cooking woman at home">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 7 von 12">
<img src="assets/Eating and laughing girls.jpg" alt="Eating and laughing girls"> <img src="assets/index_Eating and laughing girls.jpg" alt="Eating and laughing girls">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 8 von 12">
<img src="assets/Pasta in cheese.jpg" alt="Pasta in cheese"> <img src="assets/index_Pasta in cheese.jpg" alt="Pasta in cheese">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 9 von 12">
<img src="assets/Salad roommates.jpg" alt="Salad roommates"> <img src="assets/index_Salad roommates.jpg" alt="Salad roommates">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 10 von 12">
<img src="assets/Sharing food table.jpg" alt="Sharing food table"> <img src="assets/index_Sharing food table.jpg" alt="Sharing food table">
</article> </article>
<article class="gallery__item"> <article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 11 von 12">
<img src="assets/Spicy food zoomed.jpg" alt="Spicy food zoomed"> <img src="assets/index_Spicy food zoomed.jpg" alt="Spicy food zoomed">
</article>
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 12 von 12">
<img src="assets/index_cooking.jpg" alt="Cooking">
</article> </article>
</div> </div>
@@ -116,19 +134,132 @@
</button> </button>
</div> </div>
<div class="gallery_dots" role="tablist" aria-label="Seite auswählen"></div>
<div class="gallery__info">
<div class="gallery__handle" style="display: flex; align-items: center; gap: 16px;">
<img src="assets/instagram.png" alt="Instagram" class="gallery__icon--instagram" />
<img src="assets/logo_invite.svg" alt="Invité Logo" class="gallery__icon--invite" />
</div>
</div>
</section> </section>
</main> </main>
<!-- Lightbox: Bildansicht vergrössert -->
<div class="lightbox" id="gallery-lightbox" aria-hidden="true">
<div class="lightbox__backdrop" data-close-lightbox></div>
<figure class="lightbox__content" role="dialog" aria-modal="true" aria-label="Bildansicht">
<button class="lightbox__close" type="button" aria-label="Schliessen">&times;</button>
<img class="lightbox__image" src="" alt="Grossansicht">
</figure>
</div>
<script src="js/index-carousel.js"></script> <script src="js/index-carousel.js"></script>
<footer class="footer">
<a href="#" class="footer__link">Impressum</a> <!-- FAQ Section: Akkordion mit häufig gestellten Fragen -->
</footer> <section class="faq-section">
<div class="container">
<h2>Häufig gestellte Fragen</h2>
<div class="faq-accordion">
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Wie kann ich bei Invité anfangen?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p><strong>Schritt 1: Kostenloses Konto erstellen</strong><br>Gehe auf Invité, klicke auf "Jetzt beitreten" und fülle das Anmeldeformular aus. Du benötigst nur deine E-Mail und ein Passwort.</p>
<p><strong>Schritt 2: Dein Profil ausfüllen</strong><br>Lade ein Profilfoto hoch, schreib ein bisschen über dich und gib deine Allergien/Ernährungspräferenzen an. Das hilft anderen, dich besser kennenzulernen.</p>
<p><strong>Schritt 3: Erkunde Events</strong><br>Browsing durch unsere Events, filtere nach Diät oder Allergie-Einstellungen, und melde dich zu den Events an, die dich interessieren!</p>
<p><strong>Schritt 4: Erstelle dein eigenes Event</strong><br>Du kannst auch selbst ein Kochevent hosten! Klick auf "Event erstellen", beschreib dein Menü, und lade Gäste ein.</p>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Fallen bei Invité Kosten an?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Nein, Invité ist komplett kostenlos. Alle Events basieren auf Freiwilligkeit und der Freude am Teilen. Es gibt keine versteckten Kosten – nur die pure Absicht, die Community zu stärken.</p>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Kann ich ein eigenes Event erstellen?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Ja, absolut! Du kannst dein eigenes Kochevent erstellen und Gäste einladen. Beschreibe dein Menü, die Teilnehmerzahl und weitere Details. Es ist deine Küche, dein Event, deine Regeln.</p>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Wie funktioniert die An-/Abmeldung?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Bei jedem Event sehen dich die verfügbaren Plätze. Du kannst dich mit einem Klick anmelden. Eine Abmeldung ist bis 24 Stunden vor dem Event möglich – so respektieren wir den Aufwand des Gastgebers.</p>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Was ist mit Allergien und Diäten?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Ich kann Informationen zu Allergien und Ernährungseinstellungen in der Event-Beschreibung hinzufügen oder beim Anmelden angeben. So können Gastgeber und Gäste besser zusammenkommen und Überraschungen vermeiden.</p>
</div>
</div>
<div class="faq-item">
<button type="button" class="faq-trigger" aria-expanded="false">
<span class="faq-title">Ist Invité sicher und vertrauenswürdig?</span>
<span class="faq-icon">+</span>
</button>
<div class="faq-content">
<p>Ja, dein Profil hilft anderen, dich besser kennenzulernen. Wir ermutigen zu Offenheit und gegenseitigem Vertrauen. Allerdings bleibt es deine Entscheidung, wem du deine Adresse mitteilst – die erfolgt nur 12 Stunden vor dem Event.</p>
</div>
</div>
</div>
</div>
</section>
<div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
<!-- FAQ Akkordion Toggle Script -->
<script>
document.addEventListener('DOMContentLoaded', function() {
const faqTriggers = document.querySelectorAll('.faq-trigger');
faqTriggers.forEach((trigger) => {
trigger.addEventListener('click', function(e) {
e.preventDefault();
const isExpanded = this.getAttribute('aria-expanded') === 'true';
// Close all other items (optional: comment out to allow multiple open)
faqTriggers.forEach((otherTrigger) => {
if (otherTrigger !== trigger) {
otherTrigger.setAttribute('aria-expanded', 'false');
}
});
// Toggle current item
this.setAttribute('aria-expanded', !isExpanded);
});
});
});
</script>
</body> </body>
</html> </html>
+131 -21
View File
@@ -1,4 +1,4 @@
// ============================= // =============================
// SETUP: Wichtige HTML-Elemente holen // SETUP: Wichtige HTML-Elemente holen
// Diese Konstanten verbinden unser JavaScript mit dem HTML. // Diese Konstanten verbinden unser JavaScript mit dem HTML.
// So können wir später Buttons, Formularfelder und Bereiche steuern. // So können wir später Buttons, Formularfelder und Bereiche steuern.
@@ -8,13 +8,13 @@ const steps = Array.from(document.querySelectorAll(".step"));
const backButton = document.getElementById("backButton"); const backButton = document.getElementById("backButton");
const nextButton = document.getElementById("nextButton"); const nextButton = document.getElementById("nextButton");
const progressBar = document.getElementById("progressBar"); const progressBar = document.getElementById("progressBar");
const progressMarker = document.getElementById("progressMarker");
const progressMarkerLabel = document.getElementById("progressMarkerLabel"); const progressMarkerLabel = document.getElementById("progressMarkerLabel");
const errorMessage = document.getElementById("errorMessage"); const errorMessage = document.getElementById("errorMessage");
const usernameElement = document.getElementById("username"); const usernameElement = document.getElementById("username");
const flowFooter = document.getElementById("flowFooter"); const flowFooter = document.getElementById("flowFooter");
const submissionSuccess = document.getElementById("submissionSuccess"); const submissionSuccess = document.getElementById("submissionSuccess");
const EVENTS_STORAGE_KEY = "socialCookingEvents"; const EVENTS_STORAGE_KEY = "socialCookingEvents";
const CURRENT_USER_KEY = "socialCookingCurrentUser";
// ============================= // =============================
// STATE: aktueller Schritt im Flow // STATE: aktueller Schritt im Flow
@@ -36,8 +36,20 @@ const nextLabels = {
7: "Event veröffentlichen" 7: "Event veröffentlichen"
}; };
// Demo-Wert: Später könnte der Name z. B. aus einem User-Profil kommen // Liest den aktiven Benutzer aus localStorage und setzt den Anzeigenamen im Header.
usernameElement.textContent = "Mia"; function getCurrentUser() {
try {
const raw = localStorage.getItem(CURRENT_USER_KEY);
return raw ? JSON.parse(raw) : null;
} catch (error) {
console.error("Aktueller Benutzer konnte nicht gelesen werden:", error);
return null;
}
}
const currentUser = getCurrentUser();
const displayName = currentUser?.vorname?.trim() || "Mia";
usernameElement.textContent = displayName;
// ============================= // =============================
@@ -108,7 +120,7 @@ function markRadioGroupInvalid(group) {
* Zeigt den gewünschten Schritt an. * Zeigt den gewünschten Schritt an.
* Dabei werden auch Buttons, Progress Bar und Review aktualisiert. * Dabei werden auch Buttons, Progress Bar und Review aktualisiert.
*/ */
function showStep(index) { function showStep(index, pushHistory = true) {
currentStep = index; currentStep = index;
submissionSuccess.hidden = true; submissionSuccess.hidden = true;
clearStepInvalidState(index); clearStepInvalidState(index);
@@ -123,6 +135,11 @@ function showStep(index) {
updateProgressBar(index, lastStep); updateProgressBar(index, lastStep);
setErrorMessage(""); setErrorMessage("");
// Browser-History aktualisieren, damit Zurück-Taste funktioniert
if (pushHistory) {
history.pushState({ step: index }, "");
}
// Für bessere UX: bei jedem Schritt wieder nach oben scrollen // Für bessere UX: bei jedem Schritt wieder nach oben scrollen
window.scrollTo({ top: 0, behavior: "smooth" }); window.scrollTo({ top: 0, behavior: "smooth" });
} }
@@ -155,22 +172,17 @@ function updateFlowVisibility(stepIndex) {
* - letzter Schritt = 100% * - letzter Schritt = 100%
*/ */
function updateProgressBar(stepIndex, totalStepIndex) { function updateProgressBar(stepIndex, totalStepIndex) {
const totalFormSteps = totalStepIndex;
let progress = 0; let progress = 0;
let markerPosition = 0;
let markerStep = 1; let markerStep = 1;
let markerTransform = "translateX(-50%)";
if (stepIndex > 0) { if (stepIndex > 0) {
progress = ((stepIndex - 1) / (totalStepIndex - 1)) * 100; progress = ((stepIndex) / totalFormSteps) * 100;
markerPosition = ((stepIndex - 1) / (totalStepIndex - 1)) * 100;
markerStep = stepIndex; markerStep = stepIndex;
} }
progressBar.style.width = `${progress}%`; progressBar.style.width = `${progress}%`;
progressMarker.style.left = `${markerPosition}%`; progressMarkerLabel.textContent = `Schritt ${markerStep} von ${totalFormSteps}`;
progressMarker.style.transform = markerTransform;
progressMarker.hidden = stepIndex === 0;
progressMarkerLabel.textContent = String(markerStep);
} }
@@ -292,7 +304,7 @@ function getReviewValues() {
menuDescription: getFieldValue("menuDescription"), menuDescription: getFieldValue("menuDescription"),
eventDescription: getFieldValue("eventDescription"), eventDescription: getFieldValue("eventDescription"),
maxGuests: getFieldValue("maxGuests"), maxGuests: getFieldValue("maxGuests"),
dietType: getFieldValue("dietType"), dietType: getCheckboxValues("dietType"),
allergies: buildAllergiesReviewValue(), allergies: buildAllergiesReviewValue(),
eventDate: formatDate(getFieldValue("eventDate")), eventDate: formatDate(getFieldValue("eventDate")),
eventTime: getFieldValue("eventTime"), eventTime: getFieldValue("eventTime"),
@@ -374,10 +386,10 @@ function buildMenuItems(value) {
*/ */
function mapEventTypeToCategory(value) { function mapEventTypeToCategory(value) {
const categoryMap = { const categoryMap = {
Brunch: "BRUNCH", Brunch: "Brunch",
Lunch: "LUNCH", Lunch: "Lunch",
Dinner: "DINNER", Dinner: "Dinner",
"Kaffee + Kuchen": "COFFEE" "Kaffee + Kuchen": "Kaffee + Kuchen"
}; };
return categoryMap[value] || value.toUpperCase(); return categoryMap[value] || value.toUpperCase();
@@ -388,7 +400,7 @@ function mapEventTypeToCategory(value) {
*/ */
function buildStoredEvent() { function buildStoredEvent() {
const eventType = getFieldValue("eventType"); const eventType = getFieldValue("eventType");
const dietType = getFieldValue("dietType"); const dietType = getCheckboxValues("dietType");
const menuDescription = form.elements.menuDescription.value.trim(); const menuDescription = form.elements.menuDescription.value.trim();
const eventDescription = form.elements.eventDescription.value.trim(); const eventDescription = form.elements.eventDescription.value.trim();
const eventDate = form.elements.eventDate.value; const eventDate = form.elements.eventDate.value;
@@ -409,14 +421,16 @@ function buildStoredEvent() {
name: usernameElement.textContent.trim() || "Host", name: usernameElement.textContent.trim() || "Host",
initial: (usernameElement.textContent.trim().charAt(0) || "H").toUpperCase() initial: (usernameElement.textContent.trim().charAt(0) || "H").toUpperCase()
}, },
hostEmail: currentUser?.email || "",
hostMessage: [eventDescription], hostMessage: [eventDescription],
menu: buildMenuItems(menuDescription), menu: buildMenuItems(menuDescription),
specifications: getCheckboxValues("allergies") === "Keine Angabe" specifications: getCheckboxValues("allergies") === "Keine Angabe"
? [] ? []
: getCheckboxValues("allergies").split(", ").filter(Boolean), : getCheckboxValues("allergies").split(", ").filter(Boolean),
allergiesNote: form.elements.allergiesOther.value.trim(), allergiesNote: form.elements.allergiesOther.value.trim(),
participants: [usernameElement.textContent.trim() || "Host"], // Host wird separat geführt und nicht als angemeldeter Gast gezählt.
gallery: [], participants: [],
gallery: [...galleryImages],
createdAt: new Date().toISOString(), createdAt: new Date().toISOString(),
source: "local" source: "local"
}; };
@@ -458,6 +472,15 @@ function validateCurrentStep() {
return false; return false;
} }
// Speziell für Schritt 2: Ernährungsform prüfen
if (currentStep === 2) {
const dietCheck = validateDietType();
if (!dietCheck.isValid) {
setErrorMessage(dietCheck.message);
return false;
}
}
// Danach normale Pflichtfelder prüfen // Danach normale Pflichtfelder prüfen
const requiredCheck = validateRequiredFields(fields); const requiredCheck = validateRequiredFields(fields);
if (!requiredCheck.isValid) { if (!requiredCheck.isValid) {
@@ -495,6 +518,22 @@ function validateRadioGroups(fields) {
return { isValid: true }; return { isValid: true };
} }
/**
* Prüft die Ernährungsform-Checkboxen (mindestens eine muss ausgewählt sein).
*/
function validateDietType() {
const checked = form.querySelectorAll('input[name="dietType"]:checked');
if (checked.length === 0) {
// Mark all as invalid
form.querySelectorAll('input[name="dietType"]').forEach(input => {
const card = input.closest('.option-card');
if (card) card.classList.add('option-card--invalid');
});
return { isValid: false, message: "Bitte wähle mindestens eine Ernährungsform aus." };
}
return { isValid: true };
}
/** /**
* Prüft alle Pflichtfelder ausser Radios und Checkboxen. * Prüft alle Pflichtfelder ausser Radios und Checkboxen.
* Rückgabe: * Rückgabe:
@@ -723,6 +762,64 @@ function focusFieldByName(fieldName) {
} }
// =============================
// STEP 8b: Galerie-Upload (Fotos hinzufügen)
// =============================
const galleryImages = [];
function registerGalleryHandlers() {
const addBtn = document.getElementById("galleryAddBtn");
const fileInput = document.getElementById("galleryFileInput");
const preview = document.getElementById("galleryPreview");
if (!addBtn) return;
// Klick auf + öffnet direkt den Datei-Dialog
addBtn.addEventListener("click", () => {
fileInput.click();
});
// Datei(en) hochladen
fileInput.addEventListener("change", () => {
Array.from(fileInput.files).forEach(file => {
if (!file.type.startsWith("image/")) return;
const reader = new FileReader();
reader.onload = (e) => {
addGalleryImage(e.target.result);
};
reader.readAsDataURL(file);
});
fileInput.value = "";
});
function addGalleryImage(src) {
galleryImages.push(src);
renderGalleryPreview();
}
function removeGalleryImage(index) {
galleryImages.splice(index, 1);
renderGalleryPreview();
}
function renderGalleryPreview() {
preview.innerHTML = "";
galleryImages.forEach((src, i) => {
const thumb = document.createElement("div");
thumb.className = "gallery-thumb";
thumb.innerHTML = `
<img src="${src}" alt="Foto ${i + 1}">
<button type="button" class="gallery-thumb-remove" aria-label="Foto entfernen">&times;</button>
`;
thumb.querySelector(".gallery-thumb-remove").addEventListener("click", () => {
removeGalleryImage(i);
});
preview.appendChild(thumb);
});
}
}
// ============================= // =============================
// STEP 9: Alles starten // STEP 9: Alles starten
// Hier werden alle Event Listener registriert // Hier werden alle Event Listener registriert
@@ -751,10 +848,23 @@ function initEventCreationFlow() {
registerMenuBulletHandler(); registerMenuBulletHandler();
registerValidationFeedbackHandlers(); registerValidationFeedbackHandlers();
registerReviewEditHandlers(); registerReviewEditHandlers();
registerGalleryHandlers();
// Browser-Zurück-Taste: vorherigen Schritt wiederherstellen
window.addEventListener("popstate", (e) => {
if (e.state && typeof e.state.step === "number") {
showStep(e.state.step, false);
} else {
showStep(0, false);
}
});
// Startzustand: Intro anzeigen // Startzustand: Intro anzeigen
submissionSuccess.hidden = true; submissionSuccess.hidden = true;
showStep(0); showStep(0);
// Initialen History-Eintrag ersetzen, damit Step 0 im Verlauf ist
history.replaceState({ step: 0 }, "");
} }
// Startpunkt des Skripts // Startpunkt des Skripts
+429 -41
View File
@@ -1,10 +1,16 @@
document.addEventListener('DOMContentLoaded', async () => { document.addEventListener('DOMContentLoaded', async () => {
const EVENTS_STORAGE_KEY = 'socialCookingEvents'; const EVENTS_STORAGE_KEY = 'socialCookingEvents';
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
const USERS_STORAGE_KEY = 'socialCookingUsers';
const REGISTRATION_STORAGE_KEY = 'socialCookingRegistrations';
// ------------------------------------------------------------- // -------------------------------------------------------------
// DOM entry point and shared asset path. // DOM entry point and shared asset path.
// ------------------------------------------------------------- // -------------------------------------------------------------
const detailContainer = document.getElementById('detail-view'); const detailContainer = document.getElementById('detail-view');
const locationIconPath = 'assets/location-pin.svg'; const locationIconPath = 'assets/icon_location.svg';
const calendarIconPath = 'assets/icon_calendar.svg';
const gastIconPath = 'assets/icon_gast.svg';
const currentUser = getCurrentUser();
// Read event id from query string (detail page deep-link support). // Read event id from query string (detail page deep-link support).
const params = new URLSearchParams(window.location.search); const params = new URLSearchParams(window.location.search);
@@ -25,6 +31,229 @@ document.addEventListener('DOMContentLoaded', async () => {
} }
} }
function getCurrentUser() {
try {
const stored = localStorage.getItem(CURRENT_USER_KEY);
return stored ? JSON.parse(stored) : null;
} catch (error) {
console.error('Aktueller Benutzer konnte nicht gelesen werden.', error);
return null;
}
}
function getRegistrationMap() {
try {
const stored = localStorage.getItem(REGISTRATION_STORAGE_KEY);
return stored ? JSON.parse(stored) : {};
} catch (error) {
console.error('Anmeldedaten konnten nicht gelesen werden.', error);
return {};
}
}
function getStoredUsers() {
try {
const stored = localStorage.getItem(USERS_STORAGE_KEY);
return stored ? JSON.parse(stored) : [];
} catch (error) {
console.error('Benutzerdaten konnten nicht gelesen werden.', error);
return [];
}
}
function getUserDisplayName(user) {
if (!user) {
return '';
}
const firstName = String(user.vorname || '').trim();
const lastName = String(user.nachname || '').trim();
return (firstName || `${firstName} ${lastName}`.trim() || String(user.email || '').trim()).trim();
}
function getResolvedParticipants(event, registrationMap) {
const baseParticipants = Array.isArray(event.participants)
? event.participants.map(name => String(name || '').trim()).filter(Boolean)
: [];
const usersByEmail = new Map(
getStoredUsers().map(user => [String(user.email || '').trim().toLowerCase(), user])
);
const participantLookup = new Set(baseParticipants.map(name => name.toLowerCase()));
Object.entries(registrationMap || {}).forEach(([email, ids]) => {
const isRegisteredForEvent = Array.isArray(ids)
&& ids.map(id => Number(id)).includes(Number(event.id));
if (!isRegisteredForEvent) {
return;
}
const user = usersByEmail.get(String(email || '').trim().toLowerCase());
const displayName = getUserDisplayName(user) || String(email || '').trim();
const normalizedName = displayName.toLowerCase();
if (displayName && !participantLookup.has(normalizedName)) {
baseParticipants.push(displayName);
participantLookup.add(normalizedName);
}
});
return baseParticipants;
}
function setRegistrationMap(registrationMap) {
localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(registrationMap));
}
function parseEventDateTime(event) {
if (!event?.date) {
return null;
}
const dateValue = String(event.date).trim();
const isoDateMatch = dateValue.match(/^(\d{4})-(\d{2})-(\d{2})$/);
let year;
let month;
let day;
if (isoDateMatch) {
year = Number(isoDateMatch[1]);
month = Number(isoDateMatch[2]);
day = Number(isoDateMatch[3]);
} else {
const monthMap = {
JAN: 1,
FEB: 2,
'MÄR': 3,
MRZ: 3,
APR: 4,
MAI: 5,
JUN: 6,
JUL: 7,
AUG: 8,
SEP: 9,
OKT: 10,
NOV: 11,
DEZ: 12
};
const localizedMatch = dateValue.match(/^(\d{1,2})\.\s*([A-ZÄÖÜ]{3})\.\s*(\d{4})$/);
if (!localizedMatch) {
return null;
}
day = Number(localizedMatch[1]);
month = monthMap[localizedMatch[2]];
year = Number(localizedMatch[3]);
if (!month) {
return null;
}
}
const timeMatch = String(event.time || '').match(/(\d{1,2}):(\d{2})/);
const hours = timeMatch ? Number(timeMatch[1]) : 0;
const minutes = timeMatch ? Number(timeMatch[2]) : 0;
return new Date(year, month - 1, day, hours, minutes, 0, 0);
}
function isRegistrationClosedForEvent(event) {
const eventDateTime = parseEventDateTime(event);
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
return false;
}
const msUntilStart = eventDateTime.getTime() - Date.now();
const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
return msUntilStart <= twentyfourHoursInMs;
}
// Abmeldefrist: 1 Tag (24 h) vor Eventstart.
function getDeregistrationInfo(event) {
const eventDateTime = parseEventDateTime(event);
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
return { daysLeft: null, isClosed: false };
}
const oneDayMs = 24 * 60 * 60 * 1000;
const deadlineMs = eventDateTime.getTime() - oneDayMs;
const msUntilDeadline = deadlineMs - Date.now();
if (msUntilDeadline <= 0) {
return { daysLeft: 0, isClosed: true };
}
const daysLeft = Math.ceil(msUntilDeadline / oneDayMs);
return { daysLeft, isClosed: false };
}
// Adresse ist nur im 24h-Fenster VOR Eventstart sichtbar.
function isAddressVisibleWindow(event) {
const eventDateTime = parseEventDateTime(event);
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
return false;
}
const msUntilStart = eventDateTime.getTime() - Date.now();
const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
return msUntilStart >= 0 && msUntilStart <= twentyfourHoursInMs;
}
function countRegistrationsForEvent(registrationMap, eventId) {
return Object.values(registrationMap).reduce((count, ids) => {
const hasEvent = Array.isArray(ids)
&& ids.map(id => Number(id)).includes(Number(eventId));
return hasEvent ? count + 1 : count;
}, 0);
}
// Ermittelt, ob das Event vom aktuell eingeloggten Benutzer erstellt wurde.
function isEventOwnedByCurrentUser(event, user) {
if (!event || !user) {
return false;
}
const userEmail = String(user.email || '').trim().toLowerCase();
const hostEmail = String(event.hostEmail || '').trim().toLowerCase();
if (userEmail && hostEmail) {
return userEmail === hostEmail;
}
// Fallback für ältere Datensätze ohne hostEmail.
const userFirstName = String(user.vorname || '').trim().toLowerCase();
const hostName = String(event.host?.name || '').trim().toLowerCase();
return Boolean(userFirstName && hostName && userFirstName === hostName);
}
// Prüft, ob der aktuelle Benutzer bereits in der Teilnehmerliste des Events steht.
function isUserListedInEventParticipants(event, user) {
if (!event || !user || !Array.isArray(event.participants)) {
return false;
}
const participantSet = new Set(
event.participants
.map(name => String(name || '').trim().toLowerCase())
.filter(Boolean)
);
const userFirstName = String(user.vorname || '').trim().toLowerCase();
const userFullName = `${String(user.vorname || '').trim()} ${String(user.nachname || '').trim()}`
.trim()
.toLowerCase();
return Boolean(
(userFirstName && participantSet.has(userFirstName))
|| (userFullName && participantSet.has(userFullName))
);
}
// Fetch data source and resolve the matching event record. // Fetch data source and resolve the matching event record.
try { try {
const response = await fetch('data/events.json'); const response = await fetch('data/events.json');
@@ -79,10 +308,10 @@ document.addEventListener('DOMContentLoaded', async () => {
// Map diet keys to readable labels while keeping unknown values untouched. // Map diet keys to readable labels while keeping unknown values untouched.
function getDietLabel(diet) { function getDietLabel(diet) {
const labels = { const labels = {
VEGGIE: 'Vegetarisch',
VEGAN: 'Vegan',
FLEISCH: 'Fleisch', FLEISCH: 'Fleisch',
FISCH: 'Fisch' FISCH: 'Fisch',
VEGGIE: 'Vegetarisch',
VEGAN: 'Vegan'
}; };
return labels[diet] || diet; return labels[diet] || diet;
@@ -102,42 +331,98 @@ document.addEventListener('DOMContentLoaded', async () => {
: ['Der Host hat für dieses Event noch keine Nachricht hinterlegt.']; : ['Der Host hat für dieses Event noch keine Nachricht hinterlegt.'];
const menuItems = Array.isArray(event.menu) && event.menu.length > 0 const menuItems = Array.isArray(event.menu) && event.menu.length > 0
? event.menu ? event.menu
: ['Menü wird in Kuerze bekannt gegeben.']; : ['Menü wird in Kürze bekannt gegeben.'];
const specifications = Array.isArray(event.specifications) && event.specifications.length > 0 const specifications = Array.isArray(event.specifications) && event.specifications.length > 0
? event.specifications ? event.specifications
: []; : [];
const participants = Array.isArray(event.participants) ? event.participants : []; const registrationMap = getRegistrationMap();
const galleryImages = Array.isArray(event.gallery) && event.gallery.length > 0 const participants = getResolvedParticipants(event, registrationMap);
? event.gallery const galleryImages = Array.isArray(event.gallery)
: [event.image, event.image, event.image]; ? event.gallery.filter(Boolean)
: [];
const galleryMarkup = galleryImages.length > 0
? `
<div class="detail-gallery detail-gallery-large">
${galleryImages.slice(0, 9).map((img, index) => `
<button class="detail-gallery-item" type="button" aria-label="Bild ${index + 1} gross anzeigen" data-fullsrc="${img}">
<img src="${img}" alt="${event.title} Bild ${index + 1}" class="detail-gallery-image">
</button>
`).join('')}
</div>
`
: '';
const visibleParticipants = participants.slice(0, 6); const visibleParticipants = participants.slice(0, 6);
const remainingParticipants = Math.max(0, participants.length - visibleParticipants.length); const remainingParticipants = Math.max(0, participants.length - visibleParticipants.length);
const totalGuests = Number.isFinite(event.spots) ? event.spots : 0; const totalGuests = Number.isFinite(event.spots) ? event.spots : 0;
const confirmedGuests = participants.length; const confirmedGuests = participants.length;
const freePlaces = Math.max(0, totalGuests - confirmedGuests); const freePlaces = Math.max(0, totalGuests - confirmedGuests);
const isFull = freePlaces === 0; const isFull = freePlaces === 0;
const isRegistrationClosed = isRegistrationClosedForEvent(event);
const isOwnEvent = isEventOwnedByCurrentUser(event, currentUser);
const deregInfo = getDeregistrationInfo(event);
const userRegistrations = currentUser?.email && Array.isArray(registrationMap[currentUser.email])
? registrationMap[currentUser.email].map(id => Number(id))
: [];
const isRegistered = userRegistrations.includes(Number(event.id));
const isListedParticipant = isUserListedInEventParticipants(event, currentUser);
const hasAddressAccess = isRegistered || isListedParticipant;
const actionButtonLabel = isOwnEvent
? 'Dein Event!'
: !currentUser
? 'Einloggen'
: isRegistered
? (deregInfo.isClosed ? 'Abmeldung geschlossen' : 'Abmelden')
: isRegistrationClosed
? 'Anmeldung geschlossen'
: 'Anmelden';
const actionButtonDisabled = isOwnEvent
|| (!isRegistered && (isFull || isRegistrationClosed))
|| (isRegistered && deregInfo.isClosed);
const actionButtonVariantClass = isOwnEvent
? ' button-primary'
: isRegistered
? ' button-primary-abmelden '
: isRegistrationClosed
? ' button-primary-abmelden '
: ' button-primary ';
const shouldRevealAddress = Boolean(event.address) && isAddressVisibleWindow(event) && hasAddressAccess;
const addressPanelMarkup = shouldRevealAddress
? `
<article class="detail-panel">
<h2 class="detail-section-title">Adresse</h2>
<p>${event.address}</p>
</article>
`
: `
<article class="detail-panel">
<h2 class="detail-section-title">Adresse</h2>
<p>Vielen Dank für die Anmeldung! Die Adresse für diesen Event wird 24 Stunden vorher genau hier sichtbar sein.</p>
</article>
`;
const detailChips = [ const detailChips = [
`<span class="event-tag">${eventCategory}</span>`, `<span class="event-tag">${eventCategory}</span>`,
`<span class="event-tag">${dietLabel}</span>`, ...event.diet.split(', ').filter(d => d.trim() && d !== 'Keine Angabe').map(d => `<span class="event-tag">${getDietLabel(d.trim())}</span>`),
...specifications.map(item => `<span class="event-tag">${item}</span>`) ...specifications.map(item => `<span class="event-tag">${item}</span>`)
].join(''); ].join('');
// Render complete detail page layout including: // Render complete detail page layout including:
// hero metadata, host card, menu, participants, gallery and sticky action bar. // hero metadata, host card, menu, participants, gallery and sticky action bar.
detailContainer.innerHTML = ` detailContainer.innerHTML = `
<div class="detail-page"> <button type="button" class="btn-back-to-overview" data-navigate-back>Zurück</button>
<a class="detail-back" href="event_overview.html">
<span aria-hidden="true">&lsaquo;</span>
Alle Events
</a>
<section class="detail-hero"> <section class="detail-hero">
<div class="detail-top-row"> <div class="detail-top-row">
<span class="event-location"> <span class="event-location">
<img src="${locationIconPath}" alt=""> <img src="${locationIconPath}" class="icon" alt="">${event.location}
${event.location} </span>
</span>
<p class="event-date-time">${displayDate} | ${displayTime} | ${confirmedGuests}/${totalGuests} Gaeste</p> <span class="event-date-time">
<img src="${calendarIconPath}" class="icon" alt=""> ${displayDate} | ${displayTime}
</span>
<span class="event-date-time">
<img src="${gastIconPath}" class="icon" alt="">${confirmedGuests}/${totalGuests}
</span>
</div> </div>
<h1 class="detail-title">${event.title}</h1> <h1 class="detail-title">${event.title}</h1>
<div class="event-meta-row detail-chip-row"> <div class="event-meta-row detail-chip-row">
@@ -147,41 +432,43 @@ document.addEventListener('DOMContentLoaded', async () => {
<section class="detail-content-grid"> <section class="detail-content-grid">
<div class="detail-side-stack"> <div class="detail-side-stack">
<article class="host-card detail-panel"> <article class="detail-panel">
<header class="host-header"> <header class="host-header">
<span class="host-avatar">${hostInitial}</span>
<span class="host-name">${hostName}</span>
<span class="host-role">Host</span> <span class="host-role">Host</span>
<span class="host-name">${hostName}</span>
</header> </header>
${hostMessage.map(paragraph => `<p>${paragraph}</p>`).join('')} ${hostMessage.map(paragraph => `<p>${paragraph}</p>`).join('')}
</article> </article>
<article class="detail-panel detail-panel-compact"> <article class="detail-panel">
<h2 class="detail-section-title">Menue</h2> <h2 class="detail-section-title">Menu</h2>
<ul class="detail-menu-list"> <ul class="detail-menu-list">
${menuItems.map(item => `<li>${item}</li>`).join('')} ${menuItems.map(item => `<li>${item}</li>`).join('')}
</ul> </ul>
</article> </article>
<article class="detail-panel detail-panel-compact"> <article class="detail-panel">
<div class="detail-participants-head"> <div class="detail-participants-head">
<h2 class="detail-section-title">Teilnehmer</h2> <h2 class="detail-section-title">Teilnehmer</h2>
<a href="#" class="detail-participants-link">Alle ansehen</a> <button type="button" class="detail-participants-link" data-show-all-participants>Alle ansehen</button>
</div> </div>
<div class="detail-avatar-row"> <div class="detail-avatar-row" data-participants-row>
${visibleParticipants.map(name => `<span class="participant-avatar">${name.charAt(0).toUpperCase()}</span>`).join('')} ${visibleParticipants.map(name => `<span class="participant-avatar">${name.charAt(0).toUpperCase()}</span>`).join('')}
${remainingParticipants > 0 ? `<span class="participant-more">+${remainingParticipants}</span>` : ''} ${remainingParticipants > 0 ? `<span class="participant-more">+${remainingParticipants}</span>` : ''}
</div> </div>
<div class="detail-participants-full hidden" data-participants-full>
${participants.map(name => `
<div class="detail-participant-item">
<span class="participant-name">${name}</span>
</div>
`).join('')}
</div>
</article> </article>
${addressPanelMarkup}
</div> </div>
<div class="detail-gallery detail-gallery-large"> ${galleryMarkup}
${galleryImages.slice(0, 9).map((img, index) => `
<button class="detail-gallery-item" type="button" aria-label="Bild ${index + 1} gross anzeigen" data-fullsrc="${img}">
<img src="${img}" alt="${event.title} Bild ${index + 1}" class="detail-gallery-image">
</button>
`).join('')}
</div>
</section> </section>
<section class="detail-action-bar"> <section class="detail-action-bar">
@@ -191,18 +478,38 @@ document.addEventListener('DOMContentLoaded', async () => {
<img src="${locationIconPath}" alt=""> <img src="${locationIconPath}" alt="">
${event.location} ${event.location}
</span> </span>
<span class="detail-action-meta-text">| ${displayDate} | ${displayTime} | ${confirmedGuests}/${totalGuests} Gaeste</span>
<span class="event-date-time detail-action-location">
<img src="${calendarIconPath}" alt=""> ${displayDate} | ${displayTime}
</span>
<span class="event-gast detail-action-location">
<img src="${gastIconPath}" alt="">
${confirmedGuests}/${totalGuests}
</span>
</small> </small>
<strong>${event.title}</strong> <strong>${event.title}</strong>
</div> </div>
<div class="detail-action-buttons"> <div class="detail-action-buttons">
<span class="detail-spots-pill${isFull ? ' detail-spots-pill-full' : ''}"> <span class="detail-spots-pill${isFull ? ' detail-spots-pill-full' : ''}">
${isFull ? 'AUSGEBUCHT' : `${freePlaces} Plaetze frei`} ${isFull ? 'AUSGEBUCHT' : `${freePlaces} Plätze frei`}
</span> </span>
<button class="detail-primary-btn" type="button" ${isFull ? 'disabled' : ''}> <div class="detail-action-btn-wrap">
Anmelden <button class="detail-primary-btn${actionButtonVariantClass}" type="button" data-register-button ${actionButtonDisabled ? 'disabled' : ''}>
</button> ${actionButtonLabel}
</button>
${isRegistered && deregInfo.daysLeft !== null ? `
<small class="detail-dereg-hint${deregInfo.isClosed ? ' detail-dereg-hint--closed' : ''}">
${deregInfo.isClosed
? 'Abmeldefrist abgelaufen'
: deregInfo.daysLeft === 1
? 'Noch 1 Tag zur Abmeldung'
: `Noch ${deregInfo.daysLeft} Tage zur Abmeldung`}
</small>
` : ''}
</div>
</div> </div>
</section> </section>
@@ -220,10 +527,84 @@ document.addEventListener('DOMContentLoaded', async () => {
// Lightbox behavior for gallery images: // Lightbox behavior for gallery images:
// open on image click, close via backdrop, close button or ESC. // open on image click, close via backdrop, close button or ESC.
// --------------------------------------------------------- // ---------------------------------------------------------
const backButton = detailContainer.querySelector('[data-navigate-back]');
const lightbox = detailContainer.querySelector('.detail-lightbox'); const lightbox = detailContainer.querySelector('.detail-lightbox');
const lightboxImage = detailContainer.querySelector('.detail-lightbox-image'); const lightboxImage = detailContainer.querySelector('.detail-lightbox-image');
const lightboxClose = detailContainer.querySelector('.detail-lightbox-close'); const lightboxClose = detailContainer.querySelector('.detail-lightbox-close');
const galleryButtons = detailContainer.querySelectorAll('.detail-gallery-item'); const galleryButtons = detailContainer.querySelectorAll('.detail-gallery-item');
const registerButton = detailContainer.querySelector('[data-register-button]');
// Harte Absicherung: Eigene Events sind auf der Detailseite immer deaktiviert.
if (registerButton && isOwnEvent) {
registerButton.disabled = true;
registerButton.textContent = 'Dein Event!';
registerButton.setAttribute('aria-disabled', 'true');
}
// Anmeldung toggeln und im lokalen Registrierungs-Store persistieren.
if (registerButton) {
registerButton.addEventListener('click', () => {
if (isOwnEvent) {
return;
}
if (!currentUser || !currentUser.email) {
window.location.href = 'login.html';
return;
}
const nextRegistrationMap = getRegistrationMap();
const currentList = Array.isArray(nextRegistrationMap[currentUser.email])
? nextRegistrationMap[currentUser.email].map(id => Number(id))
: [];
const registrationSet = new Set(currentList);
if (registrationSet.has(Number(event.id))) {
registrationSet.delete(Number(event.id));
// Snackbar: Feedback bei Abmeldung.
const snackbar = document.getElementById('snackbar');
if (snackbar) {
snackbar.textContent = 'Du wurdest erfolgreich abgemeldet.';
snackbar.classList.add('snackbar--danger', 'snackbar--visible');
setTimeout(() => {
snackbar.classList.remove('snackbar--visible');
setTimeout(() => snackbar.classList.remove('snackbar--danger'), 400);
}, 3000);
}
} else if (!isFull && !isRegistrationClosed) {
registrationSet.add(Number(event.id));
// Snackbar: Feedback bei Anmeldung.
const snackbar = document.getElementById('snackbar');
if (snackbar) {
snackbar.textContent = 'Du wurdest erfolgreich angemeldet.';
snackbar.classList.add('snackbar--visible');
setTimeout(() => snackbar.classList.remove('snackbar--visible'), 3000);
}
}
nextRegistrationMap[currentUser.email] = Array.from(registrationSet);
setRegistrationMap(nextRegistrationMap);
// Re-Render aktualisiert Buttonzustand und CTA ohne Seitenreload.
renderDetailPage(event);
});
}
// "Alle ansehen": Teilnehmerliste aufklappen / zuklappen.
const showAllBtn = detailContainer.querySelector('[data-show-all-participants]');
const avatarRow = detailContainer.querySelector('[data-participants-row]');
const fullList = detailContainer.querySelector('[data-participants-full]');
if (showAllBtn && avatarRow && fullList) {
showAllBtn.addEventListener('click', () => {
const isExpanded = !fullList.classList.contains('hidden');
fullList.classList.toggle('hidden');
avatarRow.classList.toggle('hidden');
showAllBtn.textContent = isExpanded ? 'Alle ansehen' : 'Weniger anzeigen';
});
}
// Central close helper to keep all close paths consistent. // Central close helper to keep all close paths consistent.
function closeLightbox() { function closeLightbox() {
@@ -268,5 +649,12 @@ document.addEventListener('DOMContentLoaded', async () => {
} }
}); });
} }
// Back button navigation: returns to event overview page.
if (backButton) {
backButton.addEventListener('click', () => {
window.location.href = 'event_overview.html';
});
}
} }
}); });
+396 -23
View File
@@ -1,5 +1,9 @@
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
const EVENTS_STORAGE_KEY = 'socialCookingEvents'; const EVENTS_STORAGE_KEY = 'socialCookingEvents';
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
const USERS_STORAGE_KEY = 'socialCookingUsers';
const REGISTRATION_STORAGE_KEY = 'socialCookingRegistrations';
const INFO_MODAL_SHOWN_KEY = 'infoModalShownOnFirstLogin';
// ------------------------------------------------------------- // -------------------------------------------------------------
// DOM references used throughout the page lifecycle. // DOM references used throughout the page lifecycle.
// ------------------------------------------------------------- // -------------------------------------------------------------
@@ -7,13 +11,48 @@ document.addEventListener('DOMContentLoaded', () => {
const filterButtons = document.querySelectorAll('.category-item'); const filterButtons = document.querySelectorAll('.category-item');
const locationFilter = document.getElementById('location-filter'); const locationFilter = document.getElementById('location-filter');
const dateFilter = document.getElementById('date-filter'); const dateFilter = document.getElementById('date-filter');
const locationIconPath = 'assets/location-pin.svg'; const locationIconPath = 'assets/icon_location.svg';
const calendarIconPath = 'assets/icon_calendar.svg';
const gastIconPath = 'assets/icon_gast.svg';
// ------------------------------------------------------------- // -------------------------------------------------------------
// In-memory state for fetched events and currently active category. // In-memory state for fetched events and currently active filters.
// Separate state for category, diet, and allergie selections.
// ------------------------------------------------------------- // -------------------------------------------------------------
let allEvents = []; let allEvents = [];
let activeCategory = 'ALLE'; let activeCategory = 'ALLE';
let activeDiets = new Set();
let activeAllergies = new Set();
const currentUser = getCurrentUser();
function getCurrentUser() {
try {
const stored = localStorage.getItem(CURRENT_USER_KEY);
return stored ? JSON.parse(stored) : null;
} catch (error) {
console.error('Aktueller Benutzer konnte nicht gelesen werden.', error);
return null;
}
}
// Prüft, ob ein Event dem aktuellen Benutzer gehört.
function isEventOwnedByCurrentUser(event, user) {
if (!event || !user) {
return false;
}
const userEmail = String(user.email || '').trim().toLowerCase();
const hostEmail = String(event.hostEmail || '').trim().toLowerCase();
if (userEmail && hostEmail) {
return userEmail === hostEmail;
}
const userFirstName = String(user.vorname || '').trim().toLowerCase();
const hostName = String(event.host?.name || '').trim().toLowerCase();
return Boolean(userFirstName && hostName && userFirstName === hostName);
}
function getStoredEvents() { function getStoredEvents() {
try { try {
@@ -25,6 +64,71 @@ document.addEventListener('DOMContentLoaded', () => {
} }
} }
function getRegistrationMap() {
try {
const stored = localStorage.getItem(REGISTRATION_STORAGE_KEY);
return stored ? JSON.parse(stored) : {};
} catch (error) {
console.error('Anmeldedaten konnten nicht gelesen werden.', error);
return {};
}
}
function getStoredUsers() {
try {
const stored = localStorage.getItem(USERS_STORAGE_KEY);
return stored ? JSON.parse(stored) : [];
} catch (error) {
console.error('Benutzerdaten konnten nicht gelesen werden.', error);
return [];
}
}
function getUserDisplayName(user) {
if (!user) {
return '';
}
const firstName = String(user.vorname || '').trim();
const lastName = String(user.nachname || '').trim();
return (firstName || `${firstName} ${lastName}`.trim() || String(user.email || '').trim()).trim();
}
function getResolvedParticipants(event, registrationMap) {
const baseParticipants = Array.isArray(event.participants)
? event.participants.map(name => String(name || '').trim()).filter(Boolean)
: [];
const usersByEmail = new Map(
getStoredUsers().map(user => [String(user.email || '').trim().toLowerCase(), user])
);
const participantLookup = new Set(baseParticipants.map(name => name.toLowerCase()));
Object.entries(registrationMap || {}).forEach(([email, ids]) => {
const isRegisteredForEvent = Array.isArray(ids)
&& ids.map(id => Number(id)).includes(Number(event.id));
if (!isRegisteredForEvent) {
return;
}
const user = usersByEmail.get(String(email || '').trim().toLowerCase());
const displayName = getUserDisplayName(user) || String(email || '').trim();
const normalizedName = displayName.toLowerCase();
if (displayName && !participantLookup.has(normalizedName)) {
baseParticipants.push(displayName);
participantLookup.add(normalizedName);
}
});
return baseParticipants;
}
function setRegistrationMap(registrationMap) {
localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(registrationMap));
}
// ------------------------------------------------------------- // -------------------------------------------------------------
// Initial data bootstrap: // Initial data bootstrap:
// 1) fetch JSON, // 1) fetch JSON,
@@ -43,8 +147,13 @@ document.addEventListener('DOMContentLoaded', () => {
const savedCategory = sessionStorage.getItem('activeFilter') || 'ALLE'; const savedCategory = sessionStorage.getItem('activeFilter') || 'ALLE';
const savedLocation = sessionStorage.getItem('activeLocation') || 'ALLE_ORTE'; const savedLocation = sessionStorage.getItem('activeLocation') || 'ALLE_ORTE';
const savedDate = sessionStorage.getItem('activeDate') || ''; const savedDate = sessionStorage.getItem('activeDate') || '';
const savedDiets = sessionStorage.getItem('activeDiets') || '';
const savedAllergies = sessionStorage.getItem('activeAllergies') || '';
activeCategory = savedCategory; activeCategory = savedCategory;
activeDiets = new Set(savedDiets ? savedDiets.split(',') : []);
activeAllergies = new Set(savedAllergies ? savedAllergies.split(',') : []);
if (locationFilter) { if (locationFilter) {
locationFilter.value = hasOption(locationFilter, savedLocation) ? savedLocation : 'ALLE_ORTE'; locationFilter.value = hasOption(locationFilter, savedLocation) ? savedLocation : 'ALLE_ORTE';
} }
@@ -153,31 +262,136 @@ document.addEventListener('DOMContentLoaded', () => {
: `${timeString} Uhr`; : `${timeString} Uhr`;
} }
// Baut aus Eventdatum/-zeit ein Date-Objekt für Fristlogik und Vergleiche.
function parseEventDateTime(event) {
if (!event?.date) {
return null;
}
const dateValue = String(event.date).trim();
const isoDateMatch = dateValue.match(/^(\d{4})-(\d{2})-(\d{2})$/);
let year;
let month;
let day;
if (isoDateMatch) {
year = Number(isoDateMatch[1]);
month = Number(isoDateMatch[2]);
day = Number(isoDateMatch[3]);
} else {
const monthMap = {
JAN: 1,
FEB: 2,
'MÄR': 3,
MRZ: 3,
APR: 4,
MAI: 5,
JUN: 6,
JUL: 7,
AUG: 8,
SEP: 9,
OKT: 10,
NOV: 11,
DEZ: 12
};
const localizedMatch = dateValue.match(/^(\d{1,2})\.\s*([A-ZÄÖÜ]{3})\.\s*(\d{4})$/);
if (!localizedMatch) {
return null;
}
day = Number(localizedMatch[1]);
month = monthMap[localizedMatch[2]];
year = Number(localizedMatch[3]);
if (!month) {
return null;
}
}
const timeMatch = String(event.time || '').match(/(\d{1,2}):(\d{2})/);
const hours = timeMatch ? Number(timeMatch[1]) : 0;
const minutes = timeMatch ? Number(timeMatch[2]) : 0;
return new Date(year, month - 1, day, hours, minutes, 0, 0);
}
// Zählt eindeutige Registrierungen eines Events über alle Benutzer.
function countRegistrationsForEvent(registrationMap, eventId) {
return Object.values(registrationMap).reduce((count, ids) => {
const hasEvent = Array.isArray(ids)
&& ids.map(id => Number(id)).includes(Number(eventId));
return hasEvent ? count + 1 : count;
}, 0);
}
// Schliesst neue Anmeldungen ab 24h vor Start (inkl. bereits gestarteter Events).
function isRegistrationClosedForEvent(event) {
const eventDateTime = parseEventDateTime(event);
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
return false;
}
const msUntilStart = eventDateTime.getTime() - Date.now();
const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
return msUntilStart <= twentyfourHoursInMs;
}
// Safely verify whether a value exists in the given select element. // Safely verify whether a value exists in the given select element.
function hasOption(selectElement, value) { function hasOption(selectElement, value) {
return Array.from(selectElement.options).some(option => option.value === value); return Array.from(selectElement.options).some(option => option.value === value);
} }
// Apply all filters together (category, location, date), update button state, render and persist. // Apply all filters together (category, diet, allergie, location, date), update button state, render and persist.
function applyFilters() { function applyFilters() {
const selectedLocation = locationFilter ? locationFilter.value : 'ALLE_ORTE'; const selectedLocation = locationFilter ? locationFilter.value : 'ALLE_ORTE';
const selectedDate = dateFilter ? dateFilter.value : ''; const selectedDate = dateFilter ? dateFilter.value : '';
// Update active states for all filter types
filterButtons.forEach(btn => { filterButtons.forEach(btn => {
if (btn.getAttribute('data-cat') === activeCategory) { const isCategoryButton = btn.getAttribute('data-cat') !== null;
btn.classList.add('active'); const isDietButton = btn.getAttribute('data-diet') !== null;
} else { const isAllergieButton = btn.getAttribute('data-allergie') !== null;
btn.classList.remove('active');
if (isCategoryButton) {
if (btn.getAttribute('data-cat') === activeCategory) {
btn.classList.add('active');
} else {
btn.classList.remove('active');
}
} else if (isDietButton) {
if (activeDiets.has(btn.getAttribute('data-diet'))) {
btn.classList.add('active');
} else {
btn.classList.remove('active');
}
} else if (isAllergieButton) {
if (activeAllergies.has(btn.getAttribute('data-allergie'))) {
btn.classList.add('active');
} else {
btn.classList.remove('active');
}
} }
}); });
const filtered = allEvents.filter(event => { const filtered = allEvents.filter(event => {
const categoryMatch = activeCategory === 'ALLE' || event.category === activeCategory; const categoryMatch = activeCategory === 'ALLE' || event.category === activeCategory;
// Diet filter: if no diets selected, show all. Otherwise, event MUST have at least one selected diet.
const dietMatch = activeDiets.size === 0 ||
(event.diet && event.diet.split(', ').some(d => activeDiets.has(d.trim())));
// Allergie filter: if no allergies selected, show all. Otherwise, event MUST have at least one selected allergie.
const allergieMatch = activeAllergies.size === 0 ||
(event.specifications && event.specifications.some(spec => activeAllergies.has(spec)));
const locationMatch = selectedLocation === 'ALLE_ORTE' || event.location === selectedLocation; const locationMatch = selectedLocation === 'ALLE_ORTE' || event.location === selectedLocation;
const eventDateIso = parseEventDateToIso(event.date); const eventDateIso = parseEventDateToIso(event.date);
const dateMatch = !selectedDate || eventDateIso === selectedDate; const dateMatch = !selectedDate || eventDateIso === selectedDate;
return categoryMatch && locationMatch && dateMatch; return categoryMatch && dietMatch && allergieMatch && locationMatch && dateMatch;
}); });
renderEvents(filtered); renderEvents(filtered);
@@ -185,6 +399,8 @@ document.addEventListener('DOMContentLoaded', () => {
sessionStorage.setItem('activeFilter', activeCategory); sessionStorage.setItem('activeFilter', activeCategory);
sessionStorage.setItem('activeLocation', selectedLocation); sessionStorage.setItem('activeLocation', selectedLocation);
sessionStorage.setItem('activeDate', selectedDate); sessionStorage.setItem('activeDate', selectedDate);
sessionStorage.setItem('activeDiets', Array.from(activeDiets).join(','));
sessionStorage.setItem('activeAllergies', Array.from(activeAllergies).join(','));
} }
// Render either: // Render either:
@@ -192,15 +408,19 @@ document.addEventListener('DOMContentLoaded', () => {
// - or event cards with status and metadata. // - or event cards with status and metadata.
function renderEvents(events) { function renderEvents(events) {
eventGrid.innerHTML = ''; eventGrid.innerHTML = '';
const registrationMap = getRegistrationMap();
const userRegistrationSet = currentUser?.email && Array.isArray(registrationMap[currentUser.email])
? new Set(registrationMap[currentUser.email].map(id => Number(id)))
: new Set();
if (events.length === 0) { if (events.length === 0) {
eventGrid.innerHTML = ` eventGrid.innerHTML = `
<div class="empty-state"> <div class="empty-state">
<p class="empty-state-kicker">Keine Treffer</p> <p class="empty-state-kicker">Keine Treffer</p>
<h3>Schade, aktuell gibt es hier keine Events.</h3> <h3>Schade, aktuell gibt es hier keine Events.</h3>
<p>Starte dein eigenes Dinner und bringe die Community an deinen Tisch.</p> <p>Starte dein eigenes Event und bringe die Community an deinen Tisch.</p>
<a class="empty-state-link" href="event_create.html"> <a class="empty-state-link" href="event_create.html">
<button class="empty-state-btn" type="button">Event erstellen</button> <button class="button-primary" type="button">Event erstellen</button>
</a> </a>
</div> </div>
`; `;
@@ -212,55 +432,165 @@ document.addEventListener('DOMContentLoaded', () => {
const card = document.createElement('article'); const card = document.createElement('article');
card.className = 'event-card'; card.className = 'event-card';
card.style.cursor = 'pointer'; card.style.cursor = 'pointer';
card.onclick = () => { card.addEventListener('click', clickedEvent => {
if (clickedEvent.target instanceof HTMLElement && clickedEvent.target.closest('button')) {
return;
}
window.location.href = `event_detail.html?id=${event.id}`; window.location.href = `event_detail.html?id=${event.id}`;
}; });
const displayDate = formatEventDate(event.date); const displayDate = formatEventDate(event.date);
const displayTime = formatEventTime(event.time); const displayTime = formatEventTime(event.time);
// Capacity logic: // Capacity logic:
// spots = total capacity, participants.length = booked seats. // spots = total capacity, resolved participants = booked seats.
const bookedSeats = event.participants ? event.participants.length : 0; const resolvedParticipants = getResolvedParticipants(event, registrationMap);
const bookedSeats = resolvedParticipants.length;
const totalCapacity = event.spots; const totalCapacity = event.spots;
const freePlaces = Math.max(0, totalCapacity - bookedSeats); const freePlaces = Math.max(0, totalCapacity - bookedSeats);
const isFull = freePlaces === 0; const isFull = freePlaces === 0;
const isOwnEvent = isEventOwnedByCurrentUser(event, currentUser);
const isRegistered = userRegistrationSet.has(Number(event.id));
const isRegistrationClosed = isRegistrationClosedForEvent(event);
// Build optional specification chips only when data exists. // Build optional specification chips only when data exists.
const specsChips = event.specifications && event.specifications.length > 0 const specsChips = event.specifications && event.specifications.length > 0
? event.specifications.map(spec => `<span class="event-tag">${spec}</span>`).join('') ? event.specifications.map(spec => `<span class="event-tag">${spec}</span>`).join('')
: ''; : '';
// Build diet tags: split by comma and create individual tags
const dietTags = event.diet && event.diet !== 'Keine Angabe' && event.diet !== '–'
? event.diet.split(', ').map(d => `<span class="event-tag">${d.trim()}</span>`).join('')
: '';
const actionMarkup = isOwnEvent
? '<button class="button-primary-eigener-event" type="button" data-registration-action="own" disabled>Dein Event!</button>'
: isRegistered
? '<button class="button-primary button-primary-abmelden" type="button" data-registration-action="unregister">Abmelden</button>'
: isRegistrationClosed
? '<button class="button-primary" button-plaetze" type="button" data-registration-action="closed" disabled>Anmeldung geschlossen</button>'
: isFull
? ''
: !currentUser
? '<button class="button-primary btn-primary-register" type="button" data-registration-action="login">Anmelden</button>'
: '<button class="button-primary btn-primary-register" type="button" data-registration-action="register">Anmelden</button>';
card.innerHTML = ` card.innerHTML = `
<div class="event-main"> <div class="event-main">
<div class="event-top-row"> <div class="event-top-row">
<span class="event-location"> <span class="event-location">
<img src="${locationIconPath}" alt=""> <img src="${locationIconPath}" class="icon" alt="">
${event.location} ${event.location}
</span> </span>
<p class="event-date-time">${displayDate} | ${displayTime} | ${bookedSeats}/${totalCapacity} Gaeste</p> <span class="event-date-time"> <img src="${calendarIconPath}" class="icon" alt=""> ${displayDate} | ${displayTime}
</span>
<span class="event-gast"> <img src="${gastIconPath}" class="icon" alt="Gaeste Icon">${bookedSeats}/${totalCapacity} </span>
</div> </div>
<h2 class="event-title">${event.title}</h2> <h2>${event.title}</h2>
<div class="event-meta-row"> <div class="event-meta-row">
<span class="event-tag">${event.category}</span> <span class="event-tag">${event.category}</span>
<span class="event-tag">${event.diet}</span> ${dietTags}
${specsChips} ${specsChips}
</div> </div>
</div> </div>
<div class="event-side${isFull ? ' event-side-full' : ''}"> <div class="event-side${isFull ? ' event-side-full' : ''}">
<span class="event-spots${isFull ? ' event-spots-full' : ''}">${isFull ? 'AUSGEBUCHT' : `${freePlaces} Plätze FREI`}</span> ${isRegistrationClosed ? '' : `<span class="button-plaetze${isFull ? ' event-spots-full' : ''}">${isFull ? 'Ausgebucht' : `${freePlaces} Plätze frei`}</span>`}
${isFull ? '' : '<button class="btn-primary" type="button">Anmelden</button>'} ${actionMarkup}
</div> </div>
`; `;
const actionButton = card.querySelector('[data-registration-action]');
if (actionButton) {
actionButton.addEventListener('click', clickEvent => {
clickEvent.stopPropagation();
const action = actionButton.getAttribute('data-registration-action');
if (action === 'own') {
return;
}
if (action === 'closed') {
return;
}
if (action === 'login') {
window.location.href = 'login.html';
return;
}
if (!currentUser?.email) {
window.location.href = 'login.html';
return;
}
const nextRegistrationMap = getRegistrationMap();
const currentIds = Array.isArray(nextRegistrationMap[currentUser.email])
? nextRegistrationMap[currentUser.email].map(id => Number(id))
: [];
const idSet = new Set(currentIds);
// Abmeldung: Benutzer vom Event entfernen und Snackbar anzeigen.
if (action === 'unregister') {
idSet.delete(Number(event.id));
const snackbar = document.getElementById('snackbar');
if (snackbar) {
snackbar.textContent = 'Du wurdest erfolgreich abgemeldet.';
snackbar.classList.add('snackbar--danger', 'snackbar--visible');
setTimeout(() => {
snackbar.classList.remove('snackbar--visible');
setTimeout(() => snackbar.classList.remove('snackbar--danger'), 400);
}, 3000);
}
}
// Anmeldung: Benutzer zum Event hinzufügen und Snackbar anzeigen.
if (action === 'register' && !isFull && !isRegistrationClosed) {
idSet.add(Number(event.id));
const snackbar = document.getElementById('snackbar');
if (snackbar) {
snackbar.textContent = 'Du wurdest erfolgreich angemeldet.';
snackbar.classList.add('snackbar--visible');
setTimeout(() => snackbar.classList.remove('snackbar--visible'), 3000);
}
}
nextRegistrationMap[currentUser.email] = Array.from(idSet);
setRegistrationMap(nextRegistrationMap);
applyFilters();
});
}
eventGrid.appendChild(card); eventGrid.appendChild(card);
}); });
} }
// Category filter interactions. // Category filter interactions: mutually exclusive (radio button behavior).
filterButtons.forEach(button => { filterButtons.forEach(button => {
button.addEventListener('click', () => { button.addEventListener('click', () => {
activeCategory = button.getAttribute('data-cat'); const categoryValue = button.getAttribute('data-cat');
const dietValue = button.getAttribute('data-diet');
const allergieValue = button.getAttribute('data-allergie');
if (categoryValue !== null) {
// Category filter: exclusive selection
activeCategory = categoryValue;
} else if (dietValue !== null) {
// Diet filter: toggle selection
if (activeDiets.has(dietValue)) {
activeDiets.delete(dietValue);
} else {
activeDiets.add(dietValue);
}
} else if (allergieValue !== null) {
// Allergie filter: toggle selection
if (activeAllergies.has(allergieValue)) {
activeAllergies.delete(allergieValue);
} else {
activeAllergies.add(allergieValue);
}
}
applyFilters(); applyFilters();
}); });
}); });
@@ -272,6 +602,49 @@ document.addEventListener('DOMContentLoaded', () => {
if (dateFilter) { if (dateFilter) {
dateFilter.addEventListener('change', applyFilters); dateFilter.addEventListener('change', applyFilters);
// Make calendar icon clickable to focus the date input
const calendarIcon = document.querySelector('.calendar-icon');
if (calendarIcon) {
calendarIcon.addEventListener('click', () => {
dateFilter.focus();
dateFilter.click();
});
}
}
// Info button modal behavior
const infoButton = document.getElementById('info-button');
const infoModal = document.getElementById('info-modal');
const modalClose = infoModal?.querySelector('.modal-close');
if (infoButton && infoModal) {
infoButton.addEventListener('click', () => {
infoModal.classList.add('show');
});
}
if (modalClose && infoModal) {
modalClose.addEventListener('click', () => {
infoModal.classList.remove('show');
});
}
if (infoModal) {
infoModal.addEventListener('click', (event) => {
if (event.target === infoModal) {
infoModal.classList.remove('show');
}
});
}
// Auto-open info modal on first login
if (currentUser && infoModal) {
const hasShownInfoModal = localStorage.getItem(INFO_MODAL_SHOWN_KEY);
if (!hasShownInfoModal) {
infoModal.classList.add('show');
localStorage.setItem(INFO_MODAL_SHOWN_KEY, 'true');
}
} }
// Kick off initial load/render cycle. // Kick off initial load/render cycle.
+122 -31
View File
@@ -1,52 +1,143 @@
// =============================================
// Galerie-Karussell (Startseite)
// Diese Datei steuert die Foto-Galerie mit Pfeilen.
// =============================================
// Wichtige Elemente aus dem HTML holen.
const carouselTrack = document.querySelector('.gallery__track'); const carouselTrack = document.querySelector('.gallery__track');
const prevArrow = document.querySelector('.gallery__arrow--prev'); const prevArrow = document.querySelector('.gallery__arrow--prev');
const nextArrow = document.querySelector('.gallery__arrow--next'); const nextArrow = document.querySelector('.gallery__arrow--next');
const dotsContainer = document.querySelector('.gallery_dots');
// Nur ausführen, wenn die Galerie auf der Seite vorhanden ist.
if (carouselTrack) { if (carouselTrack) {
// Alle einzelnen Karten/Bilder im Track sammeln.
const items = Array.from(carouselTrack.querySelectorAll('.gallery__item')); const items = Array.from(carouselTrack.querySelectorAll('.gallery__item'));
// Auf Mobile zeigen wir 1 Bild, auf Desktop 3 Bilder pro "Seite".
const getItemsPerPage = () => (window.matchMedia('(max-width: 900px)').matches ? 1 : 3); const getItemsPerPage = () => (window.matchMedia('(max-width: 900px)').matches ? 1 : 3);
let itemsPerPage = getItemsPerPage(); let itemsPerPage = getItemsPerPage();
const pageCount = Math.ceil(items.length / itemsPerPage); let pageCount = Math.ceil(items.length / itemsPerPage);
let activePage = 0; let activePage = 0;
var dots = [];
function scrollToPage(page) { function buildDots() {
activePage = page; if (!dotsContainer) return;
const pageWidth = carouselTrack.clientWidth; dotsContainer.innerHTML = '';
carouselTrack.scrollTo({ left: pageWidth * page, behavior: 'smooth' }); dots = [];
} for (var i = 0; i < pageCount; i++) {
var dot = document.createElement('button');
function showNext() { dot.type = 'button';
activePage = (activePage + 1) % pageCount; dot.className = 'gallery_dot' + (i === activePage ? ' gallery_dot--active' : '');
scrollToPage(activePage); dot.setAttribute('role', 'tab');
} dot.setAttribute('aria-selected', i === activePage ? 'true' : 'false');
dot.setAttribute('aria-label', 'Seite ' + (i + 1) + ' von ' + pageCount);
function showPrev() { dot.dataset.page = i;
activePage = (activePage - 1 + pageCount) % pageCount; dot.addEventListener('click', function() {
scrollToPage(activePage); goToPage(parseInt(this.dataset.page));
} });
dotsContainer.appendChild(dot);
function refreshCarousel() { dots.push(dot);
const responsiveItemsPerPage = getItemsPerPage();
if (responsiveItemsPerPage !== itemsPerPage) {
itemsPerPage = responsiveItemsPerPage;
window.location.reload();
} }
} }
function updateDots() {
dots.forEach(function(dot, i) {
dot.classList.toggle('gallery_dot--active', i === activePage);
dot.setAttribute('aria-selected', i === activePage ? 'true' : 'false');
});
}
function updateTrack() {
var gap = parseFloat(getComputedStyle(carouselTrack).gap) || 20;
var itemWidth = items[0].getBoundingClientRect().width;
var offset = activePage * (itemWidth + gap) * itemsPerPage;
carouselTrack.style.transform = 'translateX(-' + offset + 'px)';
carouselTrack.style.transition = 'transform 0.4s ease';
updateDots();
}
function goToPage(page) {
activePage = page;
updateTrack();
}
// Geht zur nächsten Seite (mit Wrap-around am Ende).
function showNext() {
activePage = (activePage + 1) % pageCount;
updateTrack();
}
// Geht zur vorherigen Seite (mit Wrap-around zum Ende).
function showPrev() {
activePage = (activePage - 1 + pageCount) % pageCount;
updateTrack();
}
buildDots();
// Klick-Steuerung der Pfeile.
if (nextArrow) nextArrow.addEventListener('click', showNext); if (nextArrow) nextArrow.addEventListener('click', showNext);
if (prevArrow) prevArrow.addEventListener('click', showPrev); if (prevArrow) prevArrow.addEventListener('click', showPrev);
document.addEventListener('keydown', (event) => { // Tastatur-Support für Barrierefreiheit.
if (event.key === 'ArrowRight') { document.addEventListener('keydown', function(event) {
showNext(); if (event.key === 'ArrowRight') showNext();
if (event.key === 'ArrowLeft') showPrev();
});
// Reagiert auf Bildschirmgrössen-Änderungen.
window.addEventListener('resize', function() {
var newPerPage = getItemsPerPage();
if (newPerPage !== itemsPerPage) {
itemsPerPage = newPerPage;
pageCount = Math.ceil(items.length / itemsPerPage);
activePage = 0;
} }
if (event.key === 'ArrowLeft') { buildDots();
showPrev(); updateTrack();
});
// =============================================
// Lightbox: Bild vergrössern bei Klick
// =============================================
const lightbox = document.getElementById('gallery-lightbox');
const lightboxImage = lightbox ? lightbox.querySelector('.lightbox__image') : null;
function openLightbox(src, alt) {
if (!lightbox || !lightboxImage) return;
lightboxImage.src = src;
lightboxImage.alt = alt || 'Grossansicht';
lightbox.classList.add('is-open');
lightbox.setAttribute('aria-hidden', 'false');
}
function closeLightbox() {
if (!lightbox) return;
lightbox.classList.remove('is-open');
lightbox.setAttribute('aria-hidden', 'true');
lightboxImage.src = '';
}
// Klick auf Galerie-Bild öffnet die Lightbox.
items.forEach(function(item) {
var img = item.querySelector('img');
if (img) {
item.addEventListener('click', function() {
openLightbox(img.src, img.alt);
});
} }
}); });
window.addEventListener('resize', () => { // Lightbox schliessen: Backdrop, Close-Button oder ESC-Taste.
refreshCarousel(); if (lightbox) {
scrollToPage(activePage); lightbox.querySelector('.lightbox__close').addEventListener('click', closeLightbox);
}); lightbox.querySelector('[data-close-lightbox]').addEventListener('click', closeLightbox);
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape' && lightbox.classList.contains('is-open')) {
closeLightbox();
}
});
}
} }
+19 -3
View File
@@ -1,8 +1,18 @@
// =============================================
// Mini-Galerie auf der Landingpage
// Diese Datei hebt immer ein Bild hervor und
// erlaubt Navigation mit Pfeilen/Tastatur.
// =============================================
// Elemente aus dem DOM lesen.
const prevBtn = document.querySelector('.arrow--prev'); const prevBtn = document.querySelector('.arrow--prev');
const nextBtn = document.querySelector('.arrow--next'); const nextBtn = document.querySelector('.arrow--next');
const items = Array.from(document.querySelectorAll('.gallery__item')); const items = Array.from(document.querySelectorAll('.gallery__item'));
let activeIndex = 0; let activeIndex = 0;
// Aktualisiert die Darstellung aller Bilder:
// - aktives Bild ist klar sichtbar
// - inaktive Bilder sind abgeblendet
function updateGallery() { function updateGallery() {
items.forEach((item, i) => { items.forEach((item, i) => {
item.style.opacity = i === activeIndex ? '1' : '0.35'; item.style.opacity = i === activeIndex ? '1' : '0.35';
@@ -10,20 +20,25 @@ function updateGallery() {
}); });
} }
// Ein Schritt nach rechts.
function showNext() { function showNext() {
if (!items.length) return;
activeIndex = (activeIndex + 1) % items.length; activeIndex = (activeIndex + 1) % items.length;
updateGallery(); updateGallery();
} }
// Ein Schritt nach links.
function showPrev() { function showPrev() {
if (!items.length) return;
activeIndex = (activeIndex - 1 + items.length) % items.length; activeIndex = (activeIndex - 1 + items.length) % items.length;
updateGallery(); updateGallery();
} }
nextBtn.addEventListener('click', showNext); // Event-Handler nur registrieren, wenn die Buttons existieren.
prevBtn.addEventListener('click', showPrev); if (nextBtn) nextBtn.addEventListener('click', showNext);
if (prevBtn) prevBtn.addEventListener('click', showPrev);
// keyboard support // Tastatursteuerung für bessere Bedienbarkeit.
document.addEventListener('keydown', (event) => { document.addEventListener('keydown', (event) => {
if (event.key === 'ArrowRight') { if (event.key === 'ArrowRight') {
showNext(); showNext();
@@ -33,4 +48,5 @@ document.addEventListener('keydown', (event) => {
} }
}); });
// Initialen Zustand einmal setzen.
updateGallery(); updateGallery();
+68 -4
View File
@@ -1,9 +1,52 @@
// =============================================
// Login-Logik
// Diese Datei validiert die Eingaben, sucht den
// Benutzer im localStorage und legt die Session an.
// =============================================
// Formular und Felder aus dem HTML holen.
const loginForm = document.getElementById('loginForm'); const loginForm = document.getElementById('loginForm');
const emailInput = document.getElementById('email'); const emailInput = document.getElementById('email');
const passwortInput = document.getElementById('passwort'); const passwortInput = document.getElementById('passwort');
const emailError = document.getElementById('emailError'); const emailError = document.getElementById('emailError');
const passwortError = document.getElementById('passwortError'); const passwortError = document.getElementById('passwortError');
const USERS_STORAGE_KEY = 'socialCookingUsers';
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
// Liest alle registrierten Benutzer robust aus localStorage.
function getStoredUsers() {
try {
const raw = localStorage.getItem(USERS_STORAGE_KEY);
return raw ? JSON.parse(raw) : [];
} catch (error) {
console.error('Benutzerdaten konnten nicht gelesen werden.', error);
return [];
}
}
// Speichert den aktiven Benutzer für nachfolgende Seiten.
function setCurrentUser(user) {
localStorage.setItem(CURRENT_USER_KEY, JSON.stringify(user));
}
// Erstellt einen Demo-Benutzer, falls für die E-Mail noch kein Account existiert.
function createFallbackUser(email, passwort) {
const localPart = email.split('@')[0] || 'Gast';
const normalized = localPart.replace(/[._-]/g, ' ').trim();
const guessedVorname = normalized ? normalized.split(' ')[0] : 'Gast';
return {
id: Date.now(),
vorname: guessedVorname.charAt(0).toUpperCase() + guessedVorname.slice(1),
nachname: '',
email,
passwort,
createdAt: new Date().toISOString(),
source: 'login-fallback'
};
}
// Validierungsfunktion // Validierungsfunktion
function validateForm(event) { function validateForm(event) {
event.preventDefault(); event.preventDefault();
@@ -43,12 +86,33 @@ function validateForm(event) {
passwortGroup.classList.remove('has-error'); passwortGroup.classList.remove('has-error');
} }
// Wenn alle Validierungen bestanden, Form absenden // Wenn alle Validierungen bestanden, prüfen wir:
// 1) gibt es den Benutzer schon?
// 2) ist das Passwort korrekt?
// Danach speichern wir die aktive Session.
if (isValid) { if (isValid) {
//alert('Login erfolgreich! (Dies ist eine Demo)'); const users = getStoredUsers();
const matchedUser = users.find(user => user.email?.toLowerCase() === emailValue.toLowerCase());
// Weiterleitung zur event overview Page if (matchedUser && matchedUser.passwort !== passwortValue) {
window.location.href = 'event_overview.html'; passwortGroup.classList.add('has-error');
passwortError.textContent = 'Das Passwort ist nicht korrekt.';
return;
}
const userToLogin = matchedUser || createFallbackUser(emailValue, passwortValue);
setCurrentUser(userToLogin);
// Snackbar anzeigen und dann zur Event-Übersicht weiterleiten.
var snackbar = document.getElementById('snackbar');
if (snackbar) {
snackbar.classList.add('snackbar--visible');
setTimeout(function() {
window.location.href = 'event_overview.html';
}, 2000);
} else {
window.location.href = 'event_overview.html';
}
} }
} }
+665
View File
@@ -0,0 +1,665 @@
document.addEventListener('DOMContentLoaded', () => {
const EVENTS_STORAGE_KEY = 'socialCookingEvents';
const USERS_STORAGE_KEY = 'socialCookingUsers';
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
const REGISTRATION_STORAGE_KEY = 'socialCookingRegistrations';
// Zentrale DOM-Referenzen für klare, testbare Funktionen.
const loggedOutState = document.getElementById('logged-out-state');
const loggedInContent = document.getElementById('logged-in-content');
const profileHeadline = document.getElementById('headline');
const profileSubline = document.getElementById('profile-subline');
const logoutButton = document.getElementById('logout-button');
const profileTabButtons = Array.from(document.querySelectorAll('[data-category-item]'));
const profileTabPanels = Array.from(document.querySelectorAll('[data-profile-panel]'));
const myEventsCount = document.getElementById('my-events-count');
const myRegistrationsCount = document.getElementById('my-registrations-count');
const myEventsList = document.getElementById('my-events-list');
const myRegistrationsList = document.getElementById('my-registrations-list');
const profileForm = document.getElementById('profile-form');
const profileFeedback = document.getElementById('profile-feedback');
const vornameInput = document.getElementById('vorname');
const nachnameInput = document.getElementById('nachname');
const emailInput = document.getElementById('email');
const passwortInput = document.getElementById('passwort');
let currentUser = getCurrentUser();
let allEvents = [];
init();
async function init() {
if (!currentUser) {
renderLoggedOutState();
return;
}
renderLoggedInState(currentUser);
bindFormHandlers();
activateProfileTab('hosting');
allEvents = await loadAllEvents();
renderMyEvents(allEvents, currentUser);
renderMyRegistrations(allEvents, currentUser);
}
// Liest den aktuell eingeloggten Benutzer robust aus dem Storage.
function getCurrentUser() {
try {
const raw = localStorage.getItem(CURRENT_USER_KEY);
return raw ? JSON.parse(raw) : null;
} catch (error) {
console.error('Der aktuelle Benutzer konnte nicht geladen werden.', error);
return null;
}
}
// Liest lokal erstellte Events aus dem Storage.
function getStoredEvents() {
try {
const raw = localStorage.getItem(EVENTS_STORAGE_KEY);
return raw ? JSON.parse(raw) : [];
} catch (error) {
console.error('Lokale Events konnten nicht gelesen werden.', error);
return [];
}
}
// Liest den Anmeldestatus pro Benutzer-E-Mail.
function getRegistrationMap() {
try {
const raw = localStorage.getItem(REGISTRATION_STORAGE_KEY);
return raw ? JSON.parse(raw) : {};
} catch (error) {
console.error('Anmeldedaten konnten nicht gelesen werden.', error);
return {};
}
}
// Schreibt den gesamten Registrierungszustand in localStorage.
function setRegistrationMap(registrationMap) {
localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(registrationMap));
}
// Schreibt die lokal erstellten Events in den Storage.
function setStoredEvents(events) {
localStorage.setItem(EVENTS_STORAGE_KEY, JSON.stringify(events));
}
// Fuehrt JSON-Daten und lokal erstellte Events in einer Liste zusammen.
async function loadAllEvents() {
try {
const response = await fetch('data/events.json');
const apiEvents = await response.json();
return [...getStoredEvents(), ...apiEvents];
} catch (error) {
console.error('Events konnten nicht geladen werden.', error);
return getStoredEvents();
}
}
// Schaltet in den ausgeloggten Zustand und blendet geschuetzte Inhalte aus.
function renderLoggedOutState() {
loggedOutState.classList.remove('hidden');
loggedInContent.classList.add('hidden');
logoutButton.classList.add('hidden');
profileHeadline.textContent = 'Mein Profil';
profileSubline.textContent = 'Bitte logge dich ein, um deinen Bereich zu sehen.';
}
// Füllt Überschriften und Formular mit den aktuellen Benutzerdaten.
function renderLoggedInState(user) {
loggedOutState.classList.add('hidden');
loggedInContent.classList.remove('hidden');
logoutButton.classList.remove('hidden');
profileHeadline.textContent = `Hallo ${user.vorname || 'Gast'}`;
profileSubline.textContent = 'Hier kannst du deine Events und Anmeldungen verwalten.';
vornameInput.value = user.vorname || '';
nachnameInput.value = user.nachname || '';
emailInput.value = user.email || '';
}
// Bindet Submit-, Input- und Logout-Verhalten an die Profilseite.
function bindFormHandlers() {
profileForm.addEventListener('submit', handleProfileSubmit);
myRegistrationsList.addEventListener('click', handleRegistrationListClick);
myEventsList.addEventListener('click', handleHostedListClick);
profileTabButtons.forEach(button => {
button.addEventListener('click', () => {
const tabName = button.getAttribute('data-category-item');
if (!tabName) {
return;
}
activateProfileTab(tabName);
});
});
[vornameInput, nachnameInput, emailInput, passwortInput].forEach(input => {
input.addEventListener('input', () => {
input.parentElement.classList.remove('has-error');
profileFeedback.textContent = '';
});
});
logoutButton.addEventListener('click', () => {
const logoutModal = document.getElementById('logoutModal');
logoutModal.classList.add('show');
document.body.style.overflow = 'hidden';
});
}
// Globale Funktionen für das Logout-Modal.
window.closeLogoutModal = function() {
const logoutModal = document.getElementById('logoutModal');
logoutModal.classList.remove('show');
document.body.style.overflow = 'auto';
};
window.confirmLogout = function() {
localStorage.removeItem(CURRENT_USER_KEY);
window.location.href = 'index.html';
};
// Reagiert auf Aktionen in der Liste "Meine Events" per Event Delegation.
function handleHostedListClick(event) {
const target = event.target;
if (!(target instanceof HTMLElement)) {
return;
}
const cancelButton = target.closest('[data-cancel-event-id]');
if (cancelButton && currentUser?.email) {
const eventId = Number(cancelButton.getAttribute('data-cancel-event-id'));
if (Number.isFinite(eventId)) {
openCancelEventModal(eventId);
}
return;
}
if (target.closest('a, button')) {
return;
}
const card = target.closest('[data-event-id]');
if (!card) {
return;
}
const eventId = Number(card.getAttribute('data-event-id'));
if (!Number.isFinite(eventId)) {
return;
}
window.location.href = `event_detail.html?id=${eventId}`;
}
// Schaltet den sichtbaren Profilbereich per Tabname um.
function activateProfileTab(tabName) {
profileTabButtons.forEach(button => {
const isActive = button.getAttribute('data-category-item') === tabName;
button.classList.toggle('is-active', isActive);
button.setAttribute('aria-selected', isActive ? 'true' : 'false');
});
profileTabPanels.forEach(panel => {
const isActive = panel.getAttribute('data-profile-panel') === tabName;
panel.classList.toggle('hidden', !isActive);
});
}
// Reagiert auf Aktionen in der Liste "Meine Anmeldungen" per Event Delegation.
function handleRegistrationListClick(event) {
const target = event.target;
if (!(target instanceof HTMLElement)) {
return;
}
const unregisterButton = target.closest('[data-unregister-id]');
if (unregisterButton) {
if (!currentUser?.email) {
return;
}
const eventId = Number(unregisterButton.getAttribute('data-unregister-id'));
if (!Number.isFinite(eventId)) {
return;
}
unregisterFromEvent(eventId, currentUser.email);
// Snackbar: Feedback bei erfolgreicher Abmeldung.
const snackbar = document.getElementById('snackbar');
if (snackbar) {
snackbar.textContent = 'Du wurdest erfolgreich abgemeldet.';
snackbar.classList.add('snackbar--danger', 'snackbar--visible');
setTimeout(() => {
snackbar.classList.remove('snackbar--visible');
setTimeout(() => snackbar.classList.remove('snackbar--danger'), 400);
}, 3000);
}
return;
}
if (target.closest('a, button')) {
return;
}
const card = target.closest('[data-event-id]');
if (!card) {
return;
}
const eventId = Number(card.getAttribute('data-event-id'));
if (!Number.isFinite(eventId)) {
return;
}
window.location.href = `event_detail.html?id=${eventId}`;
}
// Sagt ein gehostetes Event ab (aus eigener Profilansicht entfernen).
let pendingCancelEventId = null;
function openCancelEventModal(eventId) {
pendingCancelEventId = eventId;
const modal = document.getElementById('cancelEventModal');
modal.classList.add('show');
}
window.closeCancelEventModal = function() {
pendingCancelEventId = null;
const modal = document.getElementById('cancelEventModal');
modal.classList.remove('show');
};
document.getElementById('confirmCancelEventBtn').addEventListener('click', function() {
if (pendingCancelEventId !== null && currentUser?.email) {
cancelHostedEvent(pendingCancelEventId, currentUser.email);
}
closeCancelEventModal();
});
// Schliesst das Modal bei Klick ausserhalb des Inhalts.
document.getElementById('cancelEventModal').addEventListener('click', function(e) {
if (e.target === this) {
closeCancelEventModal();
}
});
function cancelHostedEvent(eventId, userEmail) {
// Lokal erstellte, eigene Events werden direkt aus dem Storage geloescht.
const storedEvents = getStoredEvents();
const nextStoredEvents = storedEvents.filter(event => {
const isTargetEvent = Number(event.id) === eventId;
const isOwnedByUser = normalizeText(event.hostEmail || '') === normalizeText(userEmail)
|| normalizeText(event.host?.name || '') === normalizeText(currentUser?.vorname || '');
return !(isTargetEvent && isOwnedByUser);
});
setStoredEvents(nextStoredEvents);
// Event-ID für alle Benutzer aus den Anmeldungen entfernen.
const registrationMap = getRegistrationMap();
Object.keys(registrationMap).forEach(email => {
const ids = Array.isArray(registrationMap[email])
? registrationMap[email].map(id => Number(id)).filter(Number.isFinite)
: [];
registrationMap[email] = ids.filter(id => id !== eventId);
});
setRegistrationMap(registrationMap);
allEvents = allEvents.filter(event => Number(event.id) !== eventId);
renderMyEvents(allEvents, currentUser);
renderMyRegistrations(allEvents, currentUser);
profileFeedback.textContent = 'Event wurde abgesagt und aus deinem Hosting entfernt.';
}
// Entfernt eine Event-ID aus der Benutzerliste und aktualisiert die UI sofort.
function unregisterFromEvent(eventId, userEmail) {
const registrationMap = getRegistrationMap();
const currentIds = Array.isArray(registrationMap[userEmail]) ? registrationMap[userEmail] : [];
const nextIds = currentIds
.map(id => Number(id))
.filter(id => Number.isFinite(id) && id !== eventId);
registrationMap[userEmail] = nextIds;
setRegistrationMap(registrationMap);
renderMyRegistrations(allEvents, currentUser);
profileFeedback.textContent = 'Du wurdest von dem Event abgemeldet.';
}
// Validiert Profildaten konsistent und liefert true/false zur Submit-Steuerung.
function validateProfileForm() {
let isValid = true;
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
if (!vornameInput.value.trim()) {
vornameInput.parentElement.classList.add('has-error');
isValid = false;
}
if (!nachnameInput.value.trim()) {
nachnameInput.parentElement.classList.add('has-error');
isValid = false;
}
if (!emailRegex.test(emailInput.value.trim())) {
emailInput.parentElement.classList.add('has-error');
isValid = false;
}
if (passwortInput.value && passwortInput.value.length < 6) {
passwortInput.parentElement.classList.add('has-error');
isValid = false;
}
return isValid;
}
// Speichert Profiländerungen lokal und synchronisiert auch den Benutzerkatalog.
function handleProfileSubmit(event) {
event.preventDefault();
if (!validateProfileForm()) {
profileFeedback.textContent = 'Bitte prüfe die markierten Felder.';
return;
}
const previousEmail = currentUser.email;
const nextUser = {
...currentUser,
vorname: vornameInput.value.trim(),
nachname: nachnameInput.value.trim(),
email: emailInput.value.trim(),
passwort: passwortInput.value ? passwortInput.value : currentUser.passwort,
updatedAt: new Date().toISOString()
};
currentUser = nextUser;
localStorage.setItem(CURRENT_USER_KEY, JSON.stringify(nextUser));
syncUserInUserStore(previousEmail, nextUser);
// Falls sich die E-Mail geändert hat, verschieben wir bestehende Anmeldungen auf die neue E-Mail.
migrateRegistrationEmail(previousEmail, nextUser.email);
passwortInput.value = '';
profileHeadline.textContent = `Hallo ${nextUser.vorname}`;
profileFeedback.textContent = 'Profil erfolgreich gespeichert.';
}
// Synchronisiert einen Benutzer im zentralen User-Array.
function syncUserInUserStore(previousEmail, nextUser) {
let users = [];
try {
const raw = localStorage.getItem(USERS_STORAGE_KEY);
users = raw ? JSON.parse(raw) : [];
} catch (error) {
console.error('Benutzerdaten konnten nicht gelesen werden.', error);
}
const nextUsers = users.filter(user => user.email !== previousEmail && user.email !== nextUser.email);
nextUsers.unshift(nextUser);
localStorage.setItem(USERS_STORAGE_KEY, JSON.stringify(nextUsers));
}
// Migriert bestehende Registrierungen, falls die E-Mail aktualisiert wurde.
function migrateRegistrationEmail(previousEmail, nextEmail) {
if (!previousEmail || !nextEmail || previousEmail === nextEmail) {
return;
}
const map = getRegistrationMap();
const existingRegistrations = Array.isArray(map[previousEmail]) ? map[previousEmail] : [];
const alreadyPresent = Array.isArray(map[nextEmail]) ? map[nextEmail] : [];
map[nextEmail] = Array.from(new Set([...alreadyPresent, ...existingRegistrations]));
delete map[previousEmail];
localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(map));
}
// Ermittelt gehostete Events aus lokal erstellten Daten des aktuellen Benutzers.
function getMyHostedEvents(events, user) {
const userFirstName = normalizeText(user.vorname || '');
const userEmail = normalizeText(user.email || '');
return events.filter(event => {
if (event.source !== 'local') {
return false;
}
const hostEmail = normalizeText(event.hostEmail || '');
const hostName = normalizeText(event.host?.name || '');
if (hostEmail && hostEmail === userEmail) {
return true;
}
return userFirstName && hostName === userFirstName;
});
}
// Ermittelt angemeldete Events über die Registration-Map.
function getMyRegisteredEvents(events, user) {
const registrationMap = getRegistrationMap();
const registeredIds = Array.isArray(registrationMap[user.email]) ? registrationMap[user.email] : [];
const idSet = new Set(registeredIds.map(id => Number(id)));
return events.filter(event => idSet.has(Number(event.id)));
}
// Rendert gehostete Events inkl. Zähler.
function renderMyEvents(events, user) {
const hostedEvents = getMyHostedEvents(events, user);
myEventsCount.textContent = String(hostedEvents.length);
renderEventCards(myEventsList, hostedEvents, {
title: 'Noch kein eigenes Event',
text: 'Starte dein erstes Dinner und lade die Community an deinen Tisch ein.',
buttonLabel: 'Event erstellen',
href: 'event_create.html'
}, 'hosting');
}
// Rendert angemeldete Events inkl. Zähler.
function renderMyRegistrations(events, user) {
const registeredEvents = getMyRegisteredEvents(events, user);
myRegistrationsCount.textContent = String(registeredEvents.length);
renderEventCards(myRegistrationsList, registeredEvents, {
title: 'Noch keine Anmeldungen',
text: 'Entdecke spannende Dinner in deiner Naehe und melde dich direkt an.',
buttonLabel: 'Events entdecken',
href: 'event_overview.html'
}, 'registrations');
}
// Baut die Eventkarten für beide Listen in einheitlichem Markup.
function renderEventCards(container, events, emptyStateConfig, mode) {
container.innerHTML = '';
if (events.length === 0) {
const emptyElement = document.createElement('div');
emptyElement.className = 'profile-empty-state';
emptyElement.innerHTML = `
<p class="profile-empty-kicker">Keine Treffer</p>
<h3>${emptyStateConfig.title}</h3>
<p>${emptyStateConfig.text}</p>
<a class="button-primary" href="${emptyStateConfig.href}">${emptyStateConfig.buttonLabel}</a>
`;
container.appendChild(emptyElement);
return;
}
events.forEach(event => {
const card = document.createElement('article');
card.className = 'profile-event-card profile-event-card-clickable';
card.setAttribute('data-event-id', String(event.id));
const addressMarkup = mode === 'registrations' && event.address && isAddressVisibleWindow(event)
? `
<div class="profile-event-address-block" aria-label="Event Adresse">
<p class="profile-event-address-label">Adresse</p>
<p class="profile-event-address">${event.address}</p>
</div>
`
: '';
const actionMarkup = mode === 'registrations'
? `
<div class="event-side">
<button class="button-primary-abmelden" type="button" data-unregister-id="${event.id}">Abmelden</button>
</div>
`
: `
<div class="event-side">
<button class="button-primary-eigener-event" type="button" data-cancel-event-id="${event.id}">Event absagen</button>
</div>
`;
card.innerHTML = `
<div>
<h3 class="profile-event-title">${event.title}</h3>
<p class="profile-event-meta">${event.location} | ${formatEventDate(event.date)} | ${formatEventTime(event.time)}</p>
${addressMarkup}
</div>
${actionMarkup}
`;
container.appendChild(card);
});
}
// Gibt true zurück, wenn ein Event innerhalb der nächsten 24 Stunden startet.
function isAddressVisibleWindow(event) {
const eventDateTime = parseEventDateTime(event);
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
return false;
}
const msUntilStart = eventDateTime.getTime() - Date.now();
const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
return msUntilStart >= 0 && msUntilStart <= twentyfourHoursInMs;
}
// Parse für ISO- und lokalisierte Datumsformate aus den Eventdaten.
function parseEventDateTime(event) {
if (!event?.date) {
return null;
}
const dateValue = String(event.date).trim();
const isoDateMatch = dateValue.match(/^(\d{4})-(\d{2})-(\d{2})$/);
let year;
let month;
let day;
if (isoDateMatch) {
year = Number(isoDateMatch[1]);
month = Number(isoDateMatch[2]);
day = Number(isoDateMatch[3]);
} else {
const monthMap = {
JAN: 1,
FEB: 2,
'MÄR': 3,
MRZ: 3,
APR: 4,
MAI: 5,
JUN: 6,
JUL: 7,
AUG: 8,
SEP: 9,
OKT: 10,
NOV: 11,
DEZ: 12
};
const localizedMatch = dateValue.match(/^(\d{1,2})\.\s*([A-ZÄÖÜ]{3})\.\s*(\d{4})$/);
if (!localizedMatch) {
return null;
}
day = Number(localizedMatch[1]);
month = monthMap[localizedMatch[2]];
year = Number(localizedMatch[3]);
if (!month) {
return null;
}
}
const timeMatch = String(event.time || '').match(/(\d{1,2}):(\d{2})/);
const hours = timeMatch ? Number(timeMatch[1]) : 0;
const minutes = timeMatch ? Number(timeMatch[2]) : 0;
return new Date(year, month - 1, day, hours, minutes, 0, 0);
}
// Formatiert ein Eventdatum konsistent für die Profilkarten.
function formatEventDate(dateString) {
if (!dateString) {
return 'Kein Datum';
}
// ISO Format: 2026-02-12
if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {
const [year, month, day] = dateString.split('-');
const monthLabel = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'][Number(month) - 1];
return `${Number(day)}. ${monthLabel} ${year}`;
}
// Format: 12. FEB. 2026
const match = dateString.match(/^(\d{1,2})\.\s*([A-ZÄÖÜ]{3})\.\s*(\d{4})$/);
if (match) {
const day = match[1];
const month = match[2];
const shortMonthMap = {
JAN: 'Januar',
FEB: 'Februar',
MÄR: 'März',
MRZ: 'März',
APR: 'April',
MAI: 'Mai',
JUN: 'Juni',
JUL: 'Juli',
AUG: 'August',
SEP: 'September',
OKT: 'Oktober',
NOV: 'November',
DEZ: 'Dezember'
};
return `${day}. ${shortMonthMap[month] || month} ${match[3]}`;
}
return dateString;
}
// Vereinheitlicht die Zeitanzeige für die Profilseite.
function formatEventTime(timeString) {
if (!timeString) {
return 'Keine Uhrzeit';
}
return timeString.includes('UHR') ? timeString.replace('UHR', 'Uhr').trim() : timeString;
}
// Normalisiert Vergleichswerte für robuste String-Matches.
function normalizeText(value) {
return String(value || '').trim().toLowerCase();
}
});
+119
View File
@@ -0,0 +1,119 @@
// =============================================
// Dynamische Navigation
// Je nach Login-Status wird die Kopfzeile für
// alle Seiten mit passendem Markup aufgebaut.
// =============================================
document.addEventListener('DOMContentLoaded', () => {
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
const navContainers = document.querySelectorAll('.nav-tab-links');
const currentPage = (window.location.pathname.split('/').pop() || 'index.html').toLowerCase();
// Beendet früh, falls auf einer Seite keine Hauptnavigation vorhanden ist.
if (!navContainers.length) {
return;
}
// Liest den aktiven Benutzer robust aus localStorage.
function getCurrentUser() {
try {
const stored = localStorage.getItem(CURRENT_USER_KEY);
return stored ? JSON.parse(stored) : null;
} catch (error) {
console.error('Aktueller Benutzer konnte nicht gelesen werden.', error);
return null;
}
}
// Logout-Funktion
window.logout = function() {
localStorage.removeItem(CURRENT_USER_KEY);
window.location.href = 'index.html';
};
// Baut die Navigation für ausgeloggte Besucher.
function buildLoggedOutNavigation() {
const loginIsActive = currentPage === 'login.html';
const signupIsActive = currentPage === 'signup.html';
const isIndex = currentPage === 'index.html' || currentPage === '';
// Auf der Startseite, Login und Signup nur Login anzeigen.
if (isIndex || loginIsActive || signupIsActive) {
return `
<a
class="button-small"
href="login.html"
aria-label="Login"
>
Login
</a>
`;
}
return `
<a
class="button-small auth-nav-button ${loginIsActive ? 'auth-nav-button--active' : 'auth-nav-button--default'}"
href="login.html"
aria-label="Login"
${loginIsActive ? 'aria-current="page"' : ''}
>
Login
</a>
<a
class="button-small auth-nav-button ${signupIsActive ? 'auth-nav-button--active' : 'auth-nav-button--default'}"
href="signup.html"
aria-label="Signup"
${signupIsActive ? 'aria-current="page"' : ''}
>
Signup
</a>
`;
}
// Baut die Navigation für eingeloggte Benutzer.
function buildLoggedInNavigation(user) {
const initial = (user.vorname || 'U').charAt(0).toUpperCase();
const isEventOverview = currentPage === 'event_overview.html';
const isEventCreate = currentPage === 'event_create.html';
return `
<a
class="nav-tab${isEventCreate ? ' nav-tab--active' : ''}"
href="event_create.html"
${isEventCreate ? 'aria-current="page"' : ''}
>
Event erstellen
</a>
<a
class="nav-tab${isEventOverview ? ' nav-tab--active' : ''}"
href="event_overview.html"
${isEventOverview ? 'aria-current="page"' : ''}
>
Event finden
</a>
<button
class="button-small logout-button"
onclick="logout()"
aria-label="Logout"
>
Logout
</button>
<a
class="profile-pill"
href="my_profil.html"
aria-label="Mein Profil"
title="${user.vorname || 'Profil'}"
>
${initial}
</a>
`;
}
const currentUser = getCurrentUser();
const nextMarkup = currentUser ? buildLoggedInNavigation(currentUser) : buildLoggedOutNavigation();
// Wendet das passende Markup auf alle vorhandenen Kopf-Navigationen an.
navContainers.forEach(container => {
container.innerHTML = nextMarkup;
});
});
+63 -8
View File
@@ -1,3 +1,10 @@
// =============================================
// Signup-Logik
// Diese Datei validiert das Formular, speichert
// neue Benutzer lokal und startet direkt die Session.
// =============================================
// Formular und Felder aus dem HTML holen.
const signupForm = document.getElementById('signupForm'); const signupForm = document.getElementById('signupForm');
const vornameInput = document.getElementById('vorname'); const vornameInput = document.getElementById('vorname');
const nachnameInput = document.getElementById('nachname'); const nachnameInput = document.getElementById('nachname');
@@ -5,19 +12,44 @@ const emailInput = document.getElementById('email');
const passwortInput = document.getElementById('passwort'); const passwortInput = document.getElementById('passwort');
const welcomeModal = document.getElementById('welcomeModal'); const welcomeModal = document.getElementById('welcomeModal');
const USERS_STORAGE_KEY = 'socialCookingUsers';
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
// Liest bestehende Benutzerliste robust aus localStorage.
function getStoredUsers() {
try {
const raw = localStorage.getItem(USERS_STORAGE_KEY);
return raw ? JSON.parse(raw) : [];
} catch (error) {
console.error('Benutzerdaten konnten nicht gelesen werden.', error);
return [];
}
}
// Schreibt die komplette Benutzerliste in localStorage.
function setStoredUsers(users) {
localStorage.setItem(USERS_STORAGE_KEY, JSON.stringify(users));
}
// Speichert den aktiven Benutzer für nachfolgende Seiten.
function setCurrentUser(user) {
localStorage.setItem(CURRENT_USER_KEY, JSON.stringify(user));
}
// Funktion zum Öffnen des Welcome Modals // Funktion zum Öffnen des Welcome Modals
function openWelcomeModal() { function openWelcomeModal() {
welcomeModal.classList.add('show'); welcomeModal.classList.add('show');
document.body.style.overflow = 'hidden'; document.body.style.overflow = 'hidden';
} }
// Funktion zum Schließen des Welcome Modals // Funktion zum Schliessen des Welcome Modals
function closeWelcomeModal() { function closeWelcomeModal() {
welcomeModal.classList.remove('show'); welcomeModal.classList.remove('show');
document.body.style.overflow = 'auto'; document.body.style.overflow = 'auto';
window.location.href = 'event_overview.html';
} }
// Validierungsfunktion // Hauptfunktion für Formularvalidierung und Speicherung.
function validateForm(event) { function validateForm(event) {
event.preventDefault(); event.preventDefault();
@@ -78,13 +110,36 @@ function validateForm(event) {
passwortGroup.classList.remove('has-error'); passwortGroup.classList.remove('has-error');
} }
// Wenn alle Validierungen bestanden, Modal anzeigen // Wenn alles gültig ist:
// 1) auf doppelte E-Mail prüfen
// 2) neuen Benutzer speichern
// 3) als aktuellen Benutzer einloggen
if (isValid) { if (isValid) {
openWelcomeModal(); const existingUsers = getStoredUsers();
// Hier würde später die Registrierung zum Backend gesendet const emailLower = emailValue.toLowerCase();
const emailAlreadyUsed = existingUsers.some(user => user.email?.toLowerCase() === emailLower);
// Weiterleitung zur event overview Page if (emailAlreadyUsed) {
window.location.href = 'event_overview.html'; emailGroup.classList.add('has-error');
document.getElementById('emailError').textContent = 'Diese E-Mail ist bereits registriert. Bitte nutze den Login.';
return;
}
const newUser = {
id: Date.now(),
vorname: vornameValue,
nachname: nachnameValue,
email: emailValue,
passwort: passwortValue,
createdAt: new Date().toISOString(),
source: 'signup'
};
setStoredUsers([newUser, ...existingUsers]);
setCurrentUser(newUser);
openWelcomeModal();
// Weiterleitung erfolgt beim Klick auf "Weiter zu den Events".
} }
} }
@@ -117,7 +172,7 @@ passwortInput.addEventListener('input', function() {
} }
}); });
// Modal schließen wenn außerhalb geklickt wird // Modal schliessen wenn ausserhalb geklickt wird
welcomeModal.addEventListener('click', function(event) { welcomeModal.addEventListener('click', function(event) {
if (event.target === welcomeModal) { if (event.target === welcomeModal) {
closeWelcomeModal(); closeWelcomeModal();
+26 -11
View File
@@ -3,13 +3,13 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - Social Cooking</title> <title>Invité | Login</title>
<!-- Stylesheet für diese Seite-->
<link rel="stylesheet" href="css/login_signup.css">
<!-- Globales Stylesheet --> <!-- Globales Stylesheet -->
<link rel="stylesheet" href="css/stylesheet_global.css"> <link rel="stylesheet" href="css/stylesheet_global.css">
<!-- Stylesheet für diese Seite -->
<link rel="stylesheet" href="css/login_signup.css">
<script src="js/navigation.js" defer></script>
</head> </head>
<body> <body>
@@ -17,12 +17,10 @@
<header class="top-nav-wrap"> <header class="top-nav-wrap">
<div class="top-nav"> <div class="top-nav">
<a class="brand" href="index.html" aria-label="Zur Startseite"> <a class="brand" href="index.html" aria-label="Zur Startseite">
<img src="assets/logo_invite.svg" alt="Invite Logo"> <img src="assets/logo_invite.svg" alt="Invité">
</a> </a>
<nav class="nav-tab-links" aria-label="Hauptnavigation"> <nav class="nav-tab-links" aria-label="Hauptnavigation">
<a class="nav-tab" href="event_overview.html">Event finden</a> <a class="button-small" href="login.html" aria-label="Login">Login</a>
<a class="nav-tab" href="event_create.html">Event erstellen</a>
<a class="button-small" href="login.html" aria-label="Profil">Login</a>
</nav> </nav>
</div> </div>
</header> </header>
@@ -31,7 +29,7 @@
<div class="main-content"> <div class="main-content">
<div class="container"> <div class="container">
<div class="image-section"> <div class="image-section">
<img src="assets/cooking.jpg" alt="Social Cooking"> <img src="assets/index_cooking.jpg" alt="Social Cooking">
</div> </div>
<div class="form-section"> <div class="form-section">
@@ -50,15 +48,32 @@
<div class="error-message" id="passwortError">Bitte gib dein Passwort ein.</div> <div class="error-message" id="passwortError">Bitte gib dein Passwort ein.</div>
</div> </div>
<button type="submit" class="button">Login</button> <button type="submit" class="button-primary">Login</button>
<div class="signup-hint"> <div class="link-text">
Du hast noch keinen Account? <a href="signup.html">Hier geht es zur Anmeldung.</a> Du hast noch keinen Account? <a href="signup.html">Hier geht es zur Anmeldung.</a>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> <!-- Schliesst main-content --> </div> <!-- Schliesst main-content -->
<div class="snackbar" id="snackbar">Willkommen zurück! Du wirst weitergeleitet...</div>
<script src="js/login.js"></script> <script src="js/login.js"></script>
<div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
</body> </body>
</html> </html>
+164
View File
@@ -0,0 +1,164 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mein Profil | Invité</title>
<!-- Stylesheet für diese Seite -->
<link rel="stylesheet" href="css/my_profil.css">
<!-- Globales Stylesheet -->
<link rel="stylesheet" href="css/stylesheet_global.css">
<script src="js/navigation.js" defer></script>
</head>
<body>
<header class="top-nav-wrap">
<div class="top-nav">
<a class="brand" href="index.html" aria-label="Zur Startseite">
<img src="assets/logo_invite.svg" alt="Invite Logo">
</a>
<nav class="nav-tab-links" aria-label="Hauptnavigation">
<button id="logout-button" class="button-small profile-logout" type="button">
Logout
</button>
<a class="button-small" href="login.html" aria-label="Login">
Login
</a>
</nav>
</div>
</header>
<main class="container profile-page">
<section class="profile-hero" aria-label="Profilübersicht">
<div>
<p class="badge">Mein Bereich</p>
<h1 id="headline">Mein Profil</h1>
<p id="profile-subline" class="profile-subline">Hier findest du deine Events, deine Anmeldungen und kannst deine Profildaten verwalten.</p>
</div>
</section>
<section id="logged-out-state" class="profile-panel hidden" aria-live="polite">
<h2 class="panel-title">Du bist noch nicht eingeloggt</h2>
<p>Melde dich an, damit wir deine Events und Anmeldungen anzeigen können.</p>
<div class="profile-cta-row">
<a class="button-primary" href="login.html">Zum Login</a>
<a class="button-primary profile-button-secondary" href="signup.html">Konto erstellen</a>
</div>
</section>
<section id="logged-in-content" class="profile-grid">
<nav class="category-items" aria-label="Profilbereiche">
<button type="button" class="category-item is-active category-item-profile" data-category-item="hosting">Meine Events</button>
<button type="button" class="category-item category-item-profile" data-category-item="teilnehmen">Meine Anmeldungen</button>
<button type="button" class="category-item category-item-profile" data-category-item="einstellungen">Profil-Einstellungen</button>
</nav>
<article data-profile-panel="hosting">
<div class="panel-head">
<span id="my-events-count" class="panel-count">0</span>
</div>
<div id="my-events-list" class="profile-card-list"></div>
</article>
<article data-profile-panel="teilnehmen">
<div class="panel-head">
<span id="my-registrations-count" class="panel-count">0</span>
</div>
<div id="my-registrations-list" class="profile-card-list"></div>
</article>
<article class="profile-panel profile-panel-form hidden" data-profile-panel="einstellungen">
<h2 class="panel-title">Profil verwalten</h2>
<form id="profile-form" novalidate>
<div class="form-grid">
<div class="form-group">
<label for="vorname">Vorname</label>
<input type="text" id="vorname" name="vorname" required>
<p class="input-error" id="vorname-error">Bitte gib deinen Vornamen ein.</p>
</div>
<div class="form-group">
<label for="nachname">Nachname</label>
<input type="text" id="nachname" name="nachname" required>
<p class="input-error" id="nachname-error">Bitte gib deinen Nachnamen ein.</p>
</div>
</div>
<div class="form-group">
<label for="email">E-Mail</label>
<input type="email" id="email" name="email" required>
<p class="input-error" id="email-error">Bitte gib eine gültige E-Mail-Adresse ein.</p>
</div>
<div class="form-group">
<label for="passwort">Passwort</label>
<input type="password" id="passwort" name="passwort" minlength="6" placeholder="Mindestens 6 Zeichen">
<p class="input-hint">Nur ausfüllen, wenn du dein Passwort ändern möchtest.</p>
<p class="input-error" id="passwort-error">Das Passwort muss mindestens 6 Zeichen lang sein.</p>
</div>
<button class="button-primary" type="submit">Profil speichern</button>
<p id="profile-feedback" class="profile-feedback" aria-live="polite"></p>
</form>
</article>
</section>
</main>
<!-- Logout Confirmation Modal -->
<div id="logoutModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<button class="close-btn" onclick="closeLogoutModal()">&times;</button>
<h2>Abmelden?</h2>
</div>
<p class="modal-body">
Bist du sicher, dass du dich abmelden möchtest?
</p>
<div class="modal-footer">
<button class="button-primary button--outline" type="button" onclick="closeLogoutModal()">Abbrechen</button>
<button class="button-primary" type="button" onclick="confirmLogout()">Abmelden</button>
</div>
</div>
</div>
<!-- Snackbar: Feedback bei Abmeldung von Events -->
<div class="snackbar" id="snackbar"></div>
<!-- Event-Absage Confirmation Modal -->
<div id="cancelEventModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<button class="close-btn" onclick="closeCancelEventModal()">&times;</button>
<h2>Event absagen?</h2>
</div>
<p class="modal-body">
Bist du sicher, dass du dieses Event absagen möchtest? Diese Aktion kann nicht rückgängig gemacht werden.
</p>
<div class="modal-footer">
<button class="button-secondary" type="button" onclick="closeCancelEventModal()">Abbrechen</button>
<button class="button-primary-abmelden" type="button" id="confirmCancelEventBtn";>Event absagen</button>
</div>
</div>
</div>
<div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
<script src="js/my_profil.js"></script>
</body>
</html>
+27 -12
View File
@@ -5,10 +5,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kontaktseite - Invité</title> <title>Kontaktseite - Invité</title>
<!-- Stylesheet für diese Seite-->
<link rel="stylesheet" href="css/login_signup.css">
<!-- Globales Stylesheet --> <!-- Globales Stylesheet -->
<link rel="stylesheet" href="css/stylesheet_global.css"> <link rel="stylesheet" href="css/stylesheet_global.css">
<!-- Stylesheet für diese Seite-->
<link rel="stylesheet" href="css/login_signup.css">
<script src="js/navigation.js" defer></script>
</head> </head>
<body> <body>
@@ -19,9 +20,7 @@
<img src="assets/logo_invite.svg" alt="Invite Logo"> <img src="assets/logo_invite.svg" alt="Invite Logo">
</a> </a>
<nav class="nav-tab-links" aria-label="Hauptnavigation"> <nav class="nav-tab-links" aria-label="Hauptnavigation">
<a class="nav-tab" href="event_overview.html">Event finden</a> <a class="button-small" href="login.html" aria-label="Login">Login</a>
<a class="nav-tab" href="event_create.html">Event erstellen</a>
<a class="button-small" href="login.html" aria-label="Profil">Login</a>
</nav> </nav>
</div> </div>
</header> </header>
@@ -30,7 +29,7 @@
<div class="main-content"> <div class="main-content">
<div class="container"> <div class="container">
<div class="image-section"> <div class="image-section">
<img src="assets/cooking.jpg" alt="Social Cooking"> <img src="assets/index_cooking.jpg" alt="Social Cooking">
</div> </div>
<div class="form-section"> <div class="form-section">
@@ -65,32 +64,48 @@
<div class="error-message" id="passwortError">Dein Passwort muss mindestens 8 Zeichen lang sein.</div> <div class="error-message" id="passwortError">Dein Passwort muss mindestens 8 Zeichen lang sein.</div>
</div> </div>
<button type="submit" class="button">Konto erstellen</button> <button type="submit" class="button-primary">Konto erstellen</button>
<div class="login-hint"> <div class="link-text">
Du hast bereits einen Account? <a href="login.html">Hier geht es zum Login.</a> Du hast bereits einen Account? <a href="login.html">Hier geht es zum Login.</a>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
</div> <!-- Schließt main-content --> </div> <!-- Schliesst main-content -->
<!-- Welcome Modal --> <!-- Welcome Modal -->
<div id="welcomeModal" class="modal"> <div id="welcomeModal" class="modal">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<button class="close-btn" onclick="closeWelcomeModal()">&times;</button> <button class="close-btn" onclick="closeWelcomeModal()">&times;</button>
<h2>🎉 Willkommen bei Invité!</h2> <h2>Konto erfolgreich erstellt!</h2>
</div> </div>
<div class="modal-body"> <div class="modal-body">
Hier findest du die Übersicht zu den aktuellsten Events. Willkommen bei Invité! Dein Account wurde erfolgreich erstellt. Entdecke jetzt die neuesten Events in deiner Nähe.
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn-primary" onclick="closeWelcomeModal()">Weiter zu den Events</button> <button class="button-primary" onclick="closeWelcomeModal()">Weiter zu den Events</button>
</div> </div>
</div> </div>
</div> </div>
<script src="js/signup.js"></script> <script src="js/signup.js"></script>
<div class="footer">
<div class="footer-left">
<p class="p-small inline">© <img src="assets/logo_invite.svg" alt="Invité Logo" class="footer-invite_logo" /></p>
</div>
<div class="footer-center">
<a href="https://www.instagram.com" target="_blank" rel="noopener noreferrer" class="instagram-invite__link">
<img src="assets/Icon_instagram.png" alt="Instagram" class="instagram-invite_icon" />
</a>
</div>
<div class="footer-right footer-links">
<a href="impressum.html" class="link-text-footer">Impressum</a>
<a href="datenschutz.html" class="link-text-footer">Datenschutz</a>
</div>
</div>
</body> </body>
</html> </html>