-
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
23 changed files
with
1,018 additions
and
301 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 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,16 @@ | ||
const ProgressBar = ({ step }: { step: number }) => { | ||
const baseProgress = (step / 7) * 100; | ||
const extraWidth = step === 7 ? 4 : 0; | ||
const progress = `calc(${baseProgress}% + ${extraWidth}px)`; | ||
|
||
return ( | ||
<div className="w-full bg-white h-[0.875rem] mb-[0.875rem] border-2 border-sub-none box-border relative"> | ||
<div | ||
className="absolute -top-[2px] -left-[2px] bg-signature h-[0.875rem] transition-all duration-500" | ||
style={{ width: progress, boxSizing: 'border-box' }} | ||
></div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProgressBar; |
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,33 @@ | ||
import { StagePropsType } from '@/pages/register-page/register-page'; | ||
|
||
const RegisterIntro = ({ setStage, setStep }: StagePropsType) => { | ||
return ( | ||
<div className="flex flex-col"> | ||
<div className="text-[2.25rem] text-signature font-[900] mb-5"> | ||
<div>당신과의 여행을</div> | ||
<div>소개해주세요</div> | ||
</div> | ||
|
||
<div className="text-base text-sub-bu font-[300]"> | ||
<div>7개의 단계로 간단하게 시작해보세요.</div> | ||
<div>설정한 내용은 언제든지 수정하실 수 있습니다.</div> | ||
</div> | ||
|
||
<button | ||
type="button" | ||
className={`absolute bottom-12 w-full h-12 px-[33px] flex items-center text-white bg-signature`} | ||
onClick={() => { | ||
setStage(1); | ||
setStep(1); | ||
}} | ||
> | ||
<span className="font-[700] text-xl mr-[10px]">시작하기</span> | ||
<span className="flex-1 text-right"> | ||
<img src="/arrow-forward-white.png" alt="arrow" className="h-full object-contain" /> | ||
</span> | ||
</button> | ||
</div> | ||
); | ||
}; | ||
|
||
export default RegisterIntro; |
Oops, something went wrong.