-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Feat] - 신청자 목록 및 답변 열람 페이지 1차 구현
- Loading branch information
Showing
5 changed files
with
135 additions
and
14 deletions.
There are no files selected for viewing
This file was deleted.
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,41 @@ | ||
"use client"; | ||
|
||
import { Question } from "@/components/application"; | ||
|
||
const Application = { | ||
id: "2", // 신청서 ID | ||
item: [ | ||
{ | ||
question: "당신의 이름은?", | ||
answer: "지윤", | ||
}, | ||
{ | ||
question: "당신의 나이는?", | ||
answer: "14", | ||
}, | ||
{ | ||
question: "당신의 성별은?", | ||
answer: "여", | ||
}, | ||
], | ||
}; | ||
|
||
const ApplicantPage = () => { | ||
return ( | ||
<div className="flex w-full flex-col gap-10"> | ||
{Application.item.map((item, id) => ( | ||
<Question | ||
key={id} | ||
question={item.question} | ||
index={id} | ||
> | ||
<div className="h-100 w-full border-1 border-st-gray-100"> | ||
{item.answer} | ||
</div> | ||
</Question> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default ApplicantPage; |
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,79 @@ | ||
import { Separator } from "@radix-ui/themes"; | ||
import Button, { buttonSize } from "@/components/_common/Button"; | ||
import { AlertModal } from "@/components/_common/Modal"; | ||
import SideBar from "@/components/_common/SideBar"; | ||
|
||
const applicants = [ | ||
{ | ||
id: "1", | ||
label: "신청자1", | ||
href: "/steady/applicant/1", | ||
}, | ||
{ | ||
id: "2", | ||
label: "신청자2", | ||
href: "/steady/applicant/1", | ||
}, | ||
{ | ||
id: "3", | ||
label: "신청자3", | ||
href: "/steady/applicant/1", | ||
}, | ||
{ | ||
id: "4", | ||
label: "신청자1", | ||
href: "/steady/applicant/1", | ||
}, | ||
]; | ||
|
||
const ApplicantLayout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<div className="flex w-full flex-col gap-30"> | ||
<div className="text-30 font-bold">신청자 목록</div> | ||
<Separator className="h-5 w-auto bg-st-gray-400" /> | ||
<div className="flex w-full flex-row gap-30"> | ||
<div className="w-fit"> | ||
<SideBar | ||
listType="applicant" | ||
sidebarItems={applicants} | ||
className="scrollbar-hide" | ||
/> | ||
</div> | ||
{children} | ||
</div> | ||
<Separator className="h-5 w-auto bg-st-gray-400" /> | ||
<div className="flex justify-end gap-10"> | ||
<AlertModal | ||
trigger={ | ||
<Button className={`${buttonSize.sm} bg-st-red text-st-white`}> | ||
거절 | ||
</Button> | ||
} | ||
actionButton={ | ||
<Button className={`${buttonSize.sm} bg-st-red text-st-white`}> | ||
거절 | ||
</Button> | ||
} | ||
> | ||
<div className="text-18 font-bold">거절 하시겠습니까?</div> | ||
</AlertModal> | ||
<AlertModal | ||
trigger={ | ||
<Button className={`${buttonSize.sm} bg-st-green text-st-white`}> | ||
승인 | ||
</Button> | ||
} | ||
actionButton={ | ||
<Button className={`${buttonSize.sm} bg-st-green text-st-white`}> | ||
승인 | ||
</Button> | ||
} | ||
> | ||
<div className="text-18 font-bold">승인 하시겠습니까?</div> | ||
</AlertModal> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ApplicantLayout; |
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