Skip to content

Commit 81a67fd

Browse files
authored
Merge pull request #152 from Moaguide-develop/feat/quiz
fix: 퀴즈 결과 페이지 버튼 위치 조정
2 parents 89d1869 + 24f8ddd commit 81a67fd

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

src/app/quiz/finish/page.tsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,21 @@ const QuizFinishPage: React.FC = () => {
8585
정답수 {30 - faillist.length}개 ({calculatedScore}점) + 가점 ({plus}점)
8686
</p>
8787
</div>
88+
89+
<div className="flex flex-col mx-auto items-center justify-center space-y-4 mt-12 w-full max-w-[330px] mb-4 sm:mb-2">
90+
<button
91+
onClick={() => router.push('/quiz/ranking')}
92+
className="w-full h-[50px] py-3 rounded-[12px] text-lg font-bold bg-gradient2 text-heading4 text-white text-center"
93+
>
94+
내 순위 확인하기
95+
</button>
96+
<button
97+
onClick={() => router.push('/')}
98+
className="w-full h-[50px] py-3 rounded-[12px] text-lg font-bold bg-gradient2 text-heading4 text-white text-center"
99+
>
100+
홈으로 이동
101+
</button>
102+
</div>
88103

89104
{calculatedScore === 90 ? (
90105
<div className="flex flex-col items-center justify-center text-center mt-0 flex-grow sm:flex-grow-0 sm:mt-8">
@@ -133,20 +148,6 @@ const QuizFinishPage: React.FC = () => {
133148
</>
134149
)}
135150

136-
<div className="flex flex-col mx-auto items-center justify-center space-y-4 mt-12 w-full max-w-[330px] mb-4 sm:mb-2">
137-
<button
138-
onClick={() => router.push('/quiz/ranking')}
139-
className="w-full h-[50px] py-3 rounded-[12px] text-lg font-bold bg-gradient2 text-heading4 text-white text-center"
140-
>
141-
내 순위 확인하기
142-
</button>
143-
<button
144-
onClick={() => router.push('/')}
145-
className="w-full h-[50px] py-3 rounded-[12px] text-lg font-bold bg-gradient2 text-heading4 text-white text-center"
146-
>
147-
홈으로 이동
148-
</button>
149-
</div>
150151
</div>
151152
);
152153
};

0 commit comments

Comments
 (0)