Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/modify quiz defeat page #1104

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions components/quiz/endScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ const EndScreen: FunctionComponent<EndScreenProps> = ({
actionBar={
<Button onClick={() => setStep(-2)}>Go back to the quest</Button>
}
highlightTitle={false}
>
<Typography type={TEXT_TYPE.BODY_DEFAULT}>
highlightTitle={false}>
<Typography
type={TEXT_TYPE.BODY_SMALL}
className="text-white/50 text-sm/6 mt-3">
You passed the quiz. Congratulations on your efforts and progress!
Keep up the good work and continue to explore new challenges.
</Typography>
Expand All @@ -45,21 +46,24 @@ const EndScreen: FunctionComponent<EndScreenProps> = ({
title="Too bad ! "
actionBar={
<>
<div className={styles.soft}>
<Button onClick={() => setStep(-2)}>
Go back to the quest
</Button>
</div>
<div>
<Button onClick={() => setRestart(true)}>
Restart the quiz
</Button>
<div className="flex gap-6">
<div className={styles.soft}>
<Button onClick={() => setStep(-2)}>
Go back to the quest
</Button>
</div>
<div>
<Button onClick={() => setRestart(true)}>
Restart the quiz
</Button>
</div>
</div>
</>
}
highlightTitle={false}
>
<Typography type={TEXT_TYPE.BODY_DEFAULT}>
highlightTitle={false}>
<Typography
type={TEXT_TYPE.BODY_SMALL}
className="text-white/50 text-sm/6 mt-3">
You didn&apos;t pass the quiz. You can try again or go back to the
quest.
</Typography>
Expand Down
2 changes: 1 addition & 1 deletion styles/components/button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
text-transform: capitalize;
letter-spacing: 0%;
border: none;
padding: 0 2rem;
padding: 0 3rem;
border-radius: 10px;
min-width: 5rem;
width: 100%;
Expand Down