feat: design for question page

pull/4442/head
Kamran Ahmed 1 year ago
parent a123fc0828
commit 4cb905b69a
  1. 32
      src/pages/questions/[questionGroupId].astro

@ -53,30 +53,27 @@ export async function getStaticPaths() {
<span class='flex items-center'> <span class='flex items-center'>
<AstroIcon icon='check-current' class='h-3 text-gray-800 mr-1.5' /> <AstroIcon icon='check-current' class='h-3 text-gray-800 mr-1.5' />
<span>Already knew</span> <span>Already knew</span>
<span class='ml-2 text-gray-400'>44 <span class='sm:inline hidden'>Questions</span></span <span class='bg-gray-200/80 px-1.5 rounded-md ml-2 text-black font-medium'>44 Questions</span>
>
</span> </span>
<span class='flex items-center'> <span class='flex items-center'>
<AstroIcon icon='question' class='h-4 mr-1.5' /> <AstroIcon icon='question' class='h-4 mr-1.5' />
Didn't Know <span>Didn't Know</span>
<span class='ml-2 text-gray-500' <span class='bg-gray-200/80 px-1.5 rounded-md ml-2 text-black font-medium'>20 Questions</span>
>20 <span class='sm:inline hidden'>Questions</span></span
>
</span> </span>
<button class='flex items-center text-red-500 hover:text-red-400'> <button class='flex items-center text-red-600 hover:text-red-900'>
<AstroIcon icon='reset' class='h-3 sm:h-4 text-red-400' /> <AstroIcon icon='reset' class='h-3 sm:h-4' />
<span class='ml-0.5 sm:ml-1'>Restart Progress</span> <span class='ml-0.5 sm:ml-1'>Reset Progress</span>
</button> </button>
</div> </div>
</div> </div>
<div class='relative mb-4 h-[400px] w-full overflow-hidden rounded-2xl'> <div class='relative mb-4 h-[400px] w-full overflow-hidden rounded-lg bg-white border border-gray-300'>
<div <div
class='flex h-full w-full items-center justify-center bg-gray-800' class='flex h-full w-full items-center justify-center'
> >
<p class='animate-pulse text-2xl text-white duration-200'> <p class='animate-pulse text-2xl text-black duration-100'>
Please wait .. Please wait ..
</p> </p>
</div> </div>
@ -84,22 +81,21 @@ export async function getStaticPaths() {
<div class='flex flex-col gap-3 sm:flex-row'> <div class='flex flex-col gap-3 sm:flex-row'>
<button <button
data-next-question='know' class='flex flex-1 items-center rounded-xl bg-white border border-gray-300 py-3 px-4 text-black transition-colors hover:bg-black hover:border-black hover:text-white'
class='flex flex-1 items-center rounded-xl bg-gray-800 p-3 text-gray-400 transition-colors hover:bg-gray-700 hover:text-gray-200'
> >
<AstroIcon icon='check' class='mr-1 h-4' /> <AstroIcon icon='check-current' class='mr-2 h-4 text-current' />
Already Know that Already Know that
</button> </button>
<button <button
data-next-question='dont-know' data-next-question='dont-know'
class='flex flex-1 items-center rounded-xl bg-gray-800 p-3 text-gray-400 transition-colors hover:bg-gray-700 hover:text-gray-200' class='flex flex-1 items-center rounded-xl bg-white border border-gray-300 py-3 px-4 text-black transition-colors hover:bg-black hover:border-black hover:text-white'
> >
<AstroIcon icon='bulb' class='mr-2 h-5' /> <AstroIcon icon='bulb' class='mr-2 h-5 text-current' />
Didn't Know that Didn't Know that
</button> </button>
<button <button
data-next-question='skip' data-next-question='skip'
class='flex flex-1 items-center rounded-xl border border-red-500 p-3 text-red-400 hover:bg-red-500 hover:text-gray-900' class='flex flex-1 items-center rounded-xl border border-red-600 p-3 text-red-600 hover:bg-red-600 hover:text-white'
> >
<AstroIcon icon='skip' class='mr-2 h-4' /> <AstroIcon icon='skip' class='mr-2 h-4' />
Skip Question Skip Question

Loading…
Cancel
Save