Skip to content

Commit

Permalink
update prizes
Browse files Browse the repository at this point in the history
  • Loading branch information
merklejerk committed Jun 13, 2024
1 parent 59e7b26 commit 6acbae0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const INVITE_ONLY = !!publicEnv.PUBLIC_INVITE_ONLY;
export const LAUNCH_TIME = new Date(publicEnv.PUBLIC_LAUNCH_TIME ?? 0);
export const LAUNCHED = LAUNCH_TIME.getTime() < Date.now();
export const SCHEDULE = (publicEnv.PUBLIC_SCHEDULE ? publicEnv.PUBLIC_SCHEDULE.split(',') : []).map(d => new Date(d));
export const SCHEDULED_PRIZES = (publicEnv.PUBLIC_SCHEDULED_PRIZES ? publicEnv.PUBLIC_SCHEDULED_PRIZES.split(',') : []);
export const SCHEDULED_PRIZES = (publicEnv.PUBLIC_SCHEDULED_PRIZES ? publicEnv.PUBLIC_SCHEDULED_PRIZES.split(',').map(v => Number(v)) : []);

export interface ScoredPlayer {
name: string;
Expand Down
3 changes: 3 additions & 0 deletions src/routes/(app)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@
{#if SCHEDULE.length}
<div id="timeline">
<h3><a href="#timeline" class="inherit">Timeline</a></h3>
<p>
A total of ${SCHEDULED_PRIZES.reduce((a, v) => a + v).toLocaleString()} will be awarded across {SCHEDULED_PRIZES.length} season ending tournaments.
</p>
<div class="events">
{#if LAUNCH_TIME.getTime() != 0}
<div class="event">
Expand Down

0 comments on commit 6acbae0

Please sign in to comment.