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`, `Founder's badge on Discord`,
`Official PocketHost mug or tee`, `Official PocketHost mug or tee`,
]} ]}
limit={100} startLimit={100}
limit={99}
upgradable upgradable
prices={[ prices={[
{ {

View File

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