partiful link

This commit is contained in:
metacryst
2026-01-22 19:21:38 -06:00
parent f1c7c340f9
commit 07b42ccbc3

View File

@@ -24,7 +24,7 @@ class Events extends Shadow {
Stack(() => { Stack(() => {
VStack(() => { VStack(() => {
p(`January 23, 2025`) p(`February 7, 2026`)
p(`Hyperia Winter Ball`) p(`Hyperia Winter Ball`)
.fontSize(1.2, em) .fontSize(1.2, em)
@@ -33,7 +33,7 @@ class Events extends Shadow {
}) })
p(`Join us in Austin, Texas for a great dance, with free drinks and live music. <br><br>Admission: $35 for men, women are free.`) p(`Join us in Austin, Texas for two-stepping and live music by Noah Kurtis. 21 and up.`)
.marginRight(4, em) .marginRight(4, em)
HStack(() => { HStack(() => {
@@ -46,16 +46,17 @@ class Events extends Shadow {
.height(2, em) .height(2, em)
.maxWidth(40, vw) .maxWidth(40, vw)
button("Buy Ticket") button("RSVP")
.color("var(--darkbrown") .color("var(--darkbrown")
.border("1px solid #ab2f007d") .border("1px solid #ab2f007d")
.background('var(--green)') .background('var(--green)')
.marginLeft("auto") .marginLeft("auto")
.onClick(async function() { .onClick(async function() {
this.innerText = "Loading..." window.open("https://partiful.com/e/XqnPwBKS9vUMd8GYX3xz?c=HLU81h69", "_blank", "noopener");
const res = await fetch("/create-checkout-session", { method: "POST" }); // this.innerText = "Loading..."
const data = await res.json(); // const res = await fetch("/create-checkout-session", { method: "POST" });
window.location = data.url; // const data = await res.json();
// window.location = data.url;
}) })
}) })
.gap(3, em) .gap(3, em)