mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
fixed PricingCard styling for Premium + Founder users (#360)
This commit is contained in:
parent
e50e43c4c3
commit
6c2f8e8ca0
@ -5,7 +5,7 @@
|
||||
import MobileTable from '$components/tables/pricing-table/MobileTable.svelte'
|
||||
import { PLAN_NAMES, SubscriptionType } from '$shared'
|
||||
import { DISCORD_URL, DOCS_URL } from '$src/env'
|
||||
import { userSubscriptionType } from '$util/stores'
|
||||
import { userSubscriptionType, isUserFounder } from '$util/stores'
|
||||
|
||||
type ItemValue = '1' | 'Unlimited' | 'YesBlock' | 'NoBlock'
|
||||
|
||||
@ -137,13 +137,14 @@
|
||||
<div class="rounded-lg ring-1 ring-transparent"></div>
|
||||
{/if}
|
||||
|
||||
{#if $userSubscriptionType === SubscriptionType.Premium}
|
||||
{#if $userSubscriptionType === SubscriptionType.Premium && !$isUserFounder}
|
||||
<div class="rounded-lg ring-2 ring-primary"></div>
|
||||
{:else}
|
||||
<div class="rounded-lg ring-1 ring-transparent"></div>
|
||||
{/if}
|
||||
|
||||
{#if $userSubscriptionType === SubscriptionType.Lifetime}
|
||||
{#if $userSubscriptionType === SubscriptionType.Lifetime ||
|
||||
(SubscriptionType.Premium && $isUserFounder)}
|
||||
<div class="rounded-lg ring-2 ring-primary"></div>
|
||||
{:else}
|
||||
<div class="rounded-lg ring-1 ring-transparent"></div>
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { client } from '$src/pocketbase-client'
|
||||
import FAQSection from '$src/routes/account/FAQSection.svelte'
|
||||
import PricingCard from '$src/routes/account/PricingCard.svelte'
|
||||
import { isUserLegacy, userStore, userSubscriptionType } from '$util/stores'
|
||||
import { isUserLegacy, userStore, userSubscriptionType, isUserFounder } from '$util/stores'
|
||||
import { onMount } from 'svelte'
|
||||
import { writable } from 'svelte/store'
|
||||
|
||||
@ -73,7 +73,7 @@
|
||||
priceAnnually={[199, 'year (save 20%)']}
|
||||
checkoutMonthURL="https://store.pockethost.io/checkout/buy/8e7cfb35-846a-4fd6-adcb-c2db5589275d?checkout[custom][user_id]={$userStore?.id}"
|
||||
checkoutYearURL="https://store.pockethost.io/checkout/buy/96e4ab4b-f646-4fb2-b830-5584db983e73?checkout[custom][user_id]={$userStore?.id}"
|
||||
active={$userSubscriptionType === SubscriptionType.Premium}
|
||||
active={$userSubscriptionType === SubscriptionType.Premium && !$isUserFounder}
|
||||
/>
|
||||
|
||||
<PricingCard
|
||||
@ -85,7 +85,7 @@
|
||||
priceAnnually={[99, 'year (save 55%)']}
|
||||
checkoutMonthURL="https://store.pockethost.io/checkout/buy/e71cbfb5-cec3-4745-97a7-d877f6776503?checkout[custom][user_id]={$userStore?.id}"
|
||||
checkoutYearURL="https://store.pockethost.io/checkout/buy/e5660329-5b99-4ed6-8f36-0d387803e1d6?checkout[custom][user_id]={$userStore?.id}"
|
||||
active={$userSubscriptionType === SubscriptionType.Lifetime}
|
||||
active={$userSubscriptionType === SubscriptionType.Lifetime || (SubscriptionType.Premium && $isUserFounder)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user