-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
761de84
commit 52ba114
Showing
4 changed files
with
63 additions
and
53 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
backend/templates/v2/public/components/faq-question-answer.html
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
backend/templates/v2/public/components/faq-question-title.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<div | ||
x-data="{ expanded: false }"> | ||
|
||
<dt> | ||
<!-- Expand/collapse question button --> | ||
<button | ||
@click="expanded = !expanded" | ||
type="button" | ||
class="flex w-full items-start justify-between text-left text-gray-900" | ||
aria-controls="faq-0" | ||
aria-expanded="false"> | ||
|
||
<span | ||
class="text-base/7 font-semibold"> | ||
{{ question }} | ||
</span> | ||
|
||
<span | ||
class="ml-6 flex h-7 items-center"> | ||
|
||
<!-- Icon when question is collapsed. Item expanded: "hidden", Item collapsed: "" --> | ||
<svg class="size-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M12 6v12m6-6H6"></path> | ||
</svg> | ||
|
||
<!-- Icon when question is expanded. Item expanded: "", Item collapsed: "hidden" --> | ||
<svg class="hidden size-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"> | ||
<path stroke-linecap="round" stroke-linejoin="round" d="M18 12H6"></path> | ||
</svg> | ||
|
||
</span> | ||
</button> | ||
</dt> | ||
|
||
<dd | ||
class="mt-2 pr-12" | ||
x-show="expanded"> | ||
|
||
<div | ||
class="text-base/7 text-gray-600"> | ||
{{ answer|safe }} | ||
</div> | ||
</dd> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters