mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-07 14:46:41 +00:00
dashbaord: pricing cosmetics
This commit is contained in:
parent
1e06949b41
commit
c2c58ca1b2
@ -12,12 +12,8 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<th
|
<td class={` py-3 pr-4 text-left text-neutral-content leading-6`}>
|
||||||
scope="row"
|
<div class="">
|
||||||
class={`${enlarge ? "text-md" : "text-sm w-1/4"} py-3 pr-4 text-left text-neutral-content leading-6`}
|
|
||||||
colspan={enlarge ? 2 : 1}
|
|
||||||
>
|
|
||||||
<div class="flex items-center">
|
|
||||||
<span class="flex-shrink-0">{item.name}</span>
|
<span class="flex-shrink-0">{item.name}</span>
|
||||||
{#if item.isNew}
|
{#if item.isNew}
|
||||||
<span class="badge badge-primary ml-2">new</span>
|
<span class="badge badge-primary ml-2">new</span>
|
||||||
@ -33,8 +29,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if $showInfo}
|
{#if $showInfo}
|
||||||
<div class={`text-neutral-content font-normal ${enlarge ? "text-md" : "text-sm"}`}>
|
<div
|
||||||
|
class={`text-neutral-content font-normal ${enlarge ? 'text-md' : 'text-sm'}`}
|
||||||
|
>
|
||||||
{item.info}
|
{item.info}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</th>
|
</td>
|
||||||
|
@ -102,40 +102,33 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="border-spacing-x-8 max-w-[354px] md:max-w-md">
|
<table class="hidden md:table border-spacing-x-8 max-w-[354px] md:max-w-md">
|
||||||
<thead class="hidden md:table-header-group">
|
<thead class="table-header-group">
|
||||||
<tr class=" text-left">
|
<tr class=" text-left">
|
||||||
<th class="min-w-48"> </th>
|
<th class=" md:min-w-48"> </th>
|
||||||
{#each plans as plan}
|
{#each plans as plan}
|
||||||
<th class="text-center text-lg min-w-48">
|
<th class="text-center text-lg min-w-48">
|
||||||
{plan.name}
|
{plan.name}
|
||||||
</th>
|
</th>
|
||||||
{/each}
|
{/each}
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr class="">
|
||||||
<th></th>
|
<th class=""></th>
|
||||||
{#each plans as plan}
|
{#each plans as plan}
|
||||||
{#if !plan.price}
|
{#if !plan.price}
|
||||||
<th>Free Forever</th>
|
<th class="text-center">Free Forever</th>
|
||||||
{:else}
|
{:else}
|
||||||
<th>
|
<th>
|
||||||
<div class="flex flex-col justify-center py-4">
|
<div class="flex flex-col justify-center py-4">
|
||||||
{#each plan.price as pPrice}
|
{#each plan.price as pPrice}
|
||||||
{#if $userStore && $isUserVerified}
|
|
||||||
<a
|
<a
|
||||||
href={pPrice.link}
|
href={$userStore && $isUserVerified
|
||||||
|
? pPrice.link
|
||||||
|
: `/login`}
|
||||||
class="btn btn-sm btn-neutral text-base mb-2"
|
class="btn btn-sm btn-neutral text-base mb-2"
|
||||||
>
|
>
|
||||||
{pPrice.text}
|
{pPrice.text}
|
||||||
</a>
|
</a>
|
||||||
{:else}
|
|
||||||
<a
|
|
||||||
href="/login"
|
|
||||||
class="btn btn-sm btn-neutral text-base mb-2"
|
|
||||||
>
|
|
||||||
{pPrice.text}</a
|
|
||||||
>
|
|
||||||
{/if}
|
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
@ -146,22 +139,55 @@
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{#each items as item}
|
{#each items as item}
|
||||||
<tr class="hidden md:table-row">
|
<tr class="table-row text-base border-b border-gray-700">
|
||||||
<FeatureName {item} />
|
<FeatureName {item} enlarge />
|
||||||
{#each item.items as itemVal}
|
{#each item.items as itemVal, idx}
|
||||||
<FeatureSupportBlock item={itemVal ?? ''} />
|
<FeatureSupportBlock item={itemVal ?? ''} />
|
||||||
{/each}
|
{/each}
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="table-row md:hidden text-base border-b border-gray-700">
|
{/each}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table class="md:hidden border-spacing-x-8 max-w-[354px] md:max-w-md">
|
||||||
|
<thead class="table-header-group">
|
||||||
|
{#each plans as plan}
|
||||||
|
<tr class="text-left">
|
||||||
|
<th class=" text-lg min-w-48">
|
||||||
|
{plan.name}
|
||||||
|
</th>
|
||||||
|
{#if !plan.price}
|
||||||
|
<th>Free Forever</th>
|
||||||
|
{:else}
|
||||||
|
<th>
|
||||||
|
<div class="flex flex-col justify-center py-4">
|
||||||
|
{#each plan.price as pPrice}
|
||||||
|
<a
|
||||||
|
href={$userStore && $isUserVerified
|
||||||
|
? pPrice.link
|
||||||
|
: `/login`}
|
||||||
|
class="btn btn-xs w-40 btn-primary mb-2"
|
||||||
|
>
|
||||||
|
{pPrice.text}
|
||||||
|
</a>
|
||||||
|
{/each}
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
{/if}
|
||||||
|
</tr>
|
||||||
|
{/each}
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
{#each items as item}
|
||||||
|
<tr class="table-row text-base border-b border-gray-700 col-span-2">
|
||||||
<FeatureName {item} enlarge />
|
<FeatureName {item} enlarge />
|
||||||
</tr>
|
</tr>
|
||||||
{#each item.items as itemVal, idx}
|
{#each item.items as itemVal, idx}
|
||||||
<tr
|
<tr class="table-row border-b even:border-0 border-gray-800">
|
||||||
class="table-row md:hidden border-b even:border-0 border-gray-800"
|
<td class="text-left">
|
||||||
>
|
|
||||||
<th class="text-left">
|
|
||||||
{plans[idx]?.name}
|
{plans[idx]?.name}
|
||||||
</th>
|
</td>
|
||||||
<FeatureSupportBlock item={itemVal ?? ''} />
|
<FeatureSupportBlock item={itemVal ?? ''} />
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user