Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e277c7f7d4 | ||
|
|
cbe3c0983f | ||
|
|
ee1c78f5de | ||
|
|
61d84022cc | ||
|
|
b9a5a348a8 | ||
|
|
60b8a5fd3a | ||
|
|
244f3b74b1 | ||
|
|
4fbabab800 | ||
|
|
485254d3e7 | ||
|
|
7ecc2cf91a | ||
|
|
21d96597cc | ||
|
|
eb537e7d52 | ||
|
|
17c26b1cb5 | ||
|
|
51a07b6347 |
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 283 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 493 KiB |
+95
-57
@@ -14,16 +14,9 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-create-page {
|
|
||||||
width: min(100% - 2rem, var(--max-width));
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: var(--space-5) 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.event-flow-header {
|
.event-flow-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-start;
|
||||||
margin-bottom: var(--space-4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-form {
|
.event-form {
|
||||||
@@ -34,22 +27,56 @@
|
|||||||
|
|
||||||
.step {
|
.step {
|
||||||
display: none;
|
display: none;
|
||||||
padding: var(--space-4) 0 var(--space-4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.submission-success {
|
.submission-success {
|
||||||
padding: var(--space-4) 0 var(--space-7);
|
padding: var(--space-4) 0 var(--space-7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.submission-success-title-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--space-5);
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submission-success-title-row h2 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submission-success-icon {
|
||||||
|
width: 2.5rem;
|
||||||
|
height: 2.5rem;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: var(--brown);
|
||||||
|
font-size: 3rem;
|
||||||
|
line-height: 1;
|
||||||
|
transform: translateY(0.4rem);
|
||||||
|
}
|
||||||
|
|
||||||
|
.submission-success-image {
|
||||||
|
object-position: 42% center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.submission-success .intro-card--image {
|
||||||
|
width: min(100%, 40rem);
|
||||||
|
aspect-ratio: 4 / 5;
|
||||||
|
align-self: center;
|
||||||
|
justify-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
.step--active {
|
.step--active {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.step-layout {
|
.step-layout {
|
||||||
width: min(100%, var(--content-width));
|
gap: 80px;
|
||||||
margin: 0 auto;
|
}
|
||||||
display: grid;
|
|
||||||
gap: var(--space-40);
|
.startseite {
|
||||||
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.step-layout--intro {
|
.step-layout--intro {
|
||||||
@@ -69,6 +96,7 @@ fieldset {
|
|||||||
|
|
||||||
.step-copy {
|
.step-copy {
|
||||||
gap: var(--space-4);
|
gap: var(--space-4);
|
||||||
|
align-content: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.step-fields {
|
.step-fields {
|
||||||
@@ -80,13 +108,13 @@ fieldset {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.step-text {
|
.step-text {
|
||||||
/* definiert Breite des Beschriebtexts der einzelnen Schritte*/
|
/* definiert Breite des Beschriebtexts der einzelnen Schritte*/
|
||||||
max-width: 600px;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.intro-card,
|
.intro-card,
|
||||||
@@ -103,7 +131,7 @@ fieldset {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.intro-card--image {
|
.intro-card--image {
|
||||||
width: 100%;
|
width: 60%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -121,21 +149,6 @@ fieldset {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
label {
|
|
||||||
font-family: var(--font-main);
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
legend {
|
|
||||||
font-size: 1rem;
|
|
||||||
font-weight: 600;
|
|
||||||
letter-spacing: var(--ls-sm);
|
|
||||||
line-height: 1;
|
|
||||||
margin-bottom: var(--space-3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.field-hint {
|
.field-hint {
|
||||||
margin: -0.25rem 0 0;
|
margin: -0.25rem 0 0;
|
||||||
color: var(--color-muted);
|
color: var(--color-muted);
|
||||||
@@ -203,7 +216,7 @@ textarea:focus {
|
|||||||
|
|
||||||
.option-grid {
|
.option-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.option-card {
|
.option-card {
|
||||||
@@ -243,7 +256,7 @@ textarea:focus {
|
|||||||
.counter {
|
.counter {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.counter input {
|
.counter input {
|
||||||
@@ -264,7 +277,7 @@ textarea:focus {
|
|||||||
.review-card--success {
|
.review-card--success {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--space-5);
|
gap: var(--space-5);
|
||||||
padding: var(--space-3) 0 0;
|
padding: var(--space-16) 0 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -316,7 +329,8 @@ textarea:focus {
|
|||||||
|
|
||||||
.submission-success-actions {
|
.submission-success-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: flex-start;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flow-footer {
|
.flow-footer {
|
||||||
@@ -332,32 +346,31 @@ textarea:focus {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.error-message {
|
|
||||||
margin: 0;
|
|
||||||
text-align: center;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.progress-wrap {
|
.progress-wrap {
|
||||||
width: min(100%, var(--content-width));
|
flex: 1;
|
||||||
margin: 0 auto;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.75rem;
|
align-self: center;
|
||||||
|
min-height: 2.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-label {
|
.progress-label {
|
||||||
flex-shrink: 0;
|
position: absolute;
|
||||||
font-size: 0.8rem;
|
top: -1.1rem;
|
||||||
font-weight: 600;
|
left: 50%;
|
||||||
color: var(--color-muted);
|
transform: translateX(-50%);
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 400;
|
||||||
|
color: var(--black);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 0.3rem;
|
width: 100%;
|
||||||
|
height: 0.45rem;
|
||||||
background: var(--olive-light);
|
background: var(--olive-light);
|
||||||
border-radius: var(--radius-sm);
|
border-radius: var(--radius-sm);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -377,15 +390,21 @@ textarea:focus {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: var(--space-4);
|
gap: var(--space-4);
|
||||||
width: min(100%, var(--content-width));
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: var(--space-4) 0;
|
padding: var(--space-4) 0;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flow-actions-right {
|
.flow-actions-right {
|
||||||
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--space-4);
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message--callout {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
bottom: calc(100% + 1.25rem);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button--ghost:hover {
|
.button--ghost:hover {
|
||||||
@@ -464,11 +483,11 @@ textarea:focus-visible {
|
|||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.site-nav {
|
.site-nav {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
padding: var(--space-3) 0;
|
padding: var(--space-16) 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-nav-links {
|
.site-nav-links {
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.flow-actions,
|
.flow-actions,
|
||||||
@@ -477,6 +496,26 @@ textarea:focus-visible {
|
|||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.error-message--callout {
|
||||||
|
position: static;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
margin-bottom: var(--space-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-wrap {
|
||||||
|
min-height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progress-label {
|
||||||
|
position: static;
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message--callout::after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.event-flow-header {
|
.event-flow-header {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
@@ -484,7 +523,6 @@ textarea:focus-visible {
|
|||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.step-layout--intro {
|
.step-layout--intro {
|
||||||
width: min(100%, 56rem);
|
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
gap: var(--space-8);
|
gap: var(--space-8);
|
||||||
@@ -501,4 +539,4 @@ textarea:focus-visible {
|
|||||||
.option-grid--4 {
|
.option-grid--4 {
|
||||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+54
-25
@@ -1,11 +1,7 @@
|
|||||||
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
|
|
||||||
|
|
||||||
/* ---------------------------------------------------------
|
/* ---------------------------------------------------------
|
||||||
Shared Typography Tokens
|
Shared Typography Tokens
|
||||||
Reuse common text styles across nav, controls and buttons
|
Reuse common text styles across nav, controls and buttons
|
||||||
--------------------------------------------------------- */
|
--------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
.meta-filter select,
|
.meta-filter select,
|
||||||
.meta-filter input[type="date"],
|
.meta-filter input[type="date"],
|
||||||
.detail-primary-btn {
|
.detail-primary-btn {
|
||||||
@@ -25,6 +21,17 @@
|
|||||||
line-height: 1.15;
|
line-height: 1.15;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overview-title-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: var(--space-4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.overview-title-row .overview-title {
|
||||||
|
margin-bottom: var(--space-4);
|
||||||
|
}
|
||||||
|
|
||||||
.detail-title {
|
.detail-title {
|
||||||
margin-bottom: var(--space-4);
|
margin-bottom: var(--space-4);
|
||||||
}
|
}
|
||||||
@@ -42,15 +49,19 @@
|
|||||||
Overview Header + Filters
|
Overview Header + Filters
|
||||||
--------------------------------------------------------- */
|
--------------------------------------------------------- */
|
||||||
.filter-label {
|
.filter-label {
|
||||||
margin: 0 0 var(--space-1);
|
font-family: var(--font-main);
|
||||||
letter-spacing: var(--ls-la);
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: var(--ls-sm);
|
||||||
|
line-height: 1;
|
||||||
|
margin-bottom: var(--space-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter-row {
|
.filter-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
margin-bottom: var(--space-2);
|
margin-bottom: var(--space-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,6 +133,7 @@
|
|||||||
|
|
||||||
.meta-filter select {
|
.meta-filter select {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
appearance: none;
|
||||||
-webkit-appearance: none;
|
-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-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;
|
background-repeat: no-repeat;
|
||||||
@@ -135,7 +147,7 @@
|
|||||||
.event-list {
|
.event-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.event-card {
|
.event-card {
|
||||||
@@ -228,7 +240,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
padding-top: 36px;
|
padding-top: 36px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
@@ -250,15 +262,14 @@
|
|||||||
|
|
||||||
.event-spots-full, .detail-spots-pill-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: 1.5px solid var(--tomato);
|
border: 1.5px solid var(--tomato-light);
|
||||||
padding: var(--space-01) var(--space-4);
|
padding: var(--space-01) var(--space-4);
|
||||||
border-radius: var(--radius-pill);
|
border-radius: var(--radius-pill);
|
||||||
color: var(--butter-light);
|
color: var(--butter-light);
|
||||||
background: var(--tomato);
|
background: var(--tomato-light);
|
||||||
font-family: var(--font-main);
|
font-family: var(--font-main);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
opacity: 0.6;
|
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -358,7 +369,7 @@
|
|||||||
.detail-side-stack {
|
.detail-side-stack {
|
||||||
grid-area: side;
|
grid-area: side;
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
align-content: start;
|
align-content: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,7 +411,7 @@
|
|||||||
/* 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: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
grid-template-rows: repeat(2, minmax(220px, 1fr));
|
grid-template-rows: repeat(2, minmax(220px, 1fr));
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
min-height: 520px;
|
min-height: 520px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -649,13 +660,16 @@
|
|||||||
color: var(--olive);
|
color: var(--olive);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
.detail-spots-pill-full {
|
.detail-spots-pill-full {
|
||||||
border-color: var(--tomato);
|
border: 1.5px solid var(--tomato-light);
|
||||||
color: var(--tomato);
|
color: var(--butter-light);
|
||||||
opacity: 1;
|
background: var(--tomato-light);
|
||||||
font-weight: 600;
|
font-family: var(--font-main);
|
||||||
}*/
|
font-weight: 400;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
.detail-action-btn-wrap {
|
.detail-action-btn-wrap {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -717,11 +731,6 @@
|
|||||||
box-shadow: 0 2px 6px rgba(102, 52, 13, 0.22);
|
box-shadow: 0 2px 6px rgba(102, 52, 13, 0.22);
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-primary-btn:disabled {
|
|
||||||
opacity: 0.45;
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
|
|
||||||
.detail-primary-btn-own,
|
.detail-primary-btn-own,
|
||||||
.detail-primary-btn-own:disabled {
|
.detail-primary-btn-own:disabled {
|
||||||
border-color: var(--olive-light);
|
border-color: var(--olive-light);
|
||||||
@@ -755,6 +764,13 @@
|
|||||||
font-size: 34px;
|
font-size: 34px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overview-info-button {
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
flex-basis: 44px;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.top-nav-links {
|
.top-nav-links {
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
@@ -881,6 +897,19 @@
|
|||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overview-title-row {
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overview-info-button {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
flex-basis: 40px;
|
||||||
|
font-size: 1.35rem;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.top-nav-links {
|
.top-nav-links {
|
||||||
width: auto;
|
width: auto;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
|||||||
+51
-16
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
|
|
||||||
/* --- Navigation overrides (index-specific) --- */
|
/* --- Navigation overrides (index-specific) --- */
|
||||||
|
|
||||||
.nav-link {
|
.nav-link {
|
||||||
border: 2px solid var(--olive-light);
|
border: 2px solid var(--olive-light);
|
||||||
transition: background-color 0.2s ease, color 0.2s ease;
|
transition: background-color 0.2s ease, color 0.2s ease;
|
||||||
@@ -36,10 +35,9 @@
|
|||||||
|
|
||||||
/* --- Page layout --- */
|
/* --- Page layout --- */
|
||||||
|
|
||||||
.main-content {
|
.container {
|
||||||
width: min(100% - 4rem, 1120px);
|
width: min(100% - 4rem, 1200px);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 0 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -48,19 +46,10 @@
|
|||||||
.hero {
|
.hero {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
gap: 55px;
|
gap: 80px;
|
||||||
margin-bottom: 88px;
|
margin-bottom: 100px;
|
||||||
align-items: center;
|
|
||||||
padding: 44px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
.hero__buttons {
|
|
||||||
display: flex;
|
|
||||||
gap: var(--space-3);
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
.hero__right {
|
.hero__right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -103,7 +92,7 @@
|
|||||||
/* --- "So funktioniert's" steps --- */
|
/* --- "So funktioniert's" steps --- */
|
||||||
|
|
||||||
.how-it-works {
|
.how-it-works {
|
||||||
margin-bottom: 70px;
|
margin-bottom: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.how-it-works__header {
|
.how-it-works__header {
|
||||||
@@ -244,6 +233,52 @@
|
|||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* =========================================
|
||||||
|
NEW INSTAGRAM HOVER STYLES START HERE
|
||||||
|
========================================= */
|
||||||
|
|
||||||
|
.ig-post-wrapper {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%; /* Ensures it fills the existing gallery__item */
|
||||||
|
aspect-ratio: 1 / 1;
|
||||||
|
overflow: hidden;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-post-wrapper img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-overlay {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background-color: rgba(0, 0, 0, 0.4);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 24px;
|
||||||
|
color: #ffffff;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1.1rem;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-post-wrapper:hover .ig-overlay {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ig-overlay span {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.gallery__arrow {
|
.gallery__arrow {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|||||||
+23
-8
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
/* --- Page layout --- */
|
/* --- Page layout --- */
|
||||||
|
|
||||||
.main-content {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -68,6 +68,10 @@ h1 {
|
|||||||
margin-bottom: var(--space-4);
|
margin-bottom: var(--space-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-group.has-error {
|
||||||
|
margin-bottom: var(--space-2);
|
||||||
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: var(--space-1);
|
margin-bottom: var(--space-1);
|
||||||
@@ -127,7 +131,7 @@ button[type="submit"]:active {
|
|||||||
.info-box {
|
.info-box {
|
||||||
background-color: var(--butter-light);
|
background-color: var(--butter-light);
|
||||||
border-left: 4px solid var(--olive);
|
border-left: 4px solid var(--olive);
|
||||||
padding: var(--space-3);
|
padding: var(--space-16);
|
||||||
margin-bottom: var(--space-40);
|
margin-bottom: var(--space-40);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
@@ -138,9 +142,10 @@ button[type="submit"]:active {
|
|||||||
|
|
||||||
/* --- Hints & errors --- */
|
/* --- Hints & errors --- */
|
||||||
|
|
||||||
.error-message {
|
.error-message--field-callout {
|
||||||
margin-top: 5px;
|
|
||||||
display: none;
|
display: none;
|
||||||
|
margin-top: 0.65rem;
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group.has-error input {
|
.form-group.has-error input {
|
||||||
@@ -148,7 +153,7 @@ button[type="submit"]:active {
|
|||||||
box-shadow: 0 0 5px rgba(212, 75, 36, 0.3);
|
box-shadow: 0 0 5px rgba(212, 75, 36, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group.has-error .error-message {
|
.form-group.has-error .error-message--field-callout {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -232,7 +237,7 @@ button[type="submit"]:active {
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr auto 1fr;
|
grid-template-columns: 1fr auto 1fr;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: var(--space-3) var(--space-5);
|
padding: var(--space-16) var(--space-5);
|
||||||
border: none;
|
border: none;
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
}
|
}
|
||||||
@@ -272,6 +277,16 @@ button[type="submit"]:active {
|
|||||||
.image-section {
|
.image-section {
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.error-message--field-callout {
|
||||||
|
margin-top: var(--space-1);
|
||||||
|
max-width: 100%;
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message--field-callout::after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -284,7 +299,7 @@ button[type="submit"]:active {
|
|||||||
transform: translateX(-50%) translateY(100px);
|
transform: translateX(-50%) translateY(100px);
|
||||||
background: var(--olive);
|
background: var(--olive);
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
padding: var(--space-3) var(--space-40);
|
padding: var(--space-16) var(--space-40);
|
||||||
border-radius: var(--radius-pill);
|
border-radius: var(--radius-pill);
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -299,4 +314,4 @@ button[type="submit"]:active {
|
|||||||
.snackbar--visible {
|
.snackbar--visible {
|
||||||
transform: translateX(-50%) translateY(0);
|
transform: translateX(-50%) translateY(0);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
+24
-30
@@ -1,9 +1,4 @@
|
|||||||
.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. */
|
/* Kopfbereich mit Titel und Logout-Aktion. */
|
||||||
.profile-hero {
|
.profile-hero {
|
||||||
@@ -44,6 +39,22 @@
|
|||||||
gap: var(--space-4);
|
gap: var(--space-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-count {
|
||||||
|
color: var(--black);
|
||||||
|
background: var(--tomato-light);
|
||||||
|
height: 32px;
|
||||||
|
width: 32px;
|
||||||
|
margin-right: -18px;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: var(--radius-pill);
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-item.is-active .btn-count {
|
||||||
|
background: var(--butter-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Konsistentes Karten-Layout für alle Profilsektionen. */
|
/* Konsistentes Karten-Layout für alle Profilsektionen. */
|
||||||
.profile-panel {
|
.profile-panel {
|
||||||
@@ -53,27 +64,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.panel-head {
|
.panel-head {
|
||||||
display: flex;
|
display: none;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: var(--space-3);
|
margin-bottom: var(--space-16);
|
||||||
}
|
|
||||||
|
|
||||||
.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 {
|
.profile-card-list {
|
||||||
@@ -100,7 +94,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.profile-event-card-clickable:hover {
|
.profile-event-card-clickable:hover {
|
||||||
transform: translateY(-1px);
|
transform: translateY(-3px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-event-title h3{
|
.profile-event-title h3{
|
||||||
@@ -191,11 +185,11 @@
|
|||||||
.form-grid {
|
.form-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group {
|
.form-group {
|
||||||
margin-bottom: var(--space-3);
|
margin-bottom: var(--space-16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-group label {
|
.form-group label {
|
||||||
@@ -250,7 +244,7 @@
|
|||||||
.profile-cta-row {
|
.profile-cta-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--space-2);
|
gap: var(--space-2);
|
||||||
margin-top: var(--space-3);
|
margin-top: var(--space-16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-button-secondary {
|
.profile-button-secondary {
|
||||||
@@ -262,7 +256,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 48rem) {
|
@media (max-width: 48rem) {
|
||||||
.profile-page {
|
.container {
|
||||||
padding-top: 5.5rem;
|
padding-top: 5.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+205
-113
@@ -18,7 +18,8 @@
|
|||||||
|
|
||||||
|
|
||||||
--tomato: #D44B24;
|
--tomato: #D44B24;
|
||||||
--tomato-dark: #D44B24;
|
--tomato-dark: #B53A18;
|
||||||
|
--tomato-light: #E5937C;
|
||||||
--olive: #6B6B05;
|
--olive: #6B6B05;
|
||||||
--olive-dark: #545404;
|
--olive-dark: #545404;
|
||||||
--olive-light: #C8CC7A;
|
--olive-light: #C8CC7A;
|
||||||
@@ -44,7 +45,7 @@
|
|||||||
--space-01: 0.375rem; /* 6px */
|
--space-01: 0.375rem; /* 6px */
|
||||||
--space-1: 0.5rem; /* 8px */
|
--space-1: 0.5rem; /* 8px */
|
||||||
--space-2: 0.75rem; /* 12px */
|
--space-2: 0.75rem; /* 12px */
|
||||||
--space-3: 1rem; /* 16px */
|
--space-16: 1rem; /* 16px */
|
||||||
--space-20: 1.25rem; /* 20px */
|
--space-20: 1.25rem; /* 20px */
|
||||||
--space-4: 1.5rem; /* 24px */
|
--space-4: 1.5rem; /* 24px */
|
||||||
--space-5: 2rem; /* 32px */
|
--space-5: 2rem; /* 32px */
|
||||||
@@ -124,6 +125,33 @@ p {
|
|||||||
margin-bottom: 0rem;
|
margin-bottom: 0rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.label-input-field {
|
||||||
|
font-family: var(--font-main);
|
||||||
|
font-size: 1.125rem;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: var(--ls-sm);
|
||||||
|
line-height: 1;
|
||||||
|
margin-bottom: var(--space-16);
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
font-family: var(--font-main);
|
||||||
|
font-size: 1.125rem;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: var(--ls-sm);
|
||||||
|
line-height: 1;
|
||||||
|
margin-bottom: var(--space-0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.option {
|
||||||
|
font-family: var(--font-main);
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: var(--ls-sm);
|
||||||
|
line-height: 1;
|
||||||
|
margin-bottom: var(--space-16);
|
||||||
|
}
|
||||||
|
|
||||||
.link-text a{
|
.link-text a{
|
||||||
color: var(--blue);
|
color: var(--blue);
|
||||||
margin-top: var(--space-4);
|
margin-top: var(--space-4);
|
||||||
@@ -147,8 +175,74 @@ p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.error-message {
|
.error-message {
|
||||||
color: var(--error-text);
|
font-family: var(--font-main);
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message--inline {
|
||||||
|
color: var(--error-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message--field-callout {
|
||||||
|
display: none;
|
||||||
|
width: fit-content;
|
||||||
|
max-width: min(100%, 20rem);
|
||||||
|
padding: 0.35rem 0.8rem;
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
background: var(--error);
|
||||||
|
color: var(--white);
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.8125rem;
|
||||||
|
line-height: 1.2;
|
||||||
|
white-space: normal;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message--field-callout::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -0.35rem;
|
||||||
|
right: 1.6rem;
|
||||||
|
width: 0.8rem;
|
||||||
|
height: 0.8rem;
|
||||||
|
background: inherit;
|
||||||
|
border-top-left-radius: 0.2rem;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message--callout {
|
||||||
|
display: none;
|
||||||
|
width: max-content;
|
||||||
|
max-width: 15rem;
|
||||||
|
padding: 0.7rem 1.15rem;
|
||||||
|
border-radius: 1rem;
|
||||||
|
background: var(--error);
|
||||||
|
color: #ffffff;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
line-height: 1.25;
|
||||||
|
white-space: normal;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
box-shadow: var(--shadow-interaction);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message--callout:not(:empty) {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message--callout::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
right: 2.1rem;
|
||||||
|
bottom: -0.55rem;
|
||||||
|
width: 1.1rem;
|
||||||
|
height: 1.1rem;
|
||||||
|
background: inherit;
|
||||||
|
border-bottom-right-radius: 0.25rem;
|
||||||
|
transform: rotate(45deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Margins */
|
/* Margins */
|
||||||
@@ -167,7 +261,7 @@ p {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
gap: var(--space-3);
|
gap: var(--space-16);
|
||||||
padding-top: 36px;
|
padding-top: 36px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
@@ -188,28 +282,37 @@ p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Layout */
|
/* Layout */
|
||||||
.main-content {
|
|
||||||
margin-top: var(--space-8);
|
|
||||||
|
|
||||||
|
.layout-wide {
|
||||||
|
width: 75%;
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 82px auto 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.layout-narrow {
|
||||||
|
width: 55%;
|
||||||
|
max-width: 900px;
|
||||||
|
margin: 82px auto 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
.container {
|
.container {
|
||||||
width: 90%;
|
width: 80%;
|
||||||
max-width: 75rem;
|
max-width: 75rem;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/* Media Queries (Responsive) */
|
||||||
Content pages with sticky nav require top padding to avoid overlap.
|
@media (max-width: 48rem) {
|
||||||
Used on event_overview, event_detail, and similar pages.
|
.container {
|
||||||
*/
|
width: 95%;
|
||||||
.container.page-content-safe {
|
}
|
||||||
padding-top: 6.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Detail pages with back button need less top padding. */
|
.nav {
|
||||||
.container.page-content-safe.detail-page {
|
flex-direction: column;
|
||||||
padding-top: 3.5rem;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
@@ -422,29 +525,6 @@ p {
|
|||||||
border-color: var(--olive-dark);
|
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 {
|
.button--outline {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
@@ -472,7 +552,8 @@ p {
|
|||||||
transition: background-color 0.2s ease, border-color 0.2s ease;
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.counter-button:hover, .counter-button:focus-visible {
|
.counter-button:hover,
|
||||||
|
.counter-button:focus-visible {
|
||||||
background-color: var(--olive-dark);
|
background-color: var(--olive-dark);
|
||||||
border-color: var(--olive-dark);
|
border-color: var(--olive-dark);
|
||||||
}
|
}
|
||||||
@@ -492,28 +573,30 @@ p {
|
|||||||
transition: background-color 0.2s ease, color 0.2s ease;
|
transition: background-color 0.2s ease, color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-item:hover, .category-item:focus-visible {
|
.category-item:hover,
|
||||||
|
.category-item:focus-visible,
|
||||||
|
.category-item.is-active,
|
||||||
|
.category-item.active {
|
||||||
background: var(--tomato);
|
background: var(--tomato);
|
||||||
color: var(--butter-light);
|
color: var(--butter-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-item.is-active, .category-item.active {
|
|
||||||
background: var(--tomato);
|
.category-items {
|
||||||
color: var(--butter-light);
|
display: inline-flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: var(--space-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-item-profile {
|
.category-item-profile {
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
padding: var(--space-1) var(--space-4);
|
height: 44px;
|
||||||
|
padding: 0 var(--space-4);
|
||||||
}
|
|
||||||
|
|
||||||
.category-items {
|
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-wrap: wrap;
|
align-items: center;
|
||||||
gap: var(--space-1);
|
gap: var(--space-16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-small {
|
.button-small {
|
||||||
@@ -526,7 +609,7 @@ p {
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
border-radius: var(--radius-pill);
|
border-radius: var(--radius-pill);
|
||||||
padding: 10px var(--space-3);
|
padding: 10px var(--space-16);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
@@ -630,32 +713,6 @@ p {
|
|||||||
gap: 8px;
|
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 / Popup */
|
||||||
.modal {
|
.modal {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -691,39 +748,82 @@ p {
|
|||||||
animation: modalSlideIn 0.3s ease;
|
animation: modalSlideIn 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-info {
|
||||||
|
width: 48px;
|
||||||
|
height: 48px;
|
||||||
|
flex: 0 0 48px;
|
||||||
|
border: 1.5px solid var(--olive);
|
||||||
|
border-radius: 999px;
|
||||||
|
background: var(--butter-light);
|
||||||
|
color: var(--olive);
|
||||||
|
font-family: "Bagel Fat One", cursive;
|
||||||
|
font-size: 1.7rem;
|
||||||
|
line-height: 1;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: var(--shadow-interaction);
|
||||||
|
transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info:hover,
|
||||||
|
.btn-info:focus-visible {
|
||||||
|
background: var(--butter);
|
||||||
|
border-color: var(--olive-dark);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-info:focus-visible {
|
||||||
|
outline: 2px solid var(--olive-dark);
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes modalSlideIn {
|
@keyframes modalSlideIn {
|
||||||
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 {
|
.modal-header {
|
||||||
position: relative;
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: var(--space-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-header h2 {
|
.modal-header h2 {
|
||||||
padding: var(--space-20)var(--space-20) 0 var(--space-20);
|
margin: 0;
|
||||||
}
|
padding: 0;
|
||||||
|
text-align: left;
|
||||||
.close-btn {
|
flex: 1;
|
||||||
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 {
|
.modal-close {
|
||||||
position: absolute;
|
width: 32px;
|
||||||
right: 0;
|
height: 32px;
|
||||||
top: 0;
|
flex: 0 0 32px;
|
||||||
|
margin-left: auto;
|
||||||
|
border: none;
|
||||||
|
background: transparent;
|
||||||
|
color: var(--olive);
|
||||||
|
font-size: 2rem;
|
||||||
|
line-height: 1;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0;
|
||||||
|
transition: color 0.2s ease, transform 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-close:hover,
|
||||||
|
.modal-close:focus-visible {
|
||||||
|
color: var(--olive-dark);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-close:focus-visible {
|
||||||
|
outline: 2px solid var(--olive-dark);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close-btn {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
color: var(--black);
|
color: var(--black);
|
||||||
background: none;
|
background: none;
|
||||||
@@ -737,7 +837,9 @@ p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.modal-body {
|
.modal-body {
|
||||||
padding: var(--space-20) var(--space-20) var(--space-4) var(--space-20);
|
padding: var(--space-4) 0 0;
|
||||||
|
text-align: left;
|
||||||
|
line-height: 1.7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
@@ -754,7 +856,7 @@ p {
|
|||||||
transform: translateX(-50%) translateY(100px);
|
transform: translateX(-50%) translateY(100px);
|
||||||
background: var(--olive);
|
background: var(--olive);
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
padding: var(--space-3) var(--space-40);
|
padding: var(--space-16) var(--space-40);
|
||||||
border-radius: var(--radius-pill);
|
border-radius: var(--radius-pill);
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -832,7 +934,7 @@ p {
|
|||||||
grid-template-columns: 1fr auto 1fr;
|
grid-template-columns: 1fr auto 1fr;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-top: 120px;
|
margin-top: 120px;
|
||||||
padding: var(--space-3) var(--space-7);
|
padding: var(--space-16) var(--space-7);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-links {
|
.footer-links {
|
||||||
@@ -857,13 +959,3 @@ p {
|
|||||||
gap: var(--space-4);
|
gap: var(--space-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Media Queries (Responsive) */
|
|
||||||
@media (max-width: 48rem) {
|
|
||||||
.container {
|
|
||||||
width: 95%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav {
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"title": "Italienische Tavolata",
|
"title": "Italienische Tavolata",
|
||||||
"location": "Luzern",
|
"location": "Luzern",
|
||||||
"address": "Pilatusstrasse 18, 6003 Luzern",
|
"address": "Pilatusstrasse 18, 6003 Luzern",
|
||||||
"date": "22. APR. 2026",
|
"date": "23. APR. 2026",
|
||||||
"time": "15:30 UHR",
|
"time": "15:30 UHR",
|
||||||
"category": "Dinner",
|
"category": "Dinner",
|
||||||
"diet": "Vegetarisch",
|
"diet": "Vegetarisch",
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="main-content" style="padding: 40px 20px; max-width: 800px; margin: 0 auto;">
|
<main class="layout-wide">
|
||||||
<h1>Datenschutzerklärung</h1>
|
<h1>Datenschutzerklärung</h1>
|
||||||
|
|
||||||
<h3>1. Verantwortliche Stelle</h3>
|
<h3>1. Verantwortliche Stelle</h3>
|
||||||
|
|||||||
+60
-47
@@ -9,9 +9,12 @@
|
|||||||
<link rel="stylesheet" href="css/event_create.css" />
|
<link rel="stylesheet" href="css/event_create.css" />
|
||||||
<script src="js/navigation.js" defer></script>
|
<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">
|
||||||
|
|
||||||
|
<!-- Font Awesome Icons -->
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -35,11 +38,11 @@
|
|||||||
|
|
||||||
<form id="eventForm" class="event-form" novalidate>
|
<form id="eventForm" class="event-form" novalidate>
|
||||||
<section
|
<section
|
||||||
class="step step--active step--intro"
|
class="step step--active step--intro layout-wide"
|
||||||
data-step="0"
|
data-step="0"
|
||||||
aria-labelledby="intro-title"
|
aria-labelledby="intro-title"
|
||||||
>
|
>
|
||||||
<div class="step-layout step-layout--intro">
|
<div class="step-layout hero startseite">
|
||||||
<div class="step-copy">
|
<div class="step-copy">
|
||||||
<p class="badge">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>
|
||||||
@@ -52,17 +55,17 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<aside class="intro-card intro-card--image" aria-label="Stimmungsbild zur Event-Erstellung">
|
<div class="intro-card intro-card--image hero__right" aria-label="Stimmungsbild zur Event-Erstellung">
|
||||||
<img
|
<img
|
||||||
class="intro-image"
|
class="intro-image"
|
||||||
src="assets/eventcreate_foodtable.jpg"
|
src="assets/eventcreate_foodtable-new.jpg"
|
||||||
alt="Ein gedeckter Tisch mit gemeinsamem Essen"
|
alt="Ein gedeckter Tisch mit gemeinsamem Essen"
|
||||||
/>
|
/>
|
||||||
</aside>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="step" data-step="1" aria-labelledby="step1-title">
|
<section class="step layout-narrow" 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="badge">Schritt 1</p>
|
<p class="badge">Schritt 1</p>
|
||||||
@@ -75,25 +78,25 @@
|
|||||||
|
|
||||||
<div class="step-fields">
|
<div class="step-fields">
|
||||||
<fieldset class="form-field">
|
<fieldset class="form-field">
|
||||||
<legend>Art des Essens / Eventtyp</legend>
|
<label>Art des Essens / Eventtyp</label>
|
||||||
|
|
||||||
<div class="option-grid option-grid--4">
|
<div class="option-grid option-grid--4">
|
||||||
<label class="option-card">
|
<label class="option-card option">
|
||||||
<input type="radio" name="eventType" value="Brunch" required />
|
<input type="radio" name="eventType" value="Brunch" required />
|
||||||
<span>Brunch</span>
|
<span>Brunch</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="option-card">
|
<label class="option-card option">
|
||||||
<input type="radio" name="eventType" value="Lunch" />
|
<input type="radio" name="eventType" value="Lunch" />
|
||||||
<span>Lunch</span>
|
<span>Lunch</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="option-card">
|
<label class="option-card option">
|
||||||
<input type="radio" name="eventType" value="Kaffee + Kuchen" />
|
<input type="radio" name="eventType" value="Kaffee + Kuchen" />
|
||||||
<span>Kaffee + Kuchen</span>
|
<span>Kaffee + Kuchen</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="option-card">
|
<label class="option-card option">
|
||||||
<input type="radio" name="eventType" value="Dinner" />
|
<input type="radio" name="eventType" value="Dinner" />
|
||||||
<span>Dinner</span>
|
<span>Dinner</span>
|
||||||
</label>
|
</label>
|
||||||
@@ -101,7 +104,7 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset class="form-field">
|
<fieldset class="form-field">
|
||||||
<legend>Maximale Personenanzahl</legend>
|
<label>Maximale Personenanzahl</label>
|
||||||
|
|
||||||
<div class="counter" data-counter>
|
<div class="counter" data-counter>
|
||||||
<button
|
<button
|
||||||
@@ -135,7 +138,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="step" data-step="2" aria-labelledby="step2-title">
|
<section class="step layout-narrow" 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="badge">Schritt 2</p>
|
<p class="badge">Schritt 2</p>
|
||||||
@@ -147,25 +150,25 @@
|
|||||||
|
|
||||||
<div class="step-fields">
|
<div class="step-fields">
|
||||||
<fieldset class="form-field">
|
<fieldset class="form-field">
|
||||||
<legend>Ernährungsform</legend>
|
<label>Ernährungsform</label>
|
||||||
|
|
||||||
<div class="option-grid option-grid--4">
|
<div class="option-grid option-grid--4">
|
||||||
<label class="option-card">
|
<label class="option-card option">
|
||||||
<input type="checkbox" name="dietType" value="Fleisch" />
|
<input type="checkbox" name="dietType" value="Fleisch" />
|
||||||
<span>Fleisch</span>
|
<span>Fleisch</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="option-card">
|
<label class="option-card option">
|
||||||
<input type="checkbox" name="dietType" value="Fisch" />
|
<input type="checkbox" name="dietType" value="Fisch" />
|
||||||
<span>Fisch</span>
|
<span>Fisch</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="option-card">
|
<label class="option-card option">
|
||||||
<input type="checkbox" name="dietType" value="Vegetarisch" />
|
<input type="checkbox" name="dietType" value="Vegetarisch" />
|
||||||
<span>Vegetarisch</span>
|
<span>Vegetarisch</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="option-card">
|
<label class="option-card option">
|
||||||
<input type="checkbox" name="dietType" value="Vegan" />
|
<input type="checkbox" name="dietType" value="Vegan" />
|
||||||
<span>Vegan</span>
|
<span>Vegan</span>
|
||||||
</label>
|
</label>
|
||||||
@@ -180,7 +183,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="step" data-step="3" aria-labelledby="step3-title">
|
<section class="step layout-narrow" 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="badge">Schritt 3</p>
|
<p class="badge">Schritt 3</p>
|
||||||
@@ -192,23 +195,23 @@
|
|||||||
|
|
||||||
<div class="step-fields">
|
<div class="step-fields">
|
||||||
<fieldset class="form-field">
|
<fieldset class="form-field">
|
||||||
<legend>Allergene / Unverträglichkeiten</legend>
|
<label>Allergene / Unverträglichkeiten</label>
|
||||||
<p class="field-hint">Optional – nur auswählen, wenn es für dein Event relevant ist.</p>
|
<p class="field-hint">Optional – nur auswählen, wenn es für dein Event relevant ist.</p>
|
||||||
|
|
||||||
<div class="option-grid option-grid--3">
|
<div class="option-grid option-grid--3">
|
||||||
<label class="option-card option-card--checkbox">
|
<label class="option-card option">
|
||||||
<input type="checkbox" name="allergies" value="glutenfrei" />
|
<input type="checkbox" name="allergies" value="glutenfrei" />
|
||||||
<span>glutenfrei</span>
|
<span>Glutenfrei</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="option-card option-card--checkbox">
|
<label class="option-card option">
|
||||||
<input type="checkbox" name="allergies" value="laktosefrei" />
|
<input type="checkbox" name="allergies" value="laktosefrei" />
|
||||||
<span>laktosefrei</span>
|
<span>Laktosefrei</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="option-card option-card--checkbox">
|
<label class="option-card option">
|
||||||
<input type="checkbox" name="allergies" value="ohne Nüsse" />
|
<input type="checkbox" name="allergies" value="ohne Nüsse" />
|
||||||
<span>ohne Nüsse</span>
|
<span>Ohne Nüsse</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
@@ -221,7 +224,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="step" data-step="4" aria-labelledby="step4-title">
|
<section class="step layout-narrow" 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="badge">Schritt 4</p>
|
<p class="badge">Schritt 4</p>
|
||||||
@@ -240,14 +243,14 @@
|
|||||||
|
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<label for="eventTime">Uhrzeit</label>
|
<label for="eventTime">Uhrzeit</label>
|
||||||
<input type="time" id="eventTime" name="eventTime" required />
|
<input type="time" id="eventTime" name="eventTime" value="00:00" required />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="step" data-step="5" aria-labelledby="step5-title">
|
<section class="step layout-narrow" 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="badge">Schritt 5</p>
|
<p class="badge">Schritt 5</p>
|
||||||
@@ -271,7 +274,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="step" data-step="6" aria-labelledby="step6-title">
|
<section class="step layout-narrow" 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="badge">Schritt 6</p>
|
<p class="badge">Schritt 6</p>
|
||||||
@@ -305,7 +308,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="step" data-step="7" aria-labelledby="step7-title">
|
<section class="step layout-narrow" 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="badge">Schritt 7</p>
|
<p class="badge">Schritt 7</p>
|
||||||
@@ -378,10 +381,7 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<div class="flow-footer" id="flowFooter" hidden>
|
<div class="flow-footer layout-narrow" id="flowFooter" hidden>
|
||||||
|
|
||||||
<p id="errorMessage" class="error-message" role="alert" aria-live="assertive"></p>
|
|
||||||
|
|
||||||
<div class="flow-actions">
|
<div class="flow-actions">
|
||||||
<button type="button" id="backButton" class="button-secondary">
|
<button type="button" id="backButton" class="button-secondary">
|
||||||
Zurück
|
Zurück
|
||||||
@@ -396,38 +396,51 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="flow-actions-right">
|
||||||
|
<p
|
||||||
|
id="errorMessage"
|
||||||
|
class="error-message error-message--callout"
|
||||||
|
role="alert"
|
||||||
|
aria-live="assertive"
|
||||||
|
></p>
|
||||||
<button type="button" id="nextButton" class="button-primary">
|
<button type="button" id="nextButton" class="button-primary">
|
||||||
Weiter
|
Weiter
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flow-actions-right">
|
|
||||||
<p id="errorMessage" class="error-message" role="alert" aria-live="assertive"></p>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
id="submissionSuccess"
|
id="submissionSuccess"
|
||||||
class="submission-success"
|
class="submission-success layout-wide"
|
||||||
aria-labelledby="success-title"
|
aria-labelledby="success-title"
|
||||||
aria-live="polite"
|
aria-live="polite"
|
||||||
hidden
|
hidden
|
||||||
>
|
>
|
||||||
<div class="step-layout">
|
<div class="step-layout step-layout--intro hero startseite">
|
||||||
<div class="step-copy">
|
<div class="step-copy">
|
||||||
<p class="badge">Event erstellt</p>
|
<p class="badge">Event erstellt</p>
|
||||||
<h2 id="success-title">Dein Event ist ready.</h2>
|
<div class="submission-success-title-row">
|
||||||
|
<h2 id="success-title">Dein Event ist ready</h2>
|
||||||
|
<span class="submission-success-icon" aria-hidden="true">
|
||||||
|
<i class="fa-solid fa-champagne-glasses"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<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.
|
||||||
Im Profil kannst du dein Event anschauen, verwalten oder direkt das nächste planen.
|
Im Profil kannst du dein Event anschauen, verwalten oder direkt das nächste planen.
|
||||||
</p>
|
</p>
|
||||||
|
<div class="submission-success-actions">
|
||||||
|
<a class="button-primary button--intro" href="my_profil.html">Weiter zu deinem Profil</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="review-card review-card--success">
|
<div class="intro-card intro-card--image hero__right" aria-label="Stimmungsbild zum erstellten Event">
|
||||||
<div class="submission-success-actions">
|
<img
|
||||||
<a class="button-primary" href="my_profil.html">Weiter zu deinem Profil</a>
|
class="intro-image submission-success-image"
|
||||||
</div>
|
src="assets/eventcreate_foodtable with friends.jpg"
|
||||||
|
alt="Gemeinsames Essen an einem gedeckten Tisch"
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
+34
-2
@@ -3,7 +3,7 @@
|
|||||||
<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é | 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">
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Main content: detail page gets fully injected by JavaScript -->
|
<!-- Main content: detail page gets fully injected by JavaScript -->
|
||||||
<main class="container page-content-safe detail-page">
|
<main class="container layout-wide">
|
||||||
<!-- 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>
|
||||||
@@ -38,6 +38,38 @@
|
|||||||
<!-- 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>
|
||||||
|
|
||||||
|
<div id="register-confirm-modal" class="modal">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h2>Ein Platz für dich am Tisch!</h2>
|
||||||
|
<button type="button" class="modal-close" id="register-modal-close" aria-label="Popup schließen">×</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<p>Schön, dass du dich dazu gesellen möchtest! Da dein:e Gastgeber:in extra für dich einkauft und mit viel Liebe kocht, ist deine Anmeldung ein festes Versprechen. Bitte sag nur zu, wenn du an dem Tag wirklich Zeit hast. So zeigst du echte Wertschätzung für die Mühe und wir lassen niemanden auf vollen Töpfen sitzen.</p>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer" style="display: flex; justify-content: flex-end; gap: 16px; margin-top: 24px;">
|
||||||
|
<button class="button-primary button--outline" type="button" id="register-modal-cancel">Abbrechen</button>
|
||||||
|
<button class="button-primary" type="button" id="confirm-register-btn">Ja, ich bin dabei</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="unregister-confirm-modal" class="modal">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h2>Pläne haben sich geändert?</h2>
|
||||||
|
<button type="button" class="modal-close" id="unregister-modal-close" aria-label="Popup schließen">×</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<p>Schade, dass du nicht dabei sein kannst! Aber manchmal kommt einfach etwas dazwischen. Wenn du dich jetzt abmeldest, gibst du deinen Stuhl am Tisch für jemand anderen aus der Community frei. So hilfst du bei der Planung und ein anderer Feinschmecker freut sich über den freien Platz.</p>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer" style="display: flex; justify-content: flex-end; gap: 16px; margin-top: 24px;">
|
||||||
|
<button class="button-primary button--outline" type="button" id="unregister-modal-cancel">Abbrechen</button>
|
||||||
|
<button class="button-primary button-primary-abmelden" type="button" id="confirm-unregister-btn">Ja, abmelden</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Snackbar: Feedback bei An-/Abmeldung -->
|
<!-- Snackbar: Feedback bei An-/Abmeldung -->
|
||||||
<div class="snackbar" id="snackbar"></div>
|
<div class="snackbar" id="snackbar"></div>
|
||||||
|
|
||||||
|
|||||||
+43
-9
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
<!-- Globales Stylesheet -->
|
<!-- Globales Stylesheet -->
|
||||||
<link rel="stylesheet" href="css/stylesheet_global.css">
|
<link rel="stylesheet" href="css/stylesheet_global.css">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -28,16 +27,17 @@
|
|||||||
</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 page-content-safe">
|
<main class="container layout-wide">
|
||||||
<!-- Page headline with info button -->
|
<!-- Page headline -->
|
||||||
<div style="display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem;">
|
<p class="badge margin-bottom-40">Event finden</p>
|
||||||
<h1 style="margin-bottom: 0;">Events</h1>
|
<div class="overview-title-row">
|
||||||
<button type="button" class="btn-info" id="info-button" aria-label="Information über kostenlose Events">?</button>
|
<h1 class="overview-title">Was darf es sein?</h1>
|
||||||
|
<button type="button" id="info-button" class="btn-info" aria-label="Informationen zu kostenlosen Events">?</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Filter section: category chips + location/date filters -->
|
<!-- Filter section: category chips + location/date filters -->
|
||||||
<section class="filter-section">
|
<section class="filter-section">
|
||||||
<p class="filter-label">Was darf es sein?</p>
|
<p class="filter-label">Art des Essens / Eventtyp</p>
|
||||||
<div class="filter-row">
|
<div class="filter-row">
|
||||||
<!-- Primary category filter buttons -->
|
<!-- Primary category filter buttons -->
|
||||||
<div class="category-group">
|
<div class="category-group">
|
||||||
@@ -66,8 +66,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="filter-row">
|
<p class="filter-label">Ernährungsform</p>
|
||||||
<!-- Diet filter buttons -->
|
<div class="filter-row">
|
||||||
|
<!-- Primary category filter buttons -->
|
||||||
<div class="category-group">
|
<div class="category-group">
|
||||||
<button class="category-item" type="button" data-diet="Fleisch">Fleisch</button>
|
<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="Fisch">Fisch</button>
|
||||||
@@ -76,6 +77,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<p class="filter-label">Allergene</p>
|
||||||
<div class="filter-row">
|
<div class="filter-row">
|
||||||
<!-- Allergen filter buttons -->
|
<!-- Allergen filter buttons -->
|
||||||
<div class="category-group">
|
<div class="category-group">
|
||||||
@@ -108,6 +110,38 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="register-confirm-modal" class="modal">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h2>Ein Platz für dich am Tisch!</h2>
|
||||||
|
<button type="button" class="modal-close" onclick="closeRegisterModal()" aria-label="Popup schließen">×</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<p>Schön, dass du dich dazu gesellen möchtest! Da dein:e Gastgeber:in extra für dich einkauft und mit viel Liebe kocht, ist deine Anmeldung ein festes Versprechen. Bitte sag nur zu, wenn du an dem Tag wirklich Zeit hast. So zeigst du echte Wertschätzung für die Mühe und wir lassen niemanden auf vollen Töpfen sitzen.</p>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer" style="display: flex; justify-content: flex-end; gap: 16px; margin-top: 24px;">
|
||||||
|
<button class="button-primary button--outline" type="button" onclick="closeRegisterModal()">Abbrechen</button>
|
||||||
|
<button class="button-primary" type="button" id="confirm-register-btn">Ja, ich bin dabei</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="unregister-confirm-modal" class="modal">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h2>Pläne haben sich geändert?</h2>
|
||||||
|
<button type="button" class="modal-close" onclick="closeUnregisterModal()" aria-label="Popup schließen">×</button>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<p>Schade, dass du nicht dabei sein kannst! Aber manchmal kommt einfach etwas dazwischen. Wenn du dich jetzt abmeldest, gibst du deinen Stuhl am Tisch für jemand anderen aus der Community frei. So hilfst du bei der Planung und ein anderer Feinschmecker freut sich über den freien Platz.</p>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer" style="display: flex; justify-content: flex-end; gap: 16px; margin-top: 24px;">
|
||||||
|
<button class="button-primary button--outline" type="button" onclick="closeUnregisterModal()">Abbrechen</button>
|
||||||
|
<button class="button-primary button-primary-abmelden" type="button" id="confirm-unregister-btn">Ja, abmelden</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Snackbar: Feedback bei An-/Abmeldung -->
|
<!-- Snackbar: Feedback bei An-/Abmeldung -->
|
||||||
<div class="snackbar" id="snackbar"></div>
|
<div class="snackbar" id="snackbar"></div>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="main-content" style="padding: 40px 20px; max-width: 800px; margin: 0 auto;">
|
<main class="layout-wide">
|
||||||
<h1>Impressum</h1>
|
<h1>Impressum</h1>
|
||||||
|
|
||||||
<h3>Angaben gemäss § 5 TMG</h3>
|
<h3>Angaben gemäss § 5 TMG</h3>
|
||||||
|
|||||||
+100
-15
@@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="main-content">
|
<main class="container layout-wide">
|
||||||
<!-- 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">
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
|
|
||||||
<!-- 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" aria-label="Bildergalerie" aria-roledescription="Karussell">
|
<section class="gallery" aria-label="Bildergalerie" aria-roledescription="Karussell">
|
||||||
<h2>Einblick in Cooking-Erlebnisse</h2>
|
<div class="gallery__header"> </div><h2>Einblick in Cooking-Erlebnisse</h2>
|
||||||
<p>#gemeinsam_invité auf Instagram</p>
|
<p>#gemeinsam_invité auf Instagram</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="gallery__carousel">
|
<div class="gallery__carousel">
|
||||||
@@ -91,44 +91,129 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="gallery__track" aria-live="polite">
|
<div class="gallery__track" aria-live="polite">
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 1 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 1 von 12">
|
||||||
<img src="assets/index_Red checkered social eating.jpg" alt="Red checkered social eating">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Red checkered social eating.jpg" alt="Red checkered social eating">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 142</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 18</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 2 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 2 von 12">
|
||||||
<img src="assets/index_Pasta and many forks.jpg" alt="Pasta and many forks">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Pasta and many forks.jpg" alt="Pasta and many forks">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 89</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 5</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 3 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 3 von 12">
|
||||||
<img src="assets/index_Zoomed in asian eating.jpg" alt="Zoomed in asian eating">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Zoomed in asian eating.jpg" alt="Zoomed in asian eating">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 215</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 32</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 4 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 4 von 12">
|
||||||
<img src="assets/index_Burger eating together.jpg" alt="Burger eating together">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Burger eating together.jpg" alt="Burger eating together">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 304</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 41</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 5 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 5 von 12">
|
||||||
<img src="assets/index_Cake cutting figs.jpg" alt="Cake cutting figs">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Cake cutting figs.jpg" alt="Cake cutting figs">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 178</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 12</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 6 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 6 von 12">
|
||||||
<img src="assets/index_Cooking woman at home.jpg" alt="Cooking woman at home">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Cooking woman at home.jpg" alt="Cooking woman at home">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 95</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 8</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 7 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 7 von 12">
|
||||||
<img src="assets/index_Eating and laughing girls.jpg" alt="Eating and laughing girls">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Eating and laughing girls.jpg" alt="Eating and laughing girls">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 420</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 55</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 8 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 8 von 12">
|
||||||
<img src="assets/index_Pasta in cheese.jpg" alt="Pasta in cheese">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Pasta in cheese.jpg" alt="Pasta in cheese">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 267</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 29</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 9 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 9 von 12">
|
||||||
<img src="assets/index_Salad roommates.jpg" alt="Salad roommates">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Salad roommates.jpg" alt="Salad roommates">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 112</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 4</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 10 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 10 von 12">
|
||||||
<img src="assets/index_Sharing food table.jpg" alt="Sharing food table">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Sharing food table.jpg" alt="Sharing food table">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 389</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 47</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 11 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 11 von 12">
|
||||||
<img src="assets/index_Spicy food zoomed.jpg" alt="Spicy food zoomed">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_Spicy food zoomed.jpg" alt="Spicy food zoomed">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 156</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 11</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 12 von 12">
|
<article class="gallery__item" role="group" aria-roledescription="Folie" aria-label="Bild 12 von 12">
|
||||||
<img src="assets/index_cooking.jpg" alt="Cooking">
|
<div class="ig-post-wrapper">
|
||||||
|
<img src="assets/index_cooking.jpg" alt="Cooking">
|
||||||
|
<div class="ig-overlay">
|
||||||
|
<span><i class="fa-solid fa-heart"></i> 234</span>
|
||||||
|
<span><i class="fa-solid fa-comment"></i> 21</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="button" class="gallery__arrow gallery__arrow--next" aria-label="Nächstes Bild">
|
<button type="button" class="gallery__arrow gallery__arrow--next" aria-label="Nächstes Bild">
|
||||||
<i class="fas fa-chevron-right"></i>
|
<i class="fas fa-chevron-right"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
+18
-1
@@ -23,6 +23,7 @@ const CURRENT_USER_KEY = "socialCookingCurrentUser";
|
|||||||
// =============================
|
// =============================
|
||||||
let currentStep = 0;
|
let currentStep = 0;
|
||||||
const lastStep = steps.length - 1;
|
const lastStep = steps.length - 1;
|
||||||
|
let reviewReturnStep = null;
|
||||||
|
|
||||||
// Text für den Weiter-Button je nach Schritt
|
// Text für den Weiter-Button je nach Schritt
|
||||||
const nextLabels = {
|
const nextLabels = {
|
||||||
@@ -151,10 +152,14 @@ function showStep(index, pushHistory = true) {
|
|||||||
*/
|
*/
|
||||||
function updateFlowVisibility(stepIndex) {
|
function updateFlowVisibility(stepIndex) {
|
||||||
const isIntroStep = stepIndex === 0;
|
const isIntroStep = stepIndex === 0;
|
||||||
|
const isReviewReturnMode = reviewReturnStep === lastStep && stepIndex < lastStep;
|
||||||
|
|
||||||
flowFooter.hidden = isIntroStep;
|
flowFooter.hidden = isIntroStep;
|
||||||
backButton.hidden = isIntroStep;
|
backButton.hidden = isIntroStep;
|
||||||
nextButton.textContent = nextLabels[stepIndex];
|
backButton.textContent = "Zurück";
|
||||||
|
nextButton.textContent = isReviewReturnMode
|
||||||
|
? "Zurück zur Übersicht"
|
||||||
|
: nextLabels[stepIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -567,6 +572,10 @@ function validateRequiredFields(fields) {
|
|||||||
* Wenn der User im ersten Formularschritt ist, geht es zurück zum Intro.
|
* Wenn der User im ersten Formularschritt ist, geht es zurück zum Intro.
|
||||||
*/
|
*/
|
||||||
function handleBackClick() {
|
function handleBackClick() {
|
||||||
|
if (reviewReturnStep === lastStep && currentStep < lastStep) {
|
||||||
|
reviewReturnStep = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (currentStep > 1) {
|
if (currentStep > 1) {
|
||||||
showStep(currentStep - 1);
|
showStep(currentStep - 1);
|
||||||
} else {
|
} else {
|
||||||
@@ -582,6 +591,12 @@ function handleBackClick() {
|
|||||||
function handleNextClick() {
|
function handleNextClick() {
|
||||||
if (!validateCurrentStep()) return;
|
if (!validateCurrentStep()) return;
|
||||||
|
|
||||||
|
if (reviewReturnStep === lastStep && currentStep < lastStep) {
|
||||||
|
showStep(lastStep);
|
||||||
|
reviewReturnStep = null;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (currentStep < lastStep) {
|
if (currentStep < lastStep) {
|
||||||
showStep(currentStep + 1);
|
showStep(currentStep + 1);
|
||||||
} else {
|
} else {
|
||||||
@@ -701,6 +716,8 @@ function registerReviewEditHandlers() {
|
|||||||
const stepIndex = Number(item.dataset.editStep);
|
const stepIndex = Number(item.dataset.editStep);
|
||||||
const fieldName = item.dataset.editField;
|
const fieldName = item.dataset.editField;
|
||||||
|
|
||||||
|
// Öffnet einen Schritt aus der Übersicht und springt danach direkt zurück zu Schritt 7.
|
||||||
|
reviewReturnStep = lastStep;
|
||||||
showStep(stepIndex);
|
showStep(stepIndex);
|
||||||
focusFieldByName(fieldName);
|
focusFieldByName(fieldName);
|
||||||
};
|
};
|
||||||
|
|||||||
+239
-398
@@ -3,16 +3,13 @@
|
|||||||
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
|
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
|
||||||
const USERS_STORAGE_KEY = 'socialCookingUsers';
|
const USERS_STORAGE_KEY = 'socialCookingUsers';
|
||||||
const REGISTRATION_STORAGE_KEY = 'socialCookingRegistrations';
|
const REGISTRATION_STORAGE_KEY = 'socialCookingRegistrations';
|
||||||
// -------------------------------------------------------------
|
|
||||||
// DOM entry point and shared asset path.
|
const detailcontainer = document.getElementById('detail-view');
|
||||||
// -------------------------------------------------------------
|
|
||||||
const detailContainer = document.getElementById('detail-view');
|
|
||||||
const locationIconPath = 'assets/icon_location.svg';
|
const locationIconPath = 'assets/icon_location.svg';
|
||||||
const calendarIconPath = 'assets/icon_calendar.svg';
|
const calendarIconPath = 'assets/icon_calendar.svg';
|
||||||
const gastIconPath = 'assets/icon_gast.svg';
|
const gastIconPath = 'assets/icon_gast.svg';
|
||||||
const currentUser = getCurrentUser();
|
const currentUser = getCurrentUser();
|
||||||
|
|
||||||
// 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);
|
||||||
const eventId = parseInt(params.get('id'));
|
const eventId = parseInt(params.get('id'));
|
||||||
|
|
||||||
@@ -62,14 +59,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getUserDisplayName(user) {
|
function getUserDisplayName(user) {
|
||||||
if (!user) {
|
if (!user) return '';
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
const firstName = String(user.vorname || '').trim();
|
const firstName = String(user.vorname || '').trim();
|
||||||
const lastName = String(user.nachname || '').trim();
|
const lastName = String(user.nachname || '').trim();
|
||||||
|
const fullName = `${firstName} ${lastName}`.trim();
|
||||||
return (firstName || `${firstName} ${lastName}`.trim() || String(user.email || '').trim()).trim();
|
return (fullName || firstName || String(user.email || '').trim()).trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getResolvedParticipants(event, registrationMap) {
|
function getResolvedParticipants(event, registrationMap) {
|
||||||
@@ -84,10 +78,7 @@
|
|||||||
Object.entries(registrationMap || {}).forEach(([email, ids]) => {
|
Object.entries(registrationMap || {}).forEach(([email, ids]) => {
|
||||||
const isRegisteredForEvent = Array.isArray(ids)
|
const isRegisteredForEvent = Array.isArray(ids)
|
||||||
&& ids.map(id => Number(id)).includes(Number(event.id));
|
&& ids.map(id => Number(id)).includes(Number(event.id));
|
||||||
|
if (!isRegisteredForEvent) return;
|
||||||
if (!isRegisteredForEvent) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const user = usersByEmail.get(String(email || '').trim().toLowerCase());
|
const user = usersByEmail.get(String(email || '').trim().toLowerCase());
|
||||||
const displayName = getUserDisplayName(user) || String(email || '').trim();
|
const displayName = getUserDisplayName(user) || String(email || '').trim();
|
||||||
@@ -102,158 +93,111 @@
|
|||||||
return baseParticipants;
|
return baseParticipants;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getParticipantNameForViewer(name, canSeeLastName) {
|
||||||
|
const rawName = String(name || '').trim();
|
||||||
|
if (!rawName) return '';
|
||||||
|
if (canSeeLastName) return rawName;
|
||||||
|
if (rawName.includes('@')) return rawName.split('@')[0].trim() || rawName;
|
||||||
|
return rawName.split(/\s+/)[0];
|
||||||
|
}
|
||||||
|
|
||||||
function setRegistrationMap(registrationMap) {
|
function setRegistrationMap(registrationMap) {
|
||||||
localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(registrationMap));
|
localStorage.setItem(REGISTRATION_STORAGE_KEY, JSON.stringify(registrationMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseEventDateTime(event) {
|
function parseEventDateTime(event) {
|
||||||
if (!event?.date) {
|
if (!event?.date) return null;
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
const dateValue = String(event.date).trim();
|
const dateValue = String(event.date).trim();
|
||||||
const isoDateMatch = dateValue.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
const isoDateMatch = dateValue.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
||||||
let year;
|
let year, month, day;
|
||||||
let month;
|
|
||||||
let day;
|
|
||||||
|
|
||||||
if (isoDateMatch) {
|
if (isoDateMatch) {
|
||||||
year = Number(isoDateMatch[1]);
|
year = Number(isoDateMatch[1]);
|
||||||
month = Number(isoDateMatch[2]);
|
month = Number(isoDateMatch[2]);
|
||||||
day = Number(isoDateMatch[3]);
|
day = Number(isoDateMatch[3]);
|
||||||
} else {
|
} else {
|
||||||
const monthMap = {
|
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 };
|
||||||
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})$/);
|
const localizedMatch = dateValue.match(/^(\d{1,2})\.\s*([A-ZÄÖÜ]{3})\.\s*(\d{4})$/);
|
||||||
|
if (!localizedMatch) return null;
|
||||||
if (!localizedMatch) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
day = Number(localizedMatch[1]);
|
day = Number(localizedMatch[1]);
|
||||||
month = monthMap[localizedMatch[2]];
|
month = monthMap[localizedMatch[2]];
|
||||||
year = Number(localizedMatch[3]);
|
year = Number(localizedMatch[3]);
|
||||||
|
if (!month) return null;
|
||||||
if (!month) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const timeMatch = String(event.time || '').match(/(\d{1,2}):(\d{2})/);
|
const timeMatch = String(event.time || '').match(/(\d{1,2}):(\d{2})/);
|
||||||
const hours = timeMatch ? Number(timeMatch[1]) : 0;
|
const hours = timeMatch ? Number(timeMatch[1]) : 0;
|
||||||
const minutes = timeMatch ? Number(timeMatch[2]) : 0;
|
const minutes = timeMatch ? Number(timeMatch[2]) : 0;
|
||||||
|
|
||||||
return new Date(year, month - 1, day, hours, minutes, 0, 0);
|
return new Date(year, month - 1, day, hours, minutes, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function isRegistrationClosedForEvent(event) {
|
function isRegistrationClosedForEvent(event) {
|
||||||
const eventDateTime = parseEventDateTime(event);
|
const eventDateTime = parseEventDateTime(event);
|
||||||
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
|
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const msUntilStart = eventDateTime.getTime() - Date.now();
|
const msUntilStart = eventDateTime.getTime() - Date.now();
|
||||||
const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
|
return msUntilStart <= 24 * 60 * 60 * 1000;
|
||||||
|
|
||||||
return msUntilStart <= twentyfourHoursInMs;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Abmeldefrist: 1 Tag (24 h) vor Eventstart.
|
|
||||||
function getDeregistrationInfo(event) {
|
function getDeregistrationInfo(event) {
|
||||||
const eventDateTime = parseEventDateTime(event);
|
const eventDateTime = parseEventDateTime(event);
|
||||||
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
|
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) return { daysLeft: null, isClosed: false };
|
||||||
return { daysLeft: null, isClosed: false };
|
|
||||||
}
|
|
||||||
|
|
||||||
const oneDayMs = 24 * 60 * 60 * 1000;
|
const oneDayMs = 24 * 60 * 60 * 1000;
|
||||||
const deadlineMs = eventDateTime.getTime() - oneDayMs;
|
const msUntilDeadline = (eventDateTime.getTime() - oneDayMs) - Date.now();
|
||||||
const msUntilDeadline = deadlineMs - Date.now();
|
if (msUntilDeadline <= 0) return { daysLeft: 0, isClosed: true };
|
||||||
|
return { daysLeft: Math.ceil(msUntilDeadline / oneDayMs), isClosed: false };
|
||||||
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) {
|
function isAddressVisibleWindow(event) {
|
||||||
const eventDateTime = parseEventDateTime(event);
|
const eventDateTime = parseEventDateTime(event);
|
||||||
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) {
|
if (!eventDateTime || Number.isNaN(eventDateTime.getTime())) return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const msUntilStart = eventDateTime.getTime() - Date.now();
|
const msUntilStart = eventDateTime.getTime() - Date.now();
|
||||||
const twentyfourHoursInMs = 24 * 60 * 60 * 1000;
|
return msUntilStart >= 0 && msUntilStart <= 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) {
|
function isEventOwnedByCurrentUser(event, user) {
|
||||||
if (!event || !user) {
|
if (!event || !user) return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const userEmail = String(user.email || '').trim().toLowerCase();
|
const userEmail = String(user.email || '').trim().toLowerCase();
|
||||||
const hostEmail = String(event.hostEmail || '').trim().toLowerCase();
|
const hostEmail = String(event.hostEmail || '').trim().toLowerCase();
|
||||||
|
if (userEmail && hostEmail) return userEmail === hostEmail;
|
||||||
if (userEmail && hostEmail) {
|
|
||||||
return userEmail === hostEmail;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fallback für ältere Datensätze ohne hostEmail.
|
|
||||||
const userFirstName = String(user.vorname || '').trim().toLowerCase();
|
const userFirstName = String(user.vorname || '').trim().toLowerCase();
|
||||||
const hostName = String(event.host?.name || '').trim().toLowerCase();
|
const hostName = String(event.host?.name || '').trim().toLowerCase();
|
||||||
return Boolean(userFirstName && hostName && userFirstName === hostName);
|
return Boolean(userFirstName && hostName && userFirstName === hostName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prüft, ob der aktuelle Benutzer bereits in der Teilnehmerliste des Events steht.
|
|
||||||
function isUserListedInEventParticipants(event, user) {
|
function isUserListedInEventParticipants(event, user) {
|
||||||
if (!event || !user || !Array.isArray(event.participants)) {
|
if (!event || !user || !Array.isArray(event.participants)) return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
const participantSet = new Set(
|
const participantSet = new Set(
|
||||||
event.participants
|
event.participants.map(name => String(name || '').trim().toLowerCase()).filter(Boolean)
|
||||||
.map(name => String(name || '').trim().toLowerCase())
|
|
||||||
.filter(Boolean)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
const userFirstName = String(user.vorname || '').trim().toLowerCase();
|
const userFirstName = String(user.vorname || '').trim().toLowerCase();
|
||||||
const userFullName = `${String(user.vorname || '').trim()} ${String(user.nachname || '').trim()}`
|
const userFullName = `${String(user.vorname || '').trim()} ${String(user.nachname || '').trim()}`.trim().toLowerCase();
|
||||||
.trim()
|
|
||||||
.toLowerCase();
|
|
||||||
|
|
||||||
return Boolean(
|
return Boolean(
|
||||||
(userFirstName && participantSet.has(userFirstName))
|
(userFirstName && participantSet.has(userFirstName))
|
||||||
|| (userFullName && participantSet.has(userFullName))
|
|| (userFullName && participantSet.has(userFullName))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function formatEventDate(dateString) {
|
||||||
|
if (/^\d{4}-\d{2}-\d{2}$/.test(dateString)) {
|
||||||
|
const [year, month, day] = dateString.split('-');
|
||||||
|
return `${Number(day)}. ${['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'][Number(month)-1]} ${year}`;
|
||||||
|
}
|
||||||
|
const labels = { 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' };
|
||||||
|
const match = dateString.match(/^(\d{1,2})\.\s*([A-ZÄÖÜ]{3})\.\s*(\d{4})$/);
|
||||||
|
if (!match) return dateString;
|
||||||
|
const monthLabel = labels[match[2]];
|
||||||
|
return monthLabel ? `${Number(match[1])}. ${monthLabel} ${match[3]}` : dateString;
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatEventTime(timeString) {
|
||||||
|
return timeString.replace('UHR', 'Uhr').trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
function getDietLabel(diet) {
|
||||||
|
const labels = { FLEISCH:'Fleisch', FISCH:'Fisch', VEGGIE:'Vegetarisch', VEGAN:'Vegan' };
|
||||||
|
return labels[diet] || diet;
|
||||||
|
}
|
||||||
|
|
||||||
// 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');
|
||||||
@@ -264,68 +208,17 @@
|
|||||||
if (event) {
|
if (event) {
|
||||||
renderDetailPage(event);
|
renderDetailPage(event);
|
||||||
} else {
|
} else {
|
||||||
detailContainer.innerHTML = "<h1>Event wurde nicht gefunden.</h1><a href='event_overview.html'>Zurück zur Übersicht</a>";
|
detailcontainer.innerHTML = "<h1>Event wurde nicht gefunden.</h1><a href='event_overview.html'>Zurück zur Übersicht</a>";
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Fehler beim Laden der Details:", error);
|
console.error("Fehler beim Laden der Details:", error);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format localized date token into full readable date.
|
|
||||||
function formatEventDate(dateString) {
|
|
||||||
const labels = {
|
|
||||||
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'
|
|
||||||
};
|
|
||||||
|
|
||||||
const match = dateString.match(/^(\d{1,2})\.\s*([A-ZÄÖÜ]{3})\.\s*(\d{4})$/);
|
|
||||||
if (!match) {
|
|
||||||
return dateString;
|
|
||||||
}
|
|
||||||
|
|
||||||
const day = Number(match[1]);
|
|
||||||
const monthLabel = labels[match[2]];
|
|
||||||
const year = match[3];
|
|
||||||
|
|
||||||
return monthLabel ? `${day}. ${monthLabel} ${year}` : dateString;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Normalize time casing for UI consistency.
|
|
||||||
function formatEventTime(timeString) {
|
|
||||||
return timeString.replace('UHR', 'Uhr').trim();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Map diet keys to readable labels while keeping unknown values untouched.
|
|
||||||
function getDietLabel(diet) {
|
|
||||||
const labels = {
|
|
||||||
FLEISCH: 'Fleisch',
|
|
||||||
FISCH: 'Fisch',
|
|
||||||
VEGGIE: 'Vegetarisch',
|
|
||||||
VEGAN: 'Vegan'
|
|
||||||
};
|
|
||||||
|
|
||||||
return labels[diet] || diet;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Compose and inject the full detail UI for a single event.
|
|
||||||
function renderDetailPage(event) {
|
function renderDetailPage(event) {
|
||||||
// Core display values and resilient fallbacks for optional data fields.
|
|
||||||
const displayDate = formatEventDate(event.date);
|
const displayDate = formatEventDate(event.date);
|
||||||
const displayTime = formatEventTime(event.time);
|
const displayTime = formatEventTime(event.time);
|
||||||
const dietLabel = getDietLabel(event.diet);
|
|
||||||
const eventCategory = event.category || 'EVENT';
|
const eventCategory = event.category || 'EVENT';
|
||||||
const hostName = event.host?.name || 'Host';
|
const hostName = event.host?.name || 'Host';
|
||||||
const hostInitial = (event.host?.initial || hostName.charAt(0) || 'H').charAt(0).toUpperCase();
|
|
||||||
const hostMessage = Array.isArray(event.hostMessage) && event.hostMessage.length > 0
|
const hostMessage = Array.isArray(event.hostMessage) && event.hostMessage.length > 0
|
||||||
? event.hostMessage
|
? event.hostMessage
|
||||||
: ['Der Host hat für dieses Event noch keine Nachricht hinterlegt.'];
|
: ['Der Host hat für dieses Event noch keine Nachricht hinterlegt.'];
|
||||||
@@ -333,269 +226,236 @@
|
|||||||
? event.menu
|
? event.menu
|
||||||
: ['Menü wird in Kürze 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 registrationMap = getRegistrationMap();
|
const registrationMap = getRegistrationMap();
|
||||||
const participants = getResolvedParticipants(event, registrationMap);
|
const participants = getResolvedParticipants(event, registrationMap);
|
||||||
const galleryImages = Array.isArray(event.gallery)
|
const isOwnEvent = isEventOwnedByCurrentUser(event, currentUser);
|
||||||
? event.gallery.filter(Boolean)
|
const participantNamesForView = participants
|
||||||
: [];
|
.map(name => getParticipantNameForViewer(name, isOwnEvent))
|
||||||
|
.filter(Boolean);
|
||||||
|
const galleryImages = Array.isArray(event.gallery) ? event.gallery.filter(Boolean) : [];
|
||||||
const galleryMarkup = galleryImages.length > 0
|
const galleryMarkup = galleryImages.length > 0
|
||||||
? `
|
? `<div class="detail-gallery detail-gallery-large">
|
||||||
<div class="detail-gallery detail-gallery-large">
|
${galleryImages.slice(0, 9).map((img, index) => `
|
||||||
${galleryImages.slice(0, 9).map((img, index) => `
|
<button class="detail-gallery-item" type="button" aria-label="Bild ${index + 1} gross anzeigen" data-fullsrc="${img}">
|
||||||
<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">
|
||||||
<img src="${img}" alt="${event.title} Bild ${index + 1}" class="detail-gallery-image">
|
</button>
|
||||||
</button>
|
`).join('')}
|
||||||
`).join('')}
|
</div>` : '';
|
||||||
</div>
|
|
||||||
`
|
const visibleParticipants = participantNamesForView.slice(0, 6);
|
||||||
: '';
|
const remainingParticipants = Math.max(0, participantNamesForView.length - visibleParticipants.length);
|
||||||
const visibleParticipants = participants.slice(0, 6);
|
|
||||||
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 isRegistrationClosed = isRegistrationClosedForEvent(event);
|
||||||
const isOwnEvent = isEventOwnedByCurrentUser(event, currentUser);
|
|
||||||
const deregInfo = getDeregistrationInfo(event);
|
const deregInfo = getDeregistrationInfo(event);
|
||||||
const userRegistrations = currentUser?.email && Array.isArray(registrationMap[currentUser.email])
|
const userRegistrations = currentUser?.email && Array.isArray(registrationMap[currentUser.email])
|
||||||
? registrationMap[currentUser.email].map(id => Number(id))
|
? registrationMap[currentUser.email].map(id => Number(id)) : [];
|
||||||
: [];
|
|
||||||
const isRegistered = userRegistrations.includes(Number(event.id));
|
const isRegistered = userRegistrations.includes(Number(event.id));
|
||||||
const isListedParticipant = isUserListedInEventParticipants(event, currentUser);
|
const isListedParticipant = isUserListedInEventParticipants(event, currentUser);
|
||||||
const hasAddressAccess = isRegistered || isListedParticipant;
|
const hasAddressAccess = isRegistered || isListedParticipant;
|
||||||
const actionButtonLabel = isOwnEvent
|
|
||||||
? 'Dein Event!'
|
const actionButtonLabel = isOwnEvent ? 'Dein Event!'
|
||||||
: !currentUser
|
: !currentUser ? 'Einloggen'
|
||||||
? 'Einloggen'
|
: isRegistered ? (deregInfo.isClosed ? 'Abmeldung geschlossen' : 'Abmelden')
|
||||||
: isRegistered
|
: isRegistrationClosed ? 'Anmeldung geschlossen'
|
||||||
? (deregInfo.isClosed ? 'Abmeldung geschlossen' : 'Abmelden')
|
: 'Anmelden';
|
||||||
: isRegistrationClosed
|
|
||||||
? 'Anmeldung geschlossen'
|
|
||||||
: 'Anmelden';
|
|
||||||
const actionButtonDisabled = isOwnEvent
|
const actionButtonDisabled = isOwnEvent
|
||||||
|| (!isRegistered && (isFull || isRegistrationClosed))
|
|| (!isRegistered && (isFull || isRegistrationClosed))
|
||||||
|| (isRegistered && deregInfo.isClosed);
|
|| (isRegistered && deregInfo.isClosed);
|
||||||
const actionButtonVariantClass = isOwnEvent
|
const actionButtonVariantClass = isOwnEvent ? ' button-primary-eigener-event'
|
||||||
? ' button-primary'
|
: isRegistered ? ' button-primary-abmelden '
|
||||||
: isRegistered
|
: ' button-primary ';
|
||||||
? ' button-primary-abmelden '
|
|
||||||
: isRegistrationClosed
|
|
||||||
? ' button-primary-abmelden '
|
|
||||||
: ' button-primary ';
|
|
||||||
const shouldRevealAddress = Boolean(event.address) && isAddressVisibleWindow(event) && hasAddressAccess;
|
const shouldRevealAddress = Boolean(event.address) && isAddressVisibleWindow(event) && hasAddressAccess;
|
||||||
const addressPanelMarkup = shouldRevealAddress
|
const addressPanelMarkup = shouldRevealAddress
|
||||||
? `
|
? `<article class="detail-panel"><h2 class="detail-section-title">Adresse</h2><p>${event.address}</p></article>`
|
||||||
<article class="detail-panel">
|
: `<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>`;
|
||||||
<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>`,
|
||||||
...event.diet.split(', ').filter(d => d.trim() && d !== 'Keine Angabe').map(d => `<span class="event-tag">${getDietLabel(d.trim())}</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:
|
detailcontainer.innerHTML = `
|
||||||
// hero metadata, host card, menu, participants, gallery and sticky action bar.
|
<section class="detail-hero">
|
||||||
detailContainer.innerHTML = `
|
<div class="detail-top-row">
|
||||||
<button type="button" class="btn-back-to-overview" data-navigate-back>Zurück</button>
|
<span class="event-location"><img src="${locationIconPath}" class="icon" alt="">${event.location}</span>
|
||||||
|
<span class="event-date-time"><img src="${calendarIconPath}" class="icon" alt=""> ${displayDate} | ${displayTime}</span>
|
||||||
<section class="detail-hero">
|
<span class="event-date-time"><img src="${gastIconPath}" class="icon" alt="">${confirmedGuests}/${totalGuests}</span>
|
||||||
<div class="detail-top-row">
|
|
||||||
<span class="event-location">
|
|
||||||
<img src="${locationIconPath}" class="icon" alt="">${event.location}
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
<h1 class="detail-title">${event.title}</h1>
|
|
||||||
<div class="event-meta-row detail-chip-row">
|
|
||||||
${detailChips}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="detail-content-grid">
|
|
||||||
<div class="detail-side-stack">
|
|
||||||
<article class="detail-panel">
|
|
||||||
<header class="host-header">
|
|
||||||
<span class="host-role">Host</span>
|
|
||||||
<span class="host-name">${hostName}</span>
|
|
||||||
</header>
|
|
||||||
${hostMessage.map(paragraph => `<p>${paragraph}</p>`).join('')}
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<article class="detail-panel">
|
|
||||||
<h2 class="detail-section-title">Menu</h2>
|
|
||||||
<ul class="detail-menu-list">
|
|
||||||
${menuItems.map(item => `<li>${item}</li>`).join('')}
|
|
||||||
</ul>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
<article class="detail-panel">
|
|
||||||
<div class="detail-participants-head">
|
|
||||||
<h2 class="detail-section-title">Teilnehmer</h2>
|
|
||||||
<button type="button" class="detail-participants-link" data-show-all-participants>Alle ansehen</button>
|
|
||||||
</div>
|
|
||||||
<div class="detail-avatar-row" data-participants-row>
|
|
||||||
${visibleParticipants.map(name => `<span class="participant-avatar">${name.charAt(0).toUpperCase()}</span>`).join('')}
|
|
||||||
${remainingParticipants > 0 ? `<span class="participant-more">+${remainingParticipants}</span>` : ''}
|
|
||||||
</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>
|
|
||||||
|
|
||||||
${addressPanelMarkup}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
${galleryMarkup}
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="detail-action-bar">
|
|
||||||
<div class="detail-action-summary">
|
|
||||||
<small class="detail-action-meta">
|
|
||||||
<span class="event-location detail-action-location">
|
|
||||||
<img src="${locationIconPath}" alt="">
|
|
||||||
${event.location}
|
|
||||||
</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>
|
|
||||||
<strong>${event.title}</strong>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="detail-action-buttons">
|
|
||||||
<span class="detail-spots-pill${isFull ? ' detail-spots-pill-full' : ''}">
|
|
||||||
${isFull ? 'AUSGEBUCHT' : `${freePlaces} Plätze frei`}
|
|
||||||
</span>
|
|
||||||
<div class="detail-action-btn-wrap">
|
|
||||||
<button class="detail-primary-btn${actionButtonVariantClass}" type="button" data-register-button ${actionButtonDisabled ? 'disabled' : ''}>
|
|
||||||
${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>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<div class="detail-lightbox" aria-hidden="true">
|
|
||||||
<div class="detail-lightbox-backdrop" data-close-lightbox="true"></div>
|
|
||||||
<figure class="detail-lightbox-content" role="dialog" aria-modal="true" aria-label="Bildansicht">
|
|
||||||
<button class="detail-lightbox-close" type="button" aria-label="Schliessen">×</button>
|
|
||||||
<img class="detail-lightbox-image" src="" alt="Grossansicht Eventbild">
|
|
||||||
</figure>
|
|
||||||
</div>
|
</div>
|
||||||
|
<h1 class="detail-title">${event.title}</h1>
|
||||||
|
<div class="event-meta-row detail-chip-row">${detailChips}</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="detail-content-grid">
|
||||||
|
<div class="detail-side-stack">
|
||||||
|
<article class="detail-panel">
|
||||||
|
<header class="host-header">
|
||||||
|
<span class="host-role">Host</span>
|
||||||
|
<span class="host-name">${hostName}</span>
|
||||||
|
</header>
|
||||||
|
${hostMessage.map(paragraph => `<p>${paragraph}</p>`).join('')}
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<article class="detail-panel">
|
||||||
|
<h2 class="detail-section-title">Menu</h2>
|
||||||
|
<ul class="detail-menu-list">
|
||||||
|
${menuItems.map(item => `<li>${item}</li>`).join('')}
|
||||||
|
</ul>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<article class="detail-panel">
|
||||||
|
<div class="detail-participants-head">
|
||||||
|
<h2 class="detail-section-title">Teilnehmer</h2>
|
||||||
|
<button type="button" class="detail-participants-link" data-show-all-participants>Alle ansehen</button>
|
||||||
|
</div>
|
||||||
|
<div class="detail-avatar-row" data-participants-row>
|
||||||
|
${visibleParticipants.map(name => `<span class="participant-avatar">${name.charAt(0).toUpperCase()}</span>`).join('')}
|
||||||
|
${remainingParticipants > 0 ? `<span class="participant-more">+${remainingParticipants}</span>` : ''}
|
||||||
|
</div>
|
||||||
|
<div class="detail-participants-full hidden" data-participants-full>
|
||||||
|
${participantNamesForView.map(name => `
|
||||||
|
<div class="detail-participant-item">
|
||||||
|
<span class="participant-name">${name}</span>
|
||||||
|
</div>
|
||||||
|
`).join('')}
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
${addressPanelMarkup}
|
||||||
|
</div>
|
||||||
|
${galleryMarkup}
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="detail-action-bar">
|
||||||
|
<div class="detail-action-summary">
|
||||||
|
<small class="detail-action-meta">
|
||||||
|
<span class="event-location detail-action-location"><img src="${locationIconPath}" alt="">${event.location}</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>
|
||||||
|
<strong>${event.title}</strong>
|
||||||
|
</div>
|
||||||
|
<div class="detail-action-btn-wrap">
|
||||||
|
${isFull ? `
|
||||||
|
<button class="detail-primary-btn detail-spots-pill-full" type="button" disabled>Ausgebucht</button>
|
||||||
|
` : `
|
||||||
|
<button class="detail-primary-btn${actionButtonVariantClass}" type="button" data-register-button ${actionButtonDisabled ? 'disabled' : ''}>
|
||||||
|
${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>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div class="detail-lightbox" aria-hidden="true">
|
||||||
|
<div class="detail-lightbox-backdrop" data-close-lightbox="true"></div>
|
||||||
|
<figure class="detail-lightbox-content" role="dialog" aria-modal="true" aria-label="Bildansicht">
|
||||||
|
<button class="detail-lightbox-close" type="button" aria-label="Schliessen">×</button>
|
||||||
|
<img class="detail-lightbox-image" src="" alt="Grossansicht Eventbild">
|
||||||
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
// ---------------------------------------------------------
|
// DOM references after render
|
||||||
// Lightbox behavior for gallery images:
|
const lightbox = detailcontainer.querySelector('.detail-lightbox');
|
||||||
// open on image click, close via backdrop, close button or ESC.
|
const lightboxImage = detailcontainer.querySelector('.detail-lightbox-image');
|
||||||
// ---------------------------------------------------------
|
const lightboxClose = detailcontainer.querySelector('.detail-lightbox-close');
|
||||||
const backButton = detailContainer.querySelector('[data-navigate-back]');
|
const galleryButtons = detailcontainer.querySelectorAll('.detail-gallery-item');
|
||||||
const lightbox = detailContainer.querySelector('.detail-lightbox');
|
const registerButton = detailcontainer.querySelector('[data-register-button]');
|
||||||
const lightboxImage = detailContainer.querySelector('.detail-lightbox-image');
|
|
||||||
const lightboxClose = detailContainer.querySelector('.detail-lightbox-close');
|
|
||||||
const galleryButtons = detailContainer.querySelectorAll('.detail-gallery-item');
|
|
||||||
const registerButton = detailContainer.querySelector('[data-register-button]');
|
|
||||||
|
|
||||||
// Harte Absicherung: Eigene Events sind auf der Detailseite immer deaktiviert.
|
// Eigene Events immer deaktiviert
|
||||||
if (registerButton && isOwnEvent) {
|
if (registerButton && isOwnEvent) {
|
||||||
registerButton.disabled = true;
|
registerButton.disabled = true;
|
||||||
registerButton.textContent = 'Dein Event!';
|
registerButton.textContent = 'Dein Event!';
|
||||||
registerButton.setAttribute('aria-disabled', 'true');
|
registerButton.setAttribute('aria-disabled', 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Anmeldung toggeln und im lokalen Registrierungs-Store persistieren.
|
// Anmeldung / Abmeldung mit Bestätigungs-Modal
|
||||||
if (registerButton) {
|
if (registerButton) {
|
||||||
registerButton.addEventListener('click', () => {
|
registerButton.addEventListener('click', () => {
|
||||||
if (isOwnEvent) {
|
if (isOwnEvent) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!currentUser || !currentUser.email) {
|
if (!currentUser || !currentUser.email) {
|
||||||
window.location.href = 'login.html';
|
window.location.href = 'login.html';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const nextRegistrationMap = getRegistrationMap();
|
const alreadyRegistered = (() => {
|
||||||
const currentList = Array.isArray(nextRegistrationMap[currentUser.email])
|
const map = getRegistrationMap();
|
||||||
? nextRegistrationMap[currentUser.email].map(id => Number(id))
|
const ids = Array.isArray(map[currentUser.email])
|
||||||
: [];
|
? map[currentUser.email].map(id => Number(id)) : [];
|
||||||
const registrationSet = new Set(currentList);
|
return ids.includes(Number(event.id));
|
||||||
|
})();
|
||||||
|
|
||||||
if (registrationSet.has(Number(event.id))) {
|
if (alreadyRegistered) {
|
||||||
registrationSet.delete(Number(event.id));
|
const modal = document.getElementById('unregister-confirm-modal');
|
||||||
|
if (modal) modal.classList.add('show');
|
||||||
|
|
||||||
|
document.getElementById('confirm-unregister-btn').onclick = () => {
|
||||||
|
modal.classList.remove('show');
|
||||||
|
const map = getRegistrationMap();
|
||||||
|
const ids = new Set((map[currentUser.email] || []).map(id => Number(id)));
|
||||||
|
ids.delete(Number(event.id));
|
||||||
|
map[currentUser.email] = Array.from(ids);
|
||||||
|
setRegistrationMap(map);
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
renderDetailPage(event);
|
||||||
|
};
|
||||||
|
|
||||||
|
document.getElementById('unregister-modal-close').onclick = () => modal.classList.remove('show');
|
||||||
|
document.getElementById('unregister-modal-cancel').onclick = () => modal.classList.remove('show');
|
||||||
|
modal.addEventListener('click', e => { if (e.target === modal) modal.classList.remove('show'); });
|
||||||
|
|
||||||
// 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) {
|
} else if (!isFull && !isRegistrationClosed) {
|
||||||
registrationSet.add(Number(event.id));
|
const modal = document.getElementById('register-confirm-modal');
|
||||||
|
if (modal) modal.classList.add('show');
|
||||||
|
|
||||||
// Snackbar: Feedback bei Anmeldung.
|
document.getElementById('confirm-register-btn').onclick = () => {
|
||||||
const snackbar = document.getElementById('snackbar');
|
modal.classList.remove('show');
|
||||||
if (snackbar) {
|
const map = getRegistrationMap();
|
||||||
snackbar.textContent = 'Du wurdest erfolgreich angemeldet.';
|
const ids = new Set((map[currentUser.email] || []).map(id => Number(id)));
|
||||||
snackbar.classList.add('snackbar--visible');
|
ids.add(Number(event.id));
|
||||||
setTimeout(() => snackbar.classList.remove('snackbar--visible'), 3000);
|
map[currentUser.email] = Array.from(ids);
|
||||||
}
|
setRegistrationMap(map);
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
renderDetailPage(event);
|
||||||
|
};
|
||||||
|
|
||||||
|
document.getElementById('register-modal-close').onclick = () => modal.classList.remove('show');
|
||||||
|
document.getElementById('register-modal-cancel').onclick = () => modal.classList.remove('show');
|
||||||
|
modal.addEventListener('click', e => { if (e.target === modal) modal.classList.remove('show'); });
|
||||||
}
|
}
|
||||||
|
|
||||||
nextRegistrationMap[currentUser.email] = Array.from(registrationSet);
|
|
||||||
setRegistrationMap(nextRegistrationMap);
|
|
||||||
|
|
||||||
// Re-Render aktualisiert Buttonzustand und CTA ohne Seitenreload.
|
|
||||||
renderDetailPage(event);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// "Alle ansehen": Teilnehmerliste aufklappen / zuklappen.
|
// "Alle ansehen": Teilnehmerliste aufklappen / zuklappen
|
||||||
const showAllBtn = detailContainer.querySelector('[data-show-all-participants]');
|
const showAllBtn = detailcontainer.querySelector('[data-show-all-participants]');
|
||||||
const avatarRow = detailContainer.querySelector('[data-participants-row]');
|
const avatarRow = detailcontainer.querySelector('[data-participants-row]');
|
||||||
const fullList = detailContainer.querySelector('[data-participants-full]');
|
const fullList = detailcontainer.querySelector('[data-participants-full]');
|
||||||
|
|
||||||
if (showAllBtn && avatarRow && fullList) {
|
if (showAllBtn && avatarRow && fullList) {
|
||||||
showAllBtn.addEventListener('click', () => {
|
showAllBtn.addEventListener('click', () => {
|
||||||
@@ -606,32 +466,24 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Central close helper to keep all close paths consistent.
|
// Lightbox
|
||||||
function closeLightbox() {
|
function closeLightbox() {
|
||||||
if (!lightbox) {
|
if (!lightbox) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
lightbox.classList.remove('is-open');
|
lightbox.classList.remove('is-open');
|
||||||
lightbox.setAttribute('aria-hidden', 'true');
|
lightbox.setAttribute('aria-hidden', 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lightbox && lightboxImage) {
|
if (lightbox && lightboxImage) {
|
||||||
// Open with selected image source.
|
|
||||||
galleryButtons.forEach(button => {
|
galleryButtons.forEach(button => {
|
||||||
button.addEventListener('click', () => {
|
button.addEventListener('click', () => {
|
||||||
const imageSrc = button.getAttribute('data-fullsrc');
|
const imageSrc = button.getAttribute('data-fullsrc');
|
||||||
if (!imageSrc) {
|
if (!imageSrc) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
lightboxImage.src = imageSrc;
|
lightboxImage.src = imageSrc;
|
||||||
lightbox.classList.add('is-open');
|
lightbox.classList.add('is-open');
|
||||||
lightbox.setAttribute('aria-hidden', 'false');
|
lightbox.setAttribute('aria-hidden', 'false');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Close when user clicks on backdrop.
|
|
||||||
lightbox.addEventListener('click', event => {
|
lightbox.addEventListener('click', event => {
|
||||||
const target = event.target;
|
const target = event.target;
|
||||||
if (target instanceof HTMLElement && target.hasAttribute('data-close-lightbox')) {
|
if (target instanceof HTMLElement && target.hasAttribute('data-close-lightbox')) {
|
||||||
@@ -639,22 +491,11 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Close via dedicated icon/button.
|
|
||||||
lightboxClose?.addEventListener('click', closeLightbox);
|
lightboxClose?.addEventListener('click', closeLightbox);
|
||||||
|
|
||||||
// Close with keyboard for accessibility.
|
|
||||||
document.addEventListener('keydown', event => {
|
document.addEventListener('keydown', event => {
|
||||||
if (event.key === 'Escape') {
|
if (event.key === 'Escape') closeLightbox();
|
||||||
closeLightbox();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Back button navigation: returns to event overview page.
|
|
||||||
if (backButton) {
|
|
||||||
backButton.addEventListener('click', () => {
|
|
||||||
window.location.href = 'event_overview.html';
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
+55
-22
@@ -36,6 +36,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getInfoModalShownKeyForUser(user) {
|
||||||
|
const email = String(user?.email || '').trim().toLowerCase();
|
||||||
|
return email ? `${INFO_MODAL_SHOWN_KEY}:${email}` : INFO_MODAL_SHOWN_KEY;
|
||||||
|
}
|
||||||
|
|
||||||
// Prüft, ob ein Event dem aktuellen Benutzer gehört.
|
// Prüft, ob ein Event dem aktuellen Benutzer gehört.
|
||||||
function isEventOwnedByCurrentUser(event, user) {
|
function isEventOwnedByCurrentUser(event, user) {
|
||||||
if (!event || !user) {
|
if (!event || !user) {
|
||||||
@@ -91,8 +96,9 @@
|
|||||||
|
|
||||||
const firstName = String(user.vorname || '').trim();
|
const firstName = String(user.vorname || '').trim();
|
||||||
const lastName = String(user.nachname || '').trim();
|
const lastName = String(user.nachname || '').trim();
|
||||||
|
const fullName = `${firstName} ${lastName}`.trim();
|
||||||
|
|
||||||
return (firstName || `${firstName} ${lastName}`.trim() || String(user.email || '').trim()).trim();
|
return (fullName || firstName || String(user.email || '').trim()).trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getResolvedParticipants(event, registrationMap) {
|
function getResolvedParticipants(event, registrationMap) {
|
||||||
@@ -530,29 +536,55 @@
|
|||||||
: [];
|
: [];
|
||||||
const idSet = new Set(currentIds);
|
const idSet = new Set(currentIds);
|
||||||
|
|
||||||
// Abmeldung: Benutzer vom Event entfernen und Snackbar anzeigen.
|
// Anmelde-Modal öffnen
|
||||||
if (action === 'unregister') {
|
if (action === 'register' && !isFull && !isRegistrationClosed) {
|
||||||
idSet.delete(Number(event.id));
|
const modal = document.getElementById('register-confirm-modal');
|
||||||
const snackbar = document.getElementById('snackbar');
|
if (modal) {
|
||||||
if (snackbar) {
|
modal.classList.add('show');
|
||||||
snackbar.textContent = 'Du wurdest erfolgreich abgemeldet.';
|
document.getElementById('confirm-register-btn').onclick = () => {
|
||||||
snackbar.classList.add('snackbar--danger', 'snackbar--visible');
|
modal.classList.remove('show');
|
||||||
setTimeout(() => {
|
const map = getRegistrationMap();
|
||||||
snackbar.classList.remove('snackbar--visible');
|
const ids = new Set((map[currentUser.email] || []).map(id => Number(id)));
|
||||||
setTimeout(() => snackbar.classList.remove('snackbar--danger'), 400);
|
ids.add(Number(event.id));
|
||||||
}, 3000);
|
map[currentUser.email] = Array.from(ids);
|
||||||
|
setRegistrationMap(map);
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
applyFilters();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Anmeldung: Benutzer zum Event hinzufügen und Snackbar anzeigen.
|
// Abmelde-Modal öffnen
|
||||||
if (action === 'register' && !isFull && !isRegistrationClosed) {
|
if (action === 'unregister') {
|
||||||
idSet.add(Number(event.id));
|
const modal = document.getElementById('unregister-confirm-modal');
|
||||||
const snackbar = document.getElementById('snackbar');
|
if (modal) {
|
||||||
if (snackbar) {
|
modal.classList.add('show');
|
||||||
snackbar.textContent = 'Du wurdest erfolgreich angemeldet.';
|
document.getElementById('confirm-unregister-btn').onclick = () => {
|
||||||
snackbar.classList.add('snackbar--visible');
|
modal.classList.remove('show');
|
||||||
setTimeout(() => snackbar.classList.remove('snackbar--visible'), 3000);
|
const map = getRegistrationMap();
|
||||||
|
const ids = new Set((map[currentUser.email] || []).map(id => Number(id)));
|
||||||
|
ids.delete(Number(event.id));
|
||||||
|
map[currentUser.email] = Array.from(ids);
|
||||||
|
setRegistrationMap(map);
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
applyFilters();
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
nextRegistrationMap[currentUser.email] = Array.from(idSet);
|
nextRegistrationMap[currentUser.email] = Array.from(idSet);
|
||||||
@@ -640,10 +672,11 @@
|
|||||||
|
|
||||||
// Auto-open info modal on first login
|
// Auto-open info modal on first login
|
||||||
if (currentUser && infoModal) {
|
if (currentUser && infoModal) {
|
||||||
const hasShownInfoModal = localStorage.getItem(INFO_MODAL_SHOWN_KEY);
|
const userInfoModalKey = getInfoModalShownKeyForUser(currentUser);
|
||||||
|
const hasShownInfoModal = localStorage.getItem(userInfoModalKey);
|
||||||
if (!hasShownInfoModal) {
|
if (!hasShownInfoModal) {
|
||||||
infoModal.classList.add('show');
|
infoModal.classList.add('show');
|
||||||
localStorage.setItem(INFO_MODAL_SHOWN_KEY, 'true');
|
localStorage.setItem(userInfoModalKey, 'true');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
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');
|
const dotscontainer = document.querySelector('.gallery_dots');
|
||||||
|
|
||||||
// Nur ausführen, wenn die Galerie auf der Seite vorhanden ist.
|
// Nur ausführen, wenn die Galerie auf der Seite vorhanden ist.
|
||||||
if (carouselTrack) {
|
if (carouselTrack) {
|
||||||
@@ -22,8 +22,8 @@ if (carouselTrack) {
|
|||||||
var dots = [];
|
var dots = [];
|
||||||
|
|
||||||
function buildDots() {
|
function buildDots() {
|
||||||
if (!dotsContainer) return;
|
if (!dotscontainer) return;
|
||||||
dotsContainer.innerHTML = '';
|
dotscontainer.innerHTML = '';
|
||||||
dots = [];
|
dots = [];
|
||||||
for (var i = 0; i < pageCount; i++) {
|
for (var i = 0; i < pageCount; i++) {
|
||||||
var dot = document.createElement('button');
|
var dot = document.createElement('button');
|
||||||
@@ -36,7 +36,7 @@ if (carouselTrack) {
|
|||||||
dot.addEventListener('click', function() {
|
dot.addEventListener('click', function() {
|
||||||
goToPage(parseInt(this.dataset.page));
|
goToPage(parseInt(this.dataset.page));
|
||||||
});
|
});
|
||||||
dotsContainer.appendChild(dot);
|
dotscontainer.appendChild(dot);
|
||||||
dots.push(dot);
|
dots.push(dot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+39
-34
@@ -50,69 +50,74 @@ function createFallbackUser(email, passwort) {
|
|||||||
// Validierungsfunktion
|
// Validierungsfunktion
|
||||||
function validateForm(event) {
|
function validateForm(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
let isValid = true;
|
|
||||||
|
|
||||||
// Email-Validierung
|
// Wir zeigen bewusst immer nur den ersten Fehler im Formular an.
|
||||||
|
// So bleibt der Ablauf ruhig und führt den Nutzer Feld für Feld.
|
||||||
const emailValue = emailInput.value.trim();
|
const emailValue = emailInput.value.trim();
|
||||||
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||||
const emailGroup = emailInput.parentElement;
|
const emailGroup = emailInput.parentElement;
|
||||||
|
const passwortGroup = passwortInput.parentElement;
|
||||||
|
|
||||||
|
emailGroup.classList.remove('has-error');
|
||||||
|
passwortGroup.classList.remove('has-error');
|
||||||
|
|
||||||
if (!emailValue) {
|
if (!emailValue) {
|
||||||
emailGroup.classList.add('has-error');
|
emailGroup.classList.add('has-error');
|
||||||
emailError.textContent = 'Bitte gib deine E-Mail Adresse ein.';
|
emailError.textContent = 'Bitte gib deine E-Mail Adresse ein.';
|
||||||
isValid = false;
|
emailInput.focus();
|
||||||
} else if (!emailRegex.test(emailValue)) {
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!emailRegex.test(emailValue)) {
|
||||||
emailGroup.classList.add('has-error');
|
emailGroup.classList.add('has-error');
|
||||||
emailError.textContent = 'Bitte gib eine gültige E-Mail Adresse ein.';
|
emailError.textContent = 'Bitte gib eine gültige E-Mail Adresse ein.';
|
||||||
isValid = false;
|
emailInput.focus();
|
||||||
} else {
|
return;
|
||||||
emailGroup.classList.remove('has-error');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Passwort-Validierung
|
// Passwort-Validierung
|
||||||
const passwortValue = passwortInput.value;
|
const passwortValue = passwortInput.value;
|
||||||
const passwortGroup = passwortInput.parentElement;
|
|
||||||
|
|
||||||
if (!passwortValue) {
|
if (!passwortValue) {
|
||||||
passwortGroup.classList.add('has-error');
|
passwortGroup.classList.add('has-error');
|
||||||
passwortError.textContent = 'Bitte gib dein Passwort ein.';
|
passwortError.textContent = 'Bitte gib dein Passwort ein.';
|
||||||
isValid = false;
|
passwortInput.focus();
|
||||||
} else if (passwortValue.length < 6) {
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (passwortValue.length < 6) {
|
||||||
passwortGroup.classList.add('has-error');
|
passwortGroup.classList.add('has-error');
|
||||||
passwortError.textContent = 'Dein Passwort ist zu kurz. Bitte überprüfe dein Passwort.';
|
passwortError.textContent = 'Dein Passwort ist zu kurz. Bitte überprüfe dein Passwort.';
|
||||||
isValid = false;
|
passwortInput.focus();
|
||||||
} else {
|
return;
|
||||||
passwortGroup.classList.remove('has-error');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wenn alle Validierungen bestanden, prüfen wir:
|
// Wenn alle Validierungen bestanden, prüfen wir:
|
||||||
// 1) gibt es den Benutzer schon?
|
// 1) gibt es den Benutzer schon?
|
||||||
// 2) ist das Passwort korrekt?
|
// 2) ist das Passwort korrekt?
|
||||||
// Danach speichern wir die aktive Session.
|
// Danach speichern wir die aktive Session.
|
||||||
if (isValid) {
|
const users = getStoredUsers();
|
||||||
const users = getStoredUsers();
|
const matchedUser = users.find(user => user.email?.toLowerCase() === emailValue.toLowerCase());
|
||||||
const matchedUser = users.find(user => user.email?.toLowerCase() === emailValue.toLowerCase());
|
|
||||||
|
|
||||||
if (matchedUser && matchedUser.passwort !== passwortValue) {
|
if (matchedUser && matchedUser.passwort !== passwortValue) {
|
||||||
passwortGroup.classList.add('has-error');
|
passwortGroup.classList.add('has-error');
|
||||||
passwortError.textContent = 'Das Passwort ist nicht korrekt.';
|
passwortError.textContent = 'Das Passwort ist nicht korrekt.';
|
||||||
return;
|
passwortInput.focus();
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const userToLogin = matchedUser || createFallbackUser(emailValue, passwortValue);
|
const userToLogin = matchedUser || createFallbackUser(emailValue, passwortValue);
|
||||||
setCurrentUser(userToLogin);
|
setCurrentUser(userToLogin);
|
||||||
|
|
||||||
// Snackbar anzeigen und dann zur Event-Übersicht weiterleiten.
|
// Snackbar anzeigen und dann zur Event-Übersicht weiterleiten.
|
||||||
var snackbar = document.getElementById('snackbar');
|
var snackbar = document.getElementById('snackbar');
|
||||||
if (snackbar) {
|
if (snackbar) {
|
||||||
snackbar.classList.add('snackbar--visible');
|
snackbar.classList.add('snackbar--visible');
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.location.href = 'event_overview.html';
|
|
||||||
}, 2000);
|
|
||||||
} else {
|
|
||||||
window.location.href = 'event_overview.html';
|
window.location.href = 'event_overview.html';
|
||||||
}
|
}, 2000);
|
||||||
|
} else {
|
||||||
|
window.location.href = 'event_overview.html';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,4 +137,4 @@ passwortInput.addEventListener('input', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Form Submit Event
|
// Form Submit Event
|
||||||
loginForm.addEventListener('submit', validateForm);
|
loginForm.addEventListener('submit', validateForm);
|
||||||
+42
-24
@@ -14,7 +14,9 @@
|
|||||||
const profileTabPanels = Array.from(document.querySelectorAll('[data-profile-panel]'));
|
const profileTabPanels = Array.from(document.querySelectorAll('[data-profile-panel]'));
|
||||||
|
|
||||||
const myEventsCount = document.getElementById('my-events-count');
|
const myEventsCount = document.getElementById('my-events-count');
|
||||||
|
const myEventsBtnCount = document.getElementById('btn-my-events-count');
|
||||||
const myRegistrationsCount = document.getElementById('my-registrations-count');
|
const myRegistrationsCount = document.getElementById('my-registrations-count');
|
||||||
|
const myRegistrationsBtnCount = document.getElementById('btn-my-registrations-count');
|
||||||
const myEventsList = document.getElementById('my-events-list');
|
const myEventsList = document.getElementById('my-events-list');
|
||||||
const myRegistrationsList = document.getElementById('my-registrations-list');
|
const myRegistrationsList = document.getElementById('my-registrations-list');
|
||||||
|
|
||||||
@@ -459,28 +461,37 @@
|
|||||||
return events.filter(event => idSet.has(Number(event.id)));
|
return events.filter(event => idSet.has(Number(event.id)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Rendert gehostete Events inkl. Zähler.
|
// Rendert angemeldete Events inkl. Zähler.
|
||||||
function renderMyEvents(events, user) {
|
function renderMyEvents(events, user) {
|
||||||
const hostedEvents = getMyHostedEvents(events, user);
|
const hostedEvents = getMyHostedEvents(events, user);
|
||||||
myEventsCount.textContent = String(hostedEvents.length);
|
const count = hostedEvents.length;
|
||||||
renderEventCards(myEventsList, hostedEvents, {
|
|
||||||
title: 'Noch kein eigenes Event',
|
myEventsCount.textContent = String(count);
|
||||||
text: 'Starte dein erstes Dinner und lade die Community an deinen Tisch ein.',
|
if (myEventsBtnCount) myEventsBtnCount.textContent = String(count);
|
||||||
buttonLabel: 'Event erstellen',
|
|
||||||
href: 'event_create.html'
|
renderEventCards(myEventsList, hostedEvents, {
|
||||||
}, 'hosting');
|
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.
|
// Rendert angemeldete Events inkl. Zähler.
|
||||||
function renderMyRegistrations(events, user) {
|
function renderMyRegistrations(events, user) {
|
||||||
const registeredEvents = getMyRegisteredEvents(events, user);
|
const registeredEvents = getMyRegisteredEvents(events, user);
|
||||||
myRegistrationsCount.textContent = String(registeredEvents.length);
|
|
||||||
renderEventCards(myRegistrationsList, registeredEvents, {
|
const count = registeredEvents.length;
|
||||||
title: 'Noch keine Anmeldungen',
|
|
||||||
text: 'Entdecke spannende Dinner in deiner Naehe und melde dich direkt an.',
|
myRegistrationsCount.textContent = String(count);
|
||||||
buttonLabel: 'Events entdecken',
|
if (myRegistrationsBtnCount) myRegistrationsBtnCount.textContent = String(count);
|
||||||
href: 'event_overview.html'
|
|
||||||
}, 'registrations');
|
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.
|
// Baut die Eventkarten für beide Listen in einheitlichem Markup.
|
||||||
@@ -504,13 +515,20 @@
|
|||||||
const card = document.createElement('article');
|
const card = document.createElement('article');
|
||||||
card.className = 'profile-event-card profile-event-card-clickable';
|
card.className = 'profile-event-card profile-event-card-clickable';
|
||||||
card.setAttribute('data-event-id', String(event.id));
|
card.setAttribute('data-event-id', String(event.id));
|
||||||
const addressMarkup = mode === 'registrations' && event.address && isAddressVisibleWindow(event)
|
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>
|
<div class="profile-event-address-block" aria-label="Event Adresse">
|
||||||
<p class="profile-event-address">${event.address}</p>
|
<p class="profile-event-address-label">Adresse</p>
|
||||||
</div>
|
<p class="profile-event-address">${event.address}</p>
|
||||||
`
|
</div>
|
||||||
|
`
|
||||||
|
: `
|
||||||
|
<div class="profile-event-address-block" aria-label="Hinweis zur Adresse">
|
||||||
|
<p class="profile-event-address-label">Adresse</p>
|
||||||
|
<p class="profile-event-address">Vielen Dank für die Anmeldung! Die Adresse für diesen Event wird 24 Stunden vorher genau hier sichtbar sein.</p>
|
||||||
|
</div>
|
||||||
|
`)
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
const actionMarkup = mode === 'registrations'
|
const actionMarkup = mode === 'registrations'
|
||||||
|
|||||||
+3
-3
@@ -6,11 +6,11 @@
|
|||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
|
const CURRENT_USER_KEY = 'socialCookingCurrentUser';
|
||||||
const navContainers = document.querySelectorAll('.nav-tab-links');
|
const navcontainers = document.querySelectorAll('.nav-tab-links');
|
||||||
const currentPage = (window.location.pathname.split('/').pop() || 'index.html').toLowerCase();
|
const currentPage = (window.location.pathname.split('/').pop() || 'index.html').toLowerCase();
|
||||||
|
|
||||||
// Beendet früh, falls auf einer Seite keine Hauptnavigation vorhanden ist.
|
// Beendet früh, falls auf einer Seite keine Hauptnavigation vorhanden ist.
|
||||||
if (!navContainers.length) {
|
if (!navcontainers.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
const nextMarkup = currentUser ? buildLoggedInNavigation(currentUser) : buildLoggedOutNavigation();
|
const nextMarkup = currentUser ? buildLoggedInNavigation(currentUser) : buildLoggedOutNavigation();
|
||||||
|
|
||||||
// Wendet das passende Markup auf alle vorhandenen Kopf-Navigationen an.
|
// Wendet das passende Markup auf alle vorhandenen Kopf-Navigationen an.
|
||||||
navContainers.forEach(container => {
|
navcontainers.forEach(container => {
|
||||||
container.innerHTML = nextMarkup;
|
container.innerHTML = nextMarkup;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
+53
-48
@@ -52,95 +52,100 @@ function closeWelcomeModal() {
|
|||||||
// Hauptfunktion für Formularvalidierung und Speicherung.
|
// Hauptfunktion für Formularvalidierung und Speicherung.
|
||||||
function validateForm(event) {
|
function validateForm(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
let isValid = true;
|
|
||||||
|
|
||||||
// Vorname-Validierung
|
// Wir zeigen pro Submit nur den ersten Fehler an.
|
||||||
|
// So bleibt der Formularfluss klar und ruhig.
|
||||||
const vornameValue = vornameInput.value.trim();
|
const vornameValue = vornameInput.value.trim();
|
||||||
const vornameGroup = vornameInput.parentElement;
|
const vornameGroup = vornameInput.parentElement;
|
||||||
|
const nachnameGroup = nachnameInput.parentElement;
|
||||||
|
const emailGroup = emailInput.parentElement;
|
||||||
|
const passwortGroup = passwortInput.parentElement;
|
||||||
|
|
||||||
|
vornameGroup.classList.remove('has-error');
|
||||||
|
nachnameGroup.classList.remove('has-error');
|
||||||
|
emailGroup.classList.remove('has-error');
|
||||||
|
passwortGroup.classList.remove('has-error');
|
||||||
|
|
||||||
if (!vornameValue) {
|
if (!vornameValue) {
|
||||||
vornameGroup.classList.add('has-error');
|
vornameGroup.classList.add('has-error');
|
||||||
isValid = false;
|
vornameInput.focus();
|
||||||
} else {
|
return;
|
||||||
vornameGroup.classList.remove('has-error');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nachname-Validierung
|
// Nachname-Validierung
|
||||||
const nachnameValue = nachnameInput.value.trim();
|
const nachnameValue = nachnameInput.value.trim();
|
||||||
const nachnameGroup = nachnameInput.parentElement;
|
|
||||||
|
|
||||||
if (!nachnameValue) {
|
if (!nachnameValue) {
|
||||||
nachnameGroup.classList.add('has-error');
|
nachnameGroup.classList.add('has-error');
|
||||||
isValid = false;
|
nachnameInput.focus();
|
||||||
} else {
|
return;
|
||||||
nachnameGroup.classList.remove('has-error');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Email-Validierung
|
// Email-Validierung
|
||||||
const emailValue = emailInput.value.trim();
|
const emailValue = emailInput.value.trim();
|
||||||
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
||||||
const emailGroup = emailInput.parentElement;
|
|
||||||
|
|
||||||
if (!emailValue) {
|
if (!emailValue) {
|
||||||
emailGroup.classList.add('has-error');
|
emailGroup.classList.add('has-error');
|
||||||
document.getElementById('emailError').textContent = 'Bitte gib deine E-Mail Adresse ein.';
|
document.getElementById('emailError').textContent = 'Bitte gib deine E-Mail Adresse ein.';
|
||||||
isValid = false;
|
emailInput.focus();
|
||||||
} else if (!emailRegex.test(emailValue)) {
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!emailRegex.test(emailValue)) {
|
||||||
emailGroup.classList.add('has-error');
|
emailGroup.classList.add('has-error');
|
||||||
document.getElementById('emailError').textContent = 'Bitte gib eine gültige E-Mail Adresse ein.';
|
document.getElementById('emailError').textContent = 'Bitte gib eine gültige E-Mail Adresse ein.';
|
||||||
isValid = false;
|
emailInput.focus();
|
||||||
} else {
|
return;
|
||||||
emailGroup.classList.remove('has-error');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Passwort-Validierung
|
// Passwort-Validierung
|
||||||
const passwortValue = passwortInput.value;
|
const passwortValue = passwortInput.value;
|
||||||
const passwortGroup = passwortInput.parentElement;
|
|
||||||
|
|
||||||
if (!passwortValue) {
|
if (!passwortValue) {
|
||||||
passwortGroup.classList.add('has-error');
|
passwortGroup.classList.add('has-error');
|
||||||
document.getElementById('passwortError').textContent = 'Bitte gib ein Passwort ein.';
|
document.getElementById('passwortError').textContent = 'Bitte gib ein Passwort ein.';
|
||||||
isValid = false;
|
passwortInput.focus();
|
||||||
} else if (passwortValue.length < 8) {
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (passwortValue.length < 8) {
|
||||||
passwortGroup.classList.add('has-error');
|
passwortGroup.classList.add('has-error');
|
||||||
document.getElementById('passwortError').textContent = 'Dein Passwort muss mindestens 8 Zeichen lang sein.';
|
document.getElementById('passwortError').textContent = 'Dein Passwort muss mindestens 8 Zeichen lang sein.';
|
||||||
isValid = false;
|
passwortInput.focus();
|
||||||
} else {
|
return;
|
||||||
passwortGroup.classList.remove('has-error');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wenn alles gültig ist:
|
// Wenn alles gültig ist:
|
||||||
// 1) auf doppelte E-Mail prüfen
|
// 1) auf doppelte E-Mail prüfen
|
||||||
// 2) neuen Benutzer speichern
|
// 2) neuen Benutzer speichern
|
||||||
// 3) als aktuellen Benutzer einloggen
|
// 3) als aktuellen Benutzer einloggen
|
||||||
if (isValid) {
|
const existingUsers = getStoredUsers();
|
||||||
const existingUsers = getStoredUsers();
|
const emailLower = emailValue.toLowerCase();
|
||||||
const emailLower = emailValue.toLowerCase();
|
const emailAlreadyUsed = existingUsers.some(user => user.email?.toLowerCase() === emailLower);
|
||||||
const emailAlreadyUsed = existingUsers.some(user => user.email?.toLowerCase() === emailLower);
|
|
||||||
|
|
||||||
if (emailAlreadyUsed) {
|
if (emailAlreadyUsed) {
|
||||||
emailGroup.classList.add('has-error');
|
emailGroup.classList.add('has-error');
|
||||||
document.getElementById('emailError').textContent = 'Diese E-Mail ist bereits registriert. Bitte nutze den Login.';
|
document.getElementById('emailError').textContent = 'Diese E-Mail ist bereits registriert. Bitte nutze den Login.';
|
||||||
return;
|
emailInput.focus();
|
||||||
}
|
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".
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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".
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fehlerbehandlung bei Input-Änderung (entfernt Fehler wenn Benutzer korrigiert)
|
// Fehlerbehandlung bei Input-Änderung (entfernt Fehler wenn Benutzer korrigiert)
|
||||||
@@ -180,4 +185,4 @@ welcomeModal.addEventListener('click', function(event) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Form Submit Event
|
// Form Submit Event
|
||||||
signupForm.addEventListener('submit', validateForm);
|
signupForm.addEventListener('submit', validateForm);
|
||||||
+6
-6
@@ -26,7 +26,7 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Main Content -->
|
<!-- Main Content -->
|
||||||
<div class="main-content">
|
<div class="container">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="image-section">
|
<div class="image-section">
|
||||||
<img src="assets/index_cooking.jpg" alt="Social Cooking">
|
<img src="assets/index_cooking.jpg" alt="Social Cooking">
|
||||||
@@ -35,17 +35,17 @@
|
|||||||
<div class="form-section">
|
<div class="form-section">
|
||||||
<h1>Login</h1>
|
<h1>Login</h1>
|
||||||
|
|
||||||
<form id="loginForm">
|
<form id="loginForm" novalidate>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="email">E-Mail</label>
|
<label for="email">E-Mail</label>
|
||||||
<input type="email" id="email" name="email" required placeholder="deine.email@example.com">
|
<input type="email" id="email" name="email" required placeholder="deine.email@example.com">
|
||||||
<div class="error-message" id="emailError">Bitte gib eine gültige E-Mail Adresse ein.</div>
|
<div class="error-message error-message--field-callout" id="emailError">Bitte gib eine gültige E-Mail Adresse ein.</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="passwort">Passwort</label>
|
<label for="passwort">Passwort</label>
|
||||||
<input type="password" id="passwort" name="passwort" required placeholder="Gib dein Passwort ein">
|
<input type="password" id="passwort" name="passwort" required placeholder="Gib dein Passwort ein">
|
||||||
<div class="error-message" id="passwortError">Bitte gib dein Passwort ein.</div>
|
<div class="error-message error-message--field-callout" id="passwortError">Bitte gib dein Passwort ein.</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="button-primary">Login</button>
|
<button type="submit" class="button-primary">Login</button>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- Schliesst main-content -->
|
</div> <!-- Schliesst container -->
|
||||||
<div class="snackbar" id="snackbar">Willkommen zurück! Du wirst weitergeleitet...</div>
|
<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">
|
||||||
@@ -76,4 +76,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+16
-3
@@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="container profile-page">
|
<main class="layout-wide">
|
||||||
<section class="profile-hero" aria-label="Profilübersicht">
|
<section class="profile-hero" aria-label="Profilübersicht">
|
||||||
<div>
|
<div>
|
||||||
<p class="badge">Mein Bereich</p>
|
<p class="badge">Mein Bereich</p>
|
||||||
@@ -49,8 +49,13 @@
|
|||||||
|
|
||||||
<section id="logged-in-content" class="profile-grid">
|
<section id="logged-in-content" class="profile-grid">
|
||||||
<nav class="category-items" aria-label="Profilbereiche">
|
<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 is-active category-item-profile" data-category-item="hosting">
|
||||||
<button type="button" class="category-item category-item-profile" data-category-item="teilnehmen">Meine Anmeldungen</button>
|
Meine Events <span class="btn-count" id="btn-my-events-count">0</span>
|
||||||
|
</button>
|
||||||
|
<button type="button"
|
||||||
|
class="category-item category-item-profile" data-category-item="teilnehmen">
|
||||||
|
Meine Anmeldungen <span class="btn-count" id="btn-my-registrations-count">0</span>
|
||||||
|
</button>
|
||||||
<button type="button" class="category-item category-item-profile" data-category-item="einstellungen">Profil-Einstellungen</button>
|
<button type="button" class="category-item category-item-profile" data-category-item="einstellungen">Profil-Einstellungen</button>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
@@ -65,6 +70,14 @@
|
|||||||
<div class="panel-head">
|
<div class="panel-head">
|
||||||
<span id="my-registrations-count" class="panel-count">0</span>
|
<span id="my-registrations-count" class="panel-count">0</span>
|
||||||
</div>
|
</div>
|
||||||
|
<p style="font-size: 0.9rem; color: var(--olive); margin-bottom: 16px; display: flex; align-items: flex-start; gap: 8px;">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="var(--olive)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="flex-shrink: 0; margin-top: 1px;">
|
||||||
|
<circle cx="12" cy="12" r="10"/>
|
||||||
|
<line x1="12" y1="8" x2="12" y2="8"/>
|
||||||
|
<line x1="12" y1="12" x2="12" y2="16"/>
|
||||||
|
</svg>
|
||||||
|
Eine Abmeldung ist bis 24 Stunden vor Eventbeginn möglich. Bitte respektiere den Host und melde dich rechtzeitig ab, wenn du nicht kommen kannst.
|
||||||
|
</p>
|
||||||
<div id="my-registrations-list" class="profile-card-list"></div>
|
<div id="my-registrations-list" class="profile-card-list"></div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|||||||
+8
-8
@@ -26,7 +26,7 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Main Content -->
|
<!-- Main Content -->
|
||||||
<div class="main-content">
|
<div class="container">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="image-section">
|
<div class="image-section">
|
||||||
<img src="assets/index_cooking.jpg" alt="Social Cooking">
|
<img src="assets/index_cooking.jpg" alt="Social Cooking">
|
||||||
@@ -39,29 +39,29 @@
|
|||||||
<strong>Hinweis:</strong> Sichtbar auf der Plattform ist nur dein Vorname. Erst einer Anmeldung zum Event ist der Nachname für die Teilnehmenden sichtbar.
|
<strong>Hinweis:</strong> Sichtbar auf der Plattform ist nur dein Vorname. Erst einer Anmeldung zum Event ist der Nachname für die Teilnehmenden sichtbar.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form id="signupForm">
|
<form id="signupForm" novalidate>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="vorname">Vorname *</label>
|
<label for="vorname">Vorname *</label>
|
||||||
<input type="text" id="vorname" name="vorname" required placeholder="Dein Vorname">
|
<input type="text" id="vorname" name="vorname" required placeholder="Dein Vorname">
|
||||||
<div class="error-message" id="vornameError">Bitte gib deinen Vornamen ein.</div>
|
<div class="error-message error-message--field-callout" id="vornameError">Bitte gib deinen Vornamen ein.</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="nachname">Nachname *</label>
|
<label for="nachname">Nachname *</label>
|
||||||
<input type="text" id="nachname" name="nachname" required placeholder="Dein Nachname">
|
<input type="text" id="nachname" name="nachname" required placeholder="Dein Nachname">
|
||||||
<div class="error-message" id="nachnameError">Bitte gib deinen Nachnamen ein.</div>
|
<div class="error-message error-message--field-callout" id="nachnameError">Bitte gib deinen Nachnamen ein.</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="email">E-Mail *</label>
|
<label for="email">E-Mail *</label>
|
||||||
<input type="email" id="email" name="email" required placeholder="deine.email@example.com">
|
<input type="email" id="email" name="email" required placeholder="deine.email@example.com">
|
||||||
<div class="error-message" id="emailError">Bitte gib eine gültige E-Mail Adresse ein.</div>
|
<div class="error-message error-message--field-callout" id="emailError">Bitte gib eine gültige E-Mail Adresse ein.</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="passwort">Passwort *</label>
|
<label for="passwort">Passwort *</label>
|
||||||
<input type="password" id="passwort" name="passwort" required placeholder="Mindestens 8 Zeichen">
|
<input type="password" id="passwort" name="passwort" required placeholder="Mindestens 8 Zeichen">
|
||||||
<div class="error-message" id="passwortError">Dein Passwort muss mindestens 8 Zeichen lang sein.</div>
|
<div class="error-message error-message--field-callout" id="passwortError">Dein Passwort muss mindestens 8 Zeichen lang sein.</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="submit" class="button-primary">Konto erstellen</button>
|
<button type="submit" class="button-primary">Konto erstellen</button>
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- Schliesst main-content -->
|
</div> <!-- Schliesst container -->
|
||||||
|
|
||||||
<!-- Welcome Modal -->
|
<!-- Welcome Modal -->
|
||||||
<div id="welcomeModal" class="modal">
|
<div id="welcomeModal" class="modal">
|
||||||
@@ -108,4 +108,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user