Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saadeghi committed Nov 22, 2024
1 parent 3cc4a18 commit a7d3768
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/docs/src/routes/(docs)/store/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,15 @@ function prev(productId, media) {
'en-GB',
dateFormat
)}"
class="grid grid-cols-3 gap-2 text-center font-mono text-xs">
<!-- <div class="border-neutral-content/40 rounded-btn border border-dashed p-2">
<span class="countdown block text-2xl">
<span style="{`--value:${remaining.days};`}"></span>
</span>
<span class="text-neutral-content/40 text-xs">day</span>
</div> -->
class={`grid ${remaining.days > 0 ? 'grid-cols-4' : 'grid-cols-3'} gap-2 text-center font-mono text-xs`}>
{#if remaining.days > 0}
<div class="border-neutral-content/40 rounded-btn border border-dashed p-2">
<span class="countdown block text-2xl">
<span style="{`--value:${remaining.days};`}"></span>
</span>
<span class="text-neutral-content/40 text-xs">day</span>
</div>
{/if}
<div class="border-neutral-content/40 rounded-btn border border-dashed p-2">
<span class="countdown block text-2xl">
<span style="{`--value:${remaining.hours};`}"></span>
Expand Down

0 comments on commit a7d3768

Please sign in to comment.