feat: add questions to quiz

This commit is contained in:
Jannat Patel
2024-08-02 20:20:43 +05:30
parent 471e7d9229
commit 27ca13ece6
6 changed files with 509 additions and 184 deletions

View File

@@ -75,7 +75,7 @@
>
<li
:class="[
'flex items-center rounded px-2.5 py-1.5 text-base',
'flex items-center rounded px-2.5 py-2 text-base',
{ 'bg-gray-100': active },
]"
>
@@ -87,7 +87,14 @@
name="item-label"
v-bind="{ active, selected, option }"
>
{{ option.label }}
<div class="flex flex-col space-y-1">
<div>
{{ option.label }}
</div>
<div class="text-xs text-gray-700">
{{ option.description }}
</div>
</div>
</slot>
</li>
</ComboboxOption>

View File

@@ -118,6 +118,7 @@ const options = createResource({
return {
label: option.value,
value: option.value,
description: option.description,
}
})
},