-
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/#58] 모니터링 페이지에 가이드 팝업 수정 , 현재 접속된 크루 보기가 기본 off 되어 보이도록 수정, 소켓 …
- Loading branch information
Showing
12 changed files
with
177 additions
and
47 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
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
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,38 @@ | ||
import { ReactElement, useState } from "react" | ||
import ServiceIntroduction from "./ServiceIntroduction" | ||
import SnapshotGuide from "./SnapshotGuide" | ||
|
||
const GuidePopup = ({ onClose }: { onClose: () => void }): ReactElement => { | ||
const [step, setStep] = useState(0) | ||
const onClickNext = () => { | ||
setStep(1) | ||
} | ||
return ( | ||
<div className="absolute inset-0 flex items-center justify-center rounded-3xl backdrop-blur-lg"> | ||
{/* blur 처리 */} | ||
<div className="pointer-events-auto relative flex h-[504px] w-[800px] flex-col items-center rounded-lg bg-white p-8 shadow-lg"> | ||
{step === 0 && ( | ||
<> | ||
<ServiceIntroduction /> | ||
<button | ||
className="h-[50px] w-[354px] rounded-full bg-[#1A75FF] px-[39px] py-3 text-white" | ||
onClick={onClickNext} | ||
> | ||
다음 | ||
</button> | ||
</> | ||
)} | ||
{step === 1 && ( | ||
<> | ||
<SnapshotGuide /> | ||
<button className="w-[354px] rounded-full bg-[#1A75FF] px-4 py-3 text-white" onClick={onClose}> | ||
모니터링 시작하기 | ||
</button> | ||
</> | ||
)} | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default GuidePopup |
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,42 @@ | ||
export default function ServiceIntroduction() { | ||
return ( | ||
<> | ||
<div className="mb-8 flex gap-2"> | ||
<div className="h-2 w-2 rounded-full bg-[#1A75FF]"></div> | ||
<div className="h-2 w-2 rounded-full bg-zinc-300"></div> | ||
</div> | ||
<div className="mb-6"> | ||
<div className="mb-3 text-center text-[30px] font-bold leading-10 text-[#1E2535]"> | ||
자세공작소는 실시간 모니터링으로 <br /> | ||
바른 자세 유지를 돕는 서비스입니다 | ||
</div> | ||
<span className="text-[14px] font-normal text-zinc-500"> | ||
더 세밀한 모니터링을 위해, 최초 1회 자세 기준점 설정이 필요합니다. | ||
</span> | ||
</div> | ||
{/* content */} | ||
<div className="mb-8 flex gap-4"> | ||
<div className="flex w-80 flex-col items-center rounded-[17px] bg-[#EFEFF0] px-10 py-6"> | ||
<div className="mb-4 h-[24px] w-[24px] rounded-full bg-[#5A9CFF] text-center text-[15px] font-semibold text-white"> | ||
1 | ||
</div> | ||
<span className="mb-2 text-[20px] font-semibold text-[#1E2535]">바른 자세 취하기</span> | ||
<div className="text-center font-normal leading-6 text-zinc-500"> | ||
가이드에 따라 <br /> | ||
바른 자세를 취해 주세요. | ||
</div> | ||
</div> | ||
<div className="flex w-80 flex-col items-center rounded-[17px] bg-[#EFEFF0] px-10 py-6"> | ||
<div className="mb-4 h-[24px] w-[24px] rounded-full bg-[#5A9CFF] text-center text-[15px] font-semibold text-white"> | ||
2 | ||
</div> | ||
<span className="mb-2 text-[20px] font-semibold text-[#1E2535]">스냅샷 촬영하기</span> | ||
<div className="text-center font-normal leading-6 text-zinc-500"> | ||
기준점 설정을 위해 <br /> | ||
촬영을 진행해 주세요. | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |
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,47 @@ | ||
import CloseCrewPanelIcon from "@assets/images/posture-snapshot-guide.png" | ||
|
||
export default function SnapshotGuide() { | ||
return ( | ||
<> | ||
<div className="mb-6 flex gap-2"> | ||
<div className="h-2 w-2 rounded-full bg-zinc-300"></div> | ||
<div className="h-2 w-2 rounded-full bg-[#1A75FF]"></div> | ||
</div> | ||
<div className="mb-6"> | ||
<div className="mb-3 text-center text-[30px] font-bold text-[#1E2535]">바른 자세를 취해주세요</div> | ||
</div> | ||
{/* content */} | ||
<div className="mb-8 flex items-center gap-8"> | ||
<div className="flex h-[254px] w-[284px] flex-col items-center justify-end rounded-[17px] bg-[#EFEFF0]"> | ||
<img src={CloseCrewPanelIcon} alt="스냅샷 가이드" /> | ||
</div> | ||
<div className="flex flex-col gap-5"> | ||
<div className="flex gap-3"> | ||
<span className="flex h-6 w-6 justify-center rounded-full bg-[#5A9CFF] text-center font-semibold text-white"> | ||
1 | ||
</span> | ||
<span className="font-[20px] font-semibold text-green-900">머리와 목을 일직선으로 곧게 펴기</span> | ||
</div> | ||
<div className="flex gap-3"> | ||
<span className="flex h-6 w-6 justify-center rounded-full bg-[#5A9CFF] text-center font-semibold text-white"> | ||
2 | ||
</span> | ||
<span className="font-[20px] font-semibold text-green-900">양쪽 어깨 일직선 유지하기</span> | ||
</div> | ||
<div className="flex gap-3"> | ||
<span className="flex h-6 w-6 justify-center rounded-full bg-[#5A9CFF] text-center font-semibold text-white"> | ||
3 | ||
</span> | ||
<span className="font-[20px] font-semibold text-green-900">팔은 책상 위에 수평으로 두기</span> | ||
</div> | ||
<div className="flex gap-3"> | ||
<span className="flex h-6 w-6 justify-center rounded-full bg-[#5A9CFF] text-center font-semibold text-white"> | ||
4 | ||
</span> | ||
<span className="font-[20px] font-semibold text-green-900">등과 허리는 등받이에 지지하기</span> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} |
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
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