WIP: Implement stuff
This commit is contained in:
@@ -10,13 +10,13 @@
|
||||
{% for faq in faqs %}
|
||||
<div {{ stimulus_controller('toggle', [], {'closed': 'hidden'}) }}>
|
||||
<div {{ stimulus_action('toggle', 'toggle', 'click') }} role="button" class="flex items-center space-x-2">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-8 h-8" {{ stimulus_target('toggle', 'icon') }}>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6" {{ stimulus_target('toggle', 'icon') }}>
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5" />
|
||||
</svg>
|
||||
<span class="flex-1 text-xl">{{ faq.question }}</span>
|
||||
<span class="flex-1 text-lg">{{ faq.question }}</span>
|
||||
</div>
|
||||
<div class="hidden" {{ stimulus_target('toggle', 'toggle') }}>
|
||||
<div class="pl-10 pr-4 py-2">
|
||||
<div class="pl-8 pr-4 py-2">
|
||||
{{ faq.answer|nl2br }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user