fix delay answer picture
This commit is contained in:
parent
2c9703f581
commit
472d78ff6a
|
@ -258,21 +258,27 @@ const Quiz = () => {
|
||||||
} z-[999] flex items-center justify-center pointer-events-none ease-in-out`}
|
} z-[999] flex items-center justify-center pointer-events-none ease-in-out`}
|
||||||
>
|
>
|
||||||
<div className="rounded-md px-3 py-2 text-white flex flex-col justify-center items-center gap-3">
|
<div className="rounded-md px-3 py-2 text-white flex flex-col justify-center items-center gap-3">
|
||||||
|
|
||||||
<img
|
<img
|
||||||
className="h-56"
|
className={`h-56 ${
|
||||||
src={`/assets/gif/${
|
quizStore.jawaban[quizStore.soalIndex]?.isCorrect ? "" : "hidden"
|
||||||
quizStore.jawaban[quizStore.soalIndex]?.isCorrect
|
}`}
|
||||||
? "betul"
|
src={`/assets/gif/betul.gif`}
|
||||||
: "salah"
|
|
||||||
}.gif`}
|
|
||||||
loading="eager"
|
loading="eager"
|
||||||
fetchPriority="high"
|
fetchPriority="high"
|
||||||
alt={`Jawaban ${
|
alt={`Jawaban Benar`}
|
||||||
quizStore.jawaban[quizStore.soalIndex]?.isCorrect
|
|
||||||
? "Benar"
|
|
||||||
: "Salah"
|
|
||||||
}`}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<img
|
||||||
|
className={`h-56 ${
|
||||||
|
quizStore.jawaban[quizStore.soalIndex]?.isCorrect ? "hidden" : ""
|
||||||
|
}`}
|
||||||
|
src={`/assets/gif/salah.gif`}
|
||||||
|
loading="eager"
|
||||||
|
fetchPriority="high"
|
||||||
|
alt={`Jawaban Salah`}
|
||||||
|
/>
|
||||||
|
|
||||||
<p className="text-center text-6xl font-bold">
|
<p className="text-center text-6xl font-bold">
|
||||||
{quizStore.jawaban[quizStore.soalIndex]?.jawaban}
|
{quizStore.jawaban[quizStore.soalIndex]?.jawaban}
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in New Issue