From 28c3e0c7109abcfd225e9b108f8129024054670e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EA=B8=B0=EC=98=81?= Date: Thu, 8 Aug 2024 16:10:30 +0900 Subject: [PATCH] =?UTF-8?q?design:=20QuizCard=20/=20QuizsetForm(=ED=80=B4?= =?UTF-8?q?=EC=A6=88=20=EC=83=9D=EC=84=B1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/QuizForm/QuizCard.jsx | 25 +++++++++++-------- .../components/QuizForm/QuizCard.module.css | 14 ++++++++--- .../src/components/QuizForm/QuizsetForm.jsx | 4 ++- .../QuizForm/QuizsetForm.module.css | 8 +++++- .../QuizsetDetail/QuizsetDetail.module.css | 2 +- 5 files changed, 36 insertions(+), 17 deletions(-) diff --git a/frontend/src/components/QuizForm/QuizCard.jsx b/frontend/src/components/QuizForm/QuizCard.jsx index 19a43b8..8127169 100644 --- a/frontend/src/components/QuizForm/QuizCard.jsx +++ b/frontend/src/components/QuizForm/QuizCard.jsx @@ -1,5 +1,7 @@ import { useState } from 'react'; import styles from './QuizCard.module.css'; +import CloseIcon from '/src/assets/icons/close.svg?react'; +import PlusIcon from '/src/assets/icons/plus.svg?react'; export default function QuizCard({ quiz, updateQuiz, deleteQuiz }) { // TODO: 카드 디자인 완성 및 이쁘게 바꾸기 @@ -53,10 +55,10 @@ export default function QuizCard({ quiz, updateQuiz, deleteQuiz }) {
퀴즈 생성 카드
@@ -112,13 +115,15 @@ export default function QuizCard({ quiz, updateQuiz, deleteQuiz }) { > 선택지 추가하기 - + {choices.length > 0 && ( + + )} {choices.map?.((choice, idx) => (
- 카드 추가 + + 새 퀴즈 추가