-
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.
Merge pull request #77 from depromeet/feat/missionCompletePage
[Feat] 완료 페이지 구현
- Loading branch information
Showing
15 changed files
with
171 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+30.4 MB
...-darwin-x64-npm-13.4.19-39dbd25b1a-10.zip → ...arwin-arm64-npm-13.4.19-fca715fb2a-10.zip
Binary file not shown.
Binary file renamed
BIN
+13.4 MB
...e-darwin-x64-npm-1.3.99-8989f94d5b-10.zip → ...darwin-arm64-npm-1.3.99-8536dce105-10.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 @@ | ||
import { type PropsWithChildren } from 'react'; | ||
import { css } from '@styled-system/css'; | ||
|
||
export default function Layout({ children }: PropsWithChildren) { | ||
return <div className={containerCss}>{children}</div>; | ||
} | ||
|
||
const containerCss = css({ | ||
maxWidth: '475px', | ||
margin: '0 auto', | ||
minHeight: '100vh', | ||
|
||
display: 'flex', | ||
flexDirection: 'column', | ||
flex: 1, | ||
}); |
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,72 @@ | ||
'use client'; | ||
import lottieJson from '@/assets/lotties/lottieExample.json'; | ||
import Button from '@/components/Button/Button'; | ||
import { css } from '@styled-system/css'; | ||
import Lottie from 'react-lottie-player'; | ||
|
||
export default function CompletePage() { | ||
return ( | ||
<main className={mainWrapperCss}> | ||
<div className={containerCss}> | ||
<div className={contentWrapperCss}> | ||
<div className={titleWrapperCss}> | ||
<span className={titleCss}>오늘의 미션완료!</span> | ||
<span className={subTitleCss}>{'잘 하셨어요, 오늘도 한 걸음 성장하셨네요 :)'}</span> | ||
</div> | ||
<div className={lottieWrapperCss}> | ||
<Lottie loop animationData={lottieJson} play /> | ||
</div> | ||
</div> | ||
<Button type="button" size="large" variant="primary"> | ||
<span className={buttonTextCss}>확인</span> | ||
</Button> | ||
</div> | ||
</main> | ||
); | ||
} | ||
|
||
const mainWrapperCss = css({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
backgroundColor: 'bg.surface2', | ||
height: '100vh', | ||
}); | ||
|
||
const containerCss = css({ | ||
display: 'flex', | ||
flex: 1, | ||
flexDirection: 'column', | ||
justifyContent: 'space-between', | ||
padding: '16px 24px', | ||
}); | ||
|
||
const contentWrapperCss = css({ | ||
flex: 1, | ||
justifyContent: 'center', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
gap: '25px', | ||
}); | ||
|
||
const titleWrapperCss = css({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
textAlign: 'center', | ||
gap: '4px', | ||
}); | ||
|
||
const titleCss = css({ | ||
textStyle: 'title2', | ||
color: 'text.primary', | ||
}); | ||
|
||
const subTitleCss = css({ | ||
textStyle: 'body2', | ||
color: 'text.secondary', | ||
}); | ||
|
||
const lottieWrapperCss = css({}); | ||
|
||
const buttonTextCss = css({ | ||
textStyle: 'subtitle4', | ||
}); |
Large diffs are not rendered by default.
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