mirror of
https://github.com/System-End/daydream-phoenix.git
synced 2026-04-19 19:45:13 +00:00
Fix RSVP component
This commit is contained in:
parent
76bb25a2cf
commit
eeb7e171d9
21 changed files with 25 additions and 25 deletions
|
|
@ -3,13 +3,13 @@
|
|||
|
||||
let submitted = false;
|
||||
let fadeOut = false;
|
||||
export let event = "";
|
||||
export let eventName = "";
|
||||
|
||||
$: if (!event) {
|
||||
$: if (!eventName) {
|
||||
let slug = $page.url.pathname.split('/')[1] || '';
|
||||
event = "Daydream " + slug.charAt(0).toUpperCase() + slug.slice(1).replace("-", " ");
|
||||
eventName = slug.charAt(0).toUpperCase() + slug.slice(1).replace("-", " ");
|
||||
}
|
||||
|
||||
|
||||
function handleFormSubmit(event: Event) {
|
||||
event.preventDefault();
|
||||
const form = event.target as HTMLFormElement;
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({ email, city: event })
|
||||
body: JSON.stringify({ email, city: "Daydream " + eventName })
|
||||
}).catch(error => {
|
||||
console.warn('Failed to save email:', error);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -840,7 +840,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -842,7 +842,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -820,7 +820,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -843,7 +843,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -843,7 +843,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -848,7 +848,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -843,7 +843,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -837,7 +837,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -837,7 +837,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -852,7 +852,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -835,7 +835,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -846,7 +846,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -856,7 +856,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -843,7 +843,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -838,7 +838,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -843,7 +843,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -844,7 +844,7 @@ Sri Lanka`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -838,7 +838,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -843,7 +843,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
|
|
@ -837,7 +837,7 @@ Mumbai`.split("\n")
|
|||
</h4>
|
||||
</div>
|
||||
|
||||
<ParticipantSignUp event={eventName} />
|
||||
<ParticipantSignUp {eventName} />
|
||||
</div>
|
||||
|
||||
<!-- <img src="hot-air-balloon.png" alt="" class="absolute w-1/8 right-32 bottom-40 z-20"> -->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue