Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: push
env:
REGISTRY: ghcr.io
IMAGE_NAME: Test-Prep-AI/Frontend
VERSION: 1.2.6
VERSION: 1.3.0

jobs:
build:
Expand Down
54 changes: 43 additions & 11 deletions src/views/Project/Project.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* 전체 컨테이너 */
.project-container {
flex: 1;
display: flex;
flex-direction: column;
width: 100%;
/* 부모의 높이를 꽉 채우고 싶다면? */
height: 100vh; /* 또는 부모 컨테이너가 이미 flex:1 로 채워질 경우 100% */
height: 100%; /* 또는 부모 컨테이너가 이미 flex:1 로 채워질 경우 100% */
box-sizing: border-box;
/* 만약 상위 레이아웃에서 이미 할당한 공간이 있다면, calc() 등을 써서 조절 */
padding: 50px;
}

/* 헤더: 프로젝트명 + 다운로드 버튼 */
Expand All @@ -16,6 +16,7 @@
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding: 0 10px;
}

.project-title {
Expand All @@ -34,6 +35,7 @@
font-size: 0.95rem;
cursor: pointer;
transition: background-color 0.3s;
margin: 0;
}

.download-button:hover {
Expand Down Expand Up @@ -63,10 +65,13 @@
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.questionCardsContainer{
padding: 10px;
}

.questionCard{
background-color: #fff;
border-radius: 20px;
padding: 20px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
margin-top: 30px;
padding: 40px;
Expand Down Expand Up @@ -100,7 +105,7 @@
}

.problem-title {
margin-bottom: 20px;
margin-bottom: 40px;
}


Expand All @@ -126,7 +131,7 @@

.submit-answer-button {
background-color: #A0C4F5;
color: #fff;
color: white;
border: none;
}
.submit-answer-button:hover {
Expand All @@ -145,29 +150,56 @@
/* 정답 카드 */


.answerCard p {
.answerCard div {
margin: 0;
color: #555;
color: #333;
line-height: 1.6;
}

.submission-result {
margin-bottom: 20px;
font-size: 0.9rem;
padding-left: 20px;
padding-right: 20px;
text-align: right;
}


.problem-input {
width: 100%;
}

.problem-input input {
width: 100%;
padding: 12px 15px; /* 세로/가로 여백 */
font-size: 1rem;
border: 2px solid #ccc; /* 연한 회색 테두리 */
border-radius: 10px; /* 둥근 모서리 */
border: 1px solid #ccc; /* 연한 회색 테두리 */
border-radius: 20px; /* 둥근 모서리 */
outline: none;
transition: border-color 0.3s;
box-sizing: border-box;
}

.problem-input input:focus {
border-color: #A0C4F5; /* 포커스 시 테두리색 변경 */
}
}


.problem-options {
display: flex;
flex-direction: column; /* 세로로 나열 */
gap: 8px; /* 선택지 간 간격 (선택 사항) */
}

/* 스크롤바 스타일 (Chrome, Edge, Safari) */
.project-content::-webkit-scrollbar {
width: 6px;
}

.project-content::-webkit-scrollbar-thumb {
background-color: rgba(215, 215, 215, 0.929);
border-radius: 10px;
}

.project-content::-webkit-scrollbar-track {
background: transparent;
}
3 changes: 2 additions & 1 deletion src/views/Project/Project.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default function Project() {
if (problem.problemType === "객관식" || problem.problemType === "단답형") {
setResults(prev => ({ ...prev, [problem.problemId]: isCorrect ? "정답이 맞습니다." : "정답이 아닙니다." }));
} else if (problem.problemType === "서술형") {
setResults(prev => ({ ...prev, [problem.problemId]: "해설을 확인하세요." }));
setResults(prev => ({ ...prev, [problem.problemId]: "정답을 확인하세요." }));
}
}, 1000);
}
Expand Down Expand Up @@ -282,6 +282,7 @@ export default function Project() {
name={`problem-${problem.problemId}`}
value={key}
checked={answers[problem.problemId] === key}
className='radioStyle'
onChange={(e) => handleAnswerChange(problem.problemId, e.target.value)}
/>
{key}. {value}
Expand Down
6 changes: 3 additions & 3 deletions src/views/Question/QuestionForm.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
}

.radioStyle {
gap: 5px; /* 라디오와 라벨 텍스트 간격 */
gap: 20px; /* 라디오와 라벨 텍스트 간격 */
font-size: 0.95rem;
margin:0px 10px 0px 10px;
}
Expand All @@ -164,7 +164,7 @@
background-color: transparent;
cursor: pointer;
position: relative;
margin-right: 3px;
margin-right: 10px;
outline: none;
transition: border-color 0.2s;
}
Expand Down Expand Up @@ -197,7 +197,7 @@
}

.extra-section p {
font-size: larger;
font-size: x-large;
}

.input-box {
Expand Down