-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
249 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { api } from "."; | ||
import { RESTYPE } from "@/types/common"; | ||
import { ExamRequest, ExamResponse } from "@/types/exam"; | ||
|
||
export const enterSession = async ( | ||
data: ExamRequest | ||
): Promise<RESTYPE<ExamResponse>> => { | ||
const response = await api.post(`/sessions/join`, data); | ||
return response.data; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { api } from "."; | ||
import { RESTYPE } from "@/types/common"; | ||
import { UserInfoRequest, UserInfoResponse } from "@/types/exam"; | ||
|
||
export const userInformation = async ( | ||
data: UserInfoRequest | ||
): Promise<RESTYPE<UserInfoResponse>> => { | ||
const response = await api.post(`/sessions/student`, data); | ||
return response.data; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import NextButton from "@/components/common/NextButton"; | ||
import SubHeader from "@/components/common/SubHeader"; | ||
import ExamCard from "@/components/notice/ExamCard"; | ||
import NoticeCard from "@/components/notice/NoticeCard"; | ||
|
||
const NoticePage = () => { | ||
return ( | ||
<div> | ||
<SubHeader title="시험 유의사항" /> | ||
<div className="flex flex-col items-center"> | ||
<NoticeCard /> | ||
<ExamCard /> | ||
</div> | ||
<div className="fixed bottom-6 right-0"> | ||
<NextButton title="NEXT" isAvailable={true} action="/agreement" /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NoticePage; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/frontend/eyesee-user/src/components/notice/ExamCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
"use client"; | ||
|
||
import { useExamStore } from "@/store/useExamStore"; | ||
|
||
const ExamCard = () => { | ||
const { exam } = useExamStore(); | ||
|
||
return ( | ||
<div className="mt-8 py-[26px] px-[20px] bg-[#0E1D3C] shadow-lg flex flex-col rounded-ss-2xl rounded-ee-2xl"> | ||
<div className="text-white flex items-center py-3 border-b border-white px-3"> | ||
<div className="text-[14px] w-[25vw]">강의명</div> | ||
<div className="text-[12px] font-semibold">{exam.examName}</div> | ||
</div> | ||
<div className="text-white flex items-center py-3 border-b border-white px-3"> | ||
<div className="text-[14px] w-[25vw]">담당 교수</div> | ||
<div className="text-[12px] font-semibold">확인중</div> | ||
</div> | ||
<div className="text-white flex items-center py-3 border-b border-white px-3"> | ||
<div className="text-[14px] w-[25vw]">시험 시작시간</div> | ||
<div className="text-[12px] font-semibold">{exam.examStartTime}</div> | ||
</div> | ||
<div className="text-white flex items-center py-3 border-b border-white px-3"> | ||
<div className="text-[14px] w-[25vw]">진행 시간</div> | ||
<div className="text-[12px] font-semibold">{exam.examDuration}분</div> | ||
</div> | ||
<div className="text-white flex items-center py-3 border-b border-white px-3"> | ||
<div className="text-[14px] w-[25vw]">문제 수</div> | ||
<div className="text-[12px] font-semibold">확인 중</div> | ||
</div> | ||
<div className="text-white flex items-center py-3 border-b border-white px-3"> | ||
<div className="text-[14px] w-[25vw]">총 점수</div> | ||
<div className="text-[12px] font-semibold">확인 중</div> | ||
</div> | ||
<div className="text-white text-[10px] mt-3"> | ||
※ 카메라 권한을 허용해야 합니다. | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ExamCard; |
21 changes: 21 additions & 0 deletions
21
src/frontend/eyesee-user/src/components/notice/NoticeCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import InfoIcon from "@/assets/icons/InfoIcon.svg"; | ||
|
||
const NoticeCard = () => { | ||
return ( | ||
<div className="w-[80vw] mt-8 py-5 rounded-xl bg-[rgba(14,29,60,0.1)]"> | ||
<div className="flex items-center justify-center gap-1 text-black font-semibold text-[14px] text-center mb-3"> | ||
<p>유의사항</p> | ||
<InfoIcon /> | ||
</div> | ||
<div className="text-[10px] font-light text-black text-center"> | ||
시험 정보는 시험 감독자(관리자)가 입력한 정보입니다. | ||
<br /> | ||
아래 기재된 정보와 관련하여 궁금한 사항은 | ||
<br /> | ||
시험장에 상주하는 관리자를 통해 확인하시기 바랍니다. | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NoticeCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ExamResponse, InitialExamResponse } from "@/types/exam"; | ||
import { create } from "zustand"; | ||
|
||
type ExamStore = { | ||
exam: ExamResponse; | ||
setExam: (exam: ExamResponse) => void; | ||
}; | ||
|
||
export const useExamStore = create<ExamStore>((set) => ({ | ||
exam: InitialExamResponse, | ||
setExam: (exam) => set({ exam }), | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export type RESTYPE<T> = { | ||
statusCode: number; | ||
code: string; | ||
message: string; | ||
data: T; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
export type ExamRequest = { | ||
examCode: string; | ||
}; | ||
|
||
export type ExamResponse = { | ||
examId: number; | ||
examName: string; | ||
examSemester: string; | ||
examStudentNumber: number; | ||
examLocation: string; | ||
examDate: string; | ||
examStartTime: string; | ||
examDuration: number; | ||
examStatus: string; | ||
examNotice: string; | ||
sessionId: number; | ||
examCode: string; | ||
}; | ||
|
||
export const InitialExamResponse = { | ||
examId: 1, | ||
examName: "융합캡스톤디자인", | ||
examSemester: "24-2", | ||
examStudentNumber: 30, | ||
examLocation: "정보문화관", | ||
examDate: "2024-11-20", | ||
examStartTime: "14:30", | ||
examDuration: 120, | ||
examStatus: "INPROGRESS", | ||
examNotice: "notice!!!!!", | ||
sessionId: 1, | ||
examCode: "d1213jfaj3", | ||
}; | ||
|
||
export type UserInfoRequest = { | ||
examCode: string; | ||
name: string; | ||
department: string; | ||
userNum: number; | ||
seatNum: number; | ||
}; | ||
|
||
export type UserInfoResponse = { | ||
access_token: string; | ||
refresh_token: string; | ||
}; |
This file was deleted.
Oops, something went wrong.