-
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.
- Loading branch information
Showing
18 changed files
with
134 additions
and
21 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
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 |
---|---|---|
@@ -1,9 +1,51 @@ | ||
"use client"; | ||
import Image from "next/image"; | ||
import { useState } from "react"; | ||
import outGoingImg from "@/assets/svg/outGoing.svg"; | ||
import applicationImg from "@/assets/svg/application.svg"; | ||
import Button from "@/components/button"; | ||
|
||
interface checkPageType { | ||
type: "outGoing" | "homecoming"; | ||
} | ||
|
||
const CheckPage: React.FC<checkPageType> = ({ type }) => { | ||
return <div>{type === "outGoing" ? (<div></div>) : (<div></div>)}</div>; | ||
const CheckPage = ({ type }: checkPageType) => { | ||
const [out, setOut] = useState(0); | ||
const [sum, setSum] = useState(0); | ||
|
||
return ( | ||
<> | ||
{type === "outGoing" ? ( | ||
<div className=" rounded-xl w-42 h-62 bg-white flex flex-col items-center gap-4"> | ||
<div className=" text-neutral-50 text-sub-title4-M text-center px-4 pt-6"> | ||
현재 외출 중인 학생은 총 <span className=" text-primary-500">{out}명</span>입니다. | ||
</div> | ||
<Image src={outGoingImg} alt="" /> | ||
<Button | ||
colorType="primary" | ||
buttonSize="extraSmall" | ||
onClick={() => {}} | ||
> | ||
외출자 확인 | ||
</Button> | ||
</div> | ||
) : ( | ||
<div className=" rounded-xl w-42 h-62 bg-white flex flex-col items-center gap-4"> | ||
<div className=" text-neutral-50 text-sub-title4-M text-center px-2 pt-6"> | ||
현재 외출 / 조기 귀가 신청 학생은 총 <span className=" text-secondary-300">{sum}명</span>입니다. | ||
</div> | ||
<Image src={applicationImg} alt="" /> | ||
<Button | ||
colorType="tertiary" | ||
buttonSize="extraSmall" | ||
onClick={() => {}} | ||
> | ||
출결 상태 확인 | ||
</Button> | ||
</div> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default CheckPage; |
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
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Oops, something went wrong.