update founder's edition to 99

This commit is contained in:
Ben Allfree 2023-12-11 07:36:43 -08:00
parent d40ce2df43
commit af12333c82
2 changed files with 15 additions and 4 deletions

View File

@ -82,7 +82,8 @@
`Founder's badge on Discord`,
`Official PocketHost mug or tee`,
]}
limit={100}
startLimit={100}
limit={99}
upgradable
prices={[
{

View File

@ -6,7 +6,8 @@
export let active = false
export let features: string[] = []
export let upgradable = false
export let limit = -1
export let startLimit = 0
export let limit = 0
export let prices: { title: string; link: string }[] = []
</script>
@ -16,9 +17,18 @@
<h2 class="card-title">
{name}
</h2>
{#if limit >= 0}
{#if startLimit > 0}
{#if limit > 0}
<div class="text-center text-accent text-2xl">{limit} remaining</div>
{#if limit != startLimit}
<div class="text-center text-accent text-2xl">
<span class="line-through">{startLimit}</span>
<span class="text-error">{limit} remaining</span>
</div>
{:else}
<div class="text-center text-accent text-2xl">
{limit} remaining
</div>
{/if}
{:else}
<div class="text-center text-error text-2xl">SOLD OUT</div>
{/if}