Skip to content

Commit 0a789c0

Browse files
committed
Add FAQ fix count
1 parent 9e43437 commit 0a789c0

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

resources/views/components/faq-card.blade.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,23 @@
22
'question',
33
])
44

5+
@php
6+
global $count;
7+
@endphp
8+
59
<div class="w-full opacity-0">
610
<div
711
x-data="{ open: false }"
812
x-on:click="open = !open"
9-
class="group/faq-card grid cursor-pointer select-none grid-cols-[1.8rem,1fr,2.5rem] gap-x-3 rounded-2xl px-5 py-5 ring-1 transition-all duration-200 [counter-increment:css-counter_1]"
13+
class="group/faq-card grid cursor-pointer select-none grid-cols-[1.8rem,1fr,2.5rem] gap-x-3 rounded-2xl px-5 py-5 ring-1 transition-all duration-200"
1014
:class="{ 'ring-gray-200 hover:bg-gray-100 dark:ring-white/20 dark:hover:bg-gray-900/50': !open, 'ring-black/10 bg-gray-100 dark:ring-white/20 dark:bg-gray-900/50': open }"
1115
>
1216
{{-- Number --}}
1317
<div
14-
class="self-center text-lg font-light text-gray-400 after:[content:'0'_counter(css-counter)]"
15-
></div>
18+
class="self-center text-lg font-light text-gray-400"
19+
>
20+
{{ str_pad(++$count, 2, 0, STR_PAD_LEFT) }}
21+
</div>
1622

1723
{{-- Question --}}
1824
<div class="self-center font-semibold">

resources/views/early-adopter.blade.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ class="text-center text-3xl font-semibold opacity-0"
663663
})
664664
}
665665
"
666-
class="mx-auto flex w-full max-w-2xl flex-col items-center gap-4 pt-10 [counter-reset:css-counter_0]"
666+
class="mx-auto flex w-full max-w-2xl flex-col items-center gap-4 pt-10"
667667
aria-labelledby="faq-heading"
668668
>
669669
<x-faq-card question="Why isn't this open source and free?">
@@ -745,6 +745,15 @@ class="underline"
745745
build!
746746
</p>
747747
</x-faq-card>
748+
<x-faq-card question="Can get an invoice?">
749+
<p>
750+
You sure can! Once you've completed your purchase, simply
751+
<a href="https://zenvoice.io/p/67a61665e7a3400c73fb75af">
752+
follow the instructions here
753+
</a>
754+
to generate your invoice.
755+
</p>
756+
</x-faq-card>
748757
</div>
749758
</section>
750759

0 commit comments

Comments
 (0)