Skip to content

Commit 5edd3a7

Browse files
committed
9 remaining
1 parent 97f574b commit 5edd3a7

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

src/components/Wptbm.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
shopifyLink: string;
1818
};
1919
export let ticketsRemaining: number;
20-
export let remainingLastUpdatedAt: string;
20+
export let remainingLastUpdatedAt: string | number;
2121
2222
let venmoText = "Buy Tickets via Venmo";
2323
let showVenmo = false;
@@ -152,7 +152,9 @@
152152
<p
153153
class="{ticketsRemaining > 50
154154
? 'text-green-500'
155-
: 'text-orange-500'} text-lg leading-5"
155+
: ticketsRemaining > 10
156+
? 'text-orange-500'
157+
: 'text-red-400'} text-lg leading-5"
156158
>
157159
{ticketsRemaining} Remaining
158160
<span class="text-gray-400 text-sm"

src/routes/(app)/tickets/cambridge-ma-middle-east-the-bends-2025-11-22/+page@.svelte

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@
3939
link: null,
4040
};
4141
42+
const wptbmProps = {
43+
isiOs,
44+
countDownDate: new Date("Oct 1, 2025 18:00:00").getTime(),
45+
showInfo,
46+
ticketSource,
47+
ticketsRemaining: 9,
48+
remainingLastUpdatedAt: new Date("Sept 8, 2025 12:18:00").getTime(),
49+
};
50+
4251
onMount(() => {
4352
if (window) {
4453
isiOs = iOS();
@@ -66,42 +75,52 @@
6675
class="w-1/2 min-h-screen overflow-hidden"
6776
>
6877
<img
78+
alt="stub"
6979
class=""
7080
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
7181
/>
7282
<img
83+
alt="stub"
7384
class=""
7485
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
7586
/>
7687
<img
88+
alt="stub"
7789
class=""
7890
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
7991
/>
8092
<img
93+
alt="stub"
8194
class=""
8295
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
8396
/>
8497
<img
98+
alt="stub"
8599
class=""
86100
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
87101
/>
88102
<img
103+
alt="stub"
89104
class=""
90105
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
91106
/>
92107
<img
108+
alt="stub"
93109
class=""
94110
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
95111
/>
96112
<img
113+
alt="stub"
97114
class=""
98115
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
99116
/>
100117
<img
118+
alt="stub"
101119
class=""
102120
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
103121
/>
104122
<img
123+
alt="stub"
105124
class=""
106125
src="https://www.dropbox.com/scl/fi/wxri2pc2b8woac27nynrs/example-stub-sm.png?rlkey=8k2ibapg5vkt6ofxjost4f5gx&raw=1"
107126
/>
@@ -123,14 +142,7 @@
123142
Tickets By Mail
124143
</h1>
125144
</div>
126-
<Wptbm
127-
{isiOs}
128-
countDownDate={new Date("Oct 1, 2025 18:00:00").getTime()}
129-
{showInfo}
130-
{ticketSource}
131-
ticketsRemaining={21}
132-
remainingLastUpdatedAt={new Date("Sept 6, 2025 11:45:00").getTime()}
133-
/>
145+
<Wptbm {...wptbmProps} />
134146
</div>
135147
</div>
136148
</div>
@@ -149,14 +161,7 @@
149161
Tickets By Mail
150162
</h1>
151163
</div>
152-
<Wptbm
153-
{isiOs}
154-
countDownDate={new Date("Oct 1, 2025 18:00:00").getTime()}
155-
{showInfo}
156-
{ticketSource}
157-
ticketsRemaining={21}
158-
remainingLastUpdatedAt={new Date("Sept 6, 2025 11:45:00").getTime()}
159-
/>
164+
<Wptbm {...wptbmProps} />
160165
</div>
161166
<div class="flex w-full justify-center">
162167
<div class="p-5 pt-0 bg-black sm:max-w-130 sm:px-0 rounded-xl">

0 commit comments

Comments
 (0)