Skip to content

Commit

Permalink
update: FinishModal>見た目をそれとなく改善
Browse files Browse the repository at this point in the history
  • Loading branch information
watasuke102 committed Feb 25, 2024
1 parent 0e863fa commit be97667
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
18 changes: 18 additions & 0 deletions src/app/exam/_components/FinishModal/FinishModal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,22 @@

.correct_rate {
font-size: 1.25em;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
}
.percentage {
margin: 0 4px;
font-size: 3.8em;
font-weight: bold;
text-decoration: underline $color-primary-3;
}

.question_num_wrapper {
margin-top: 16px;
}
.question_num {
font-size: 2.1em;
margin: 0 4px;
}
16 changes: 14 additions & 2 deletions src/app/exam/_components/FinishModal/FinishModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,20 @@ export function FinishModal(props: Props): JSX.Element {
<div className={css.modal_header}>
<TadaIcon /> <span>問題終了</span>
</div>
<p className={css.correct_rate}>
正答率:{correct_rate}% ({total_questions}問中{correct_answers}問正解)
<p
className={css.correct_rate}
aria-label={`正答率${correct_rate}%、${total_questions}問中${correct_answers}問正解`}
>
<div aria-hidden>
正答率
<span className={css.percentage}>{correct_rate}</span>%
</div>
<div aria-hidden className={css.question_num_wrapper}>
<span className={css.question_num}>{total_questions}</span>
問中
<span className={css.question_num}>{correct_answers}</span>
問正解
</div>
</p>
<ButtonContainer>
<Button
Expand Down

0 comments on commit be97667

Please sign in to comment.