Skip to content

Commit

Permalink
오류 수정 (#164)
Browse files Browse the repository at this point in the history
* 히트맵 캘린더 수정

* 마이페이지 통합

* 마이페이지 디자인, 모달창 수정

* test

* 마이페이지 완성

* 마이페이지 완성

* 마이페이지 디자인 수정

* 버튼 추가

* 모의고사 버튼

* 불필요 폴더 지움

* 글자크기 조정

* 커맨드별로 힌트 띄우기

* 병합 대작전

* 오류 수정

---------

Co-authored-by: 박규태 <79373803+KyuTae98@users.noreply.github.com>
Co-authored-by: JRJR519 <102293576+Jeong-Rae@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 16, 2024
1 parent 14effa0 commit c8541a3
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions src/components/xterm/XtermQuestion/XtermQuestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,32 +50,35 @@ const XtermQuestion: React.FC<XtermQuestionType> = ({ questionCount, accessToken
}
};

const hintURL = getHintURL(questionInfo?.questionId);
const hintURL = getHintURL(Number(questionInfo?.questionId));


return (
<div className="bg-white flex-col items-center rounded-XtermQuestion-Radius z-10 h-XtermQuestion-height min-w-XtermQuestion-width rounded-rounded-10 relative">
<div className="float-right pt-2 pr-2">
<button className="headerBtn" onClick={toggleHint}>힌트</button>
</div>
{showHint && (
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div className="bg-white p-8 rounded-lg shadow-lg w-[80%] h-[80%] relative">
<button
className="absolute top-2 right-2 bg-gray-300 hover:bg-gray-400 text-gray-800 font-semibold py-2 px-4 rounded"
onClick={toggleHint}
>
닫기
</button>
<iframe src={hintURL} className="w-full h-full mt-4" />
{
showHint && hintURL && (
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
<div className="bg-white p-8 rounded-lg shadow-lg w-[80%] h-[80%] relative">
<button
className="absolute top-2 right-2 bg-gray-300 hover:bg-gray-400 text-gray-800 font-semibold py-2 px-4 rounded"
onClick={toggleHint}
>
닫기
</button>
<iframe src={hintURL} className="w-full h-full mt-4" />
</div>
</div>
</div>
)}
)
}
<div className="pt-4">
<XtermQuestionStage total_questions={questionCount || 0} question_index={question_index} />
<XtermQuestionDescription title={questionInfo?.title} description={questionInfo?.description} />
<XtermQuestionAnswerInput accessToken={accessToken} answerType={questionInfo?.answerType} question_index={question_index} setQusetion_index={setQusetion_index} />
</div>
</div>
</div >
);
}

Expand Down

0 comments on commit c8541a3

Please sign in to comment.