Updated the PracticeBadge

This commit is contained in:
Tiago Ribeiro
2024-11-16 18:19:11 +00:00
parent 501606233f
commit 4f60819dcc
2 changed files with 3 additions and 3 deletions

View File

@@ -34,9 +34,9 @@ function Question({
<div className="flex flex-col gap-8 relative"> <div className="flex flex-col gap-8 relative">
{isPractice && <PracticeBadge className="absolute -top-4 -right-12" />} {isPractice && <PracticeBadge className="absolute -top-4 -right-12" />}
{isNaN(Number(id)) ? ( {isNaN(Number(id)) ? (
<span className="text-lg">{renderPrompt(prompt).filter((x) => x?.toString() !== "<u>")}</span> <span className={clsx("text-lg", isPractice && "text-mti-red")}>{renderPrompt(prompt).filter((x) => x?.toString() !== "<u>")}</span>
) : ( ) : (
<span className="text-lg"> <span className={clsx("text-lg", isPractice && "text-mti-red")}>
<> <>
{id} - <span>{renderPrompt(prompt).filter((x) => x?.toString() !== "<u>")}</span> {id} - <span>{renderPrompt(prompt).filter((x) => x?.toString() !== "<u>")}</span>
</> </>

View File

@@ -6,6 +6,6 @@ interface Props {
export default function PracticeBadge({ className }: Props) { export default function PracticeBadge({ className }: Props) {
return ( return (
<div className={clsx("bg-mti-purple/20 px-2 py-1 rounded-full text-sm ring-1 ring-mti-purple", className)}>Practice Exercise</div> <div className={clsx("bg-mti-rose/50 text-white px-2 py-1 rounded-full ring-1 ring-mti-red", className)}>Practice Exercise (Question Ungraded)</div>
) )
} }