-
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 branch 'develop' into feat/#42
- Loading branch information
Showing
77 changed files
with
1,899 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ on: | |
pull_request: | ||
branches: | ||
- develop | ||
paths: | ||
- "**.stories.tsx" | ||
|
||
jobs: | ||
chromatic-deployment: | ||
|
Binary file not shown.
Binary file added
BIN
+12.9 KB
.yarn/cache/@radix-ui-react-compose-refs-npm-1.1.1-2480de3ef9-3e84580024.zip
Binary file not shown.
Binary file added
BIN
+29.2 KB
.yarn/cache/@radix-ui-react-context-npm-1.1.1-bafaecc686-fc4ace9d79.zip
Binary file not shown.
Binary file added
BIN
+99.6 KB
.yarn/cache/@radix-ui-react-dialog-npm-1.1.5-56b8cc7ab3-486f1b6cb9.zip
Binary file not shown.
Binary file added
BIN
+66.8 KB
.yarn/cache/@radix-ui-react-dismissable-layer-npm-1.1.4-c9500c86c8-8657bf3e7e.zip
Binary file not shown.
Binary file added
BIN
+11.9 KB
.yarn/cache/@radix-ui-react-focus-guards-npm-1.1.1-81f7ac7cf0-2e99750ca5.zip
Binary file not shown.
Binary file added
BIN
+60.9 KB
.yarn/cache/@radix-ui-react-focus-scope-npm-1.1.1-eaf894ac65-a430264a32.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+12.1 KB
.yarn/cache/@radix-ui-react-portal-npm-1.1.3-4dd747e0ee-b3cd1a8151.zip
Binary file not shown.
Binary file added
BIN
+38.2 KB
.yarn/cache/@radix-ui-react-presence-npm-1.1.2-9951e170a0-0c6fa28136.zip
Binary file not shown.
Binary file added
BIN
+22.3 KB
.yarn/cache/@radix-ui-react-primitive-npm-2.0.1-a63c88e534-6a562bec14.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.09 KB
.yarn/cache/@radix-ui-react-use-callback-ref-npm-1.1.0-1727bf35c9-e954863f3b.zip
Binary file not shown.
Binary file added
BIN
+14.2 KB
.yarn/cache/@radix-ui-react-use-controllable-state-npm-1.1.0-53300dd6f2-2af883b5b2.zip
Binary file not shown.
Binary file added
BIN
+9.5 KB
.yarn/cache/@radix-ui-react-use-escape-keydown-npm-1.1.0-2bbf5ae5e9-910fd696e5.zip
Binary file not shown.
Binary file added
BIN
+7.81 KB
.yarn/cache/@radix-ui-react-use-layout-effect-npm-1.1.0-710cee2d09-9bf87ece18.zip
Binary file not shown.
Binary file added
BIN
+12.2 KB
.yarn/cache/@radix-ui-react-visually-hidden-npm-1.1.1-d1e551a0fa-9a34b8e09d.zip
Binary file not shown.
Binary file added
BIN
+11.6 KB
.yarn/cache/@types-canvas-confetti-npm-1.9.0-128dcb43d0-ffe2c674d4.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+30.5 KB
.yarn/cache/react-remove-scroll-bar-npm-2.3.8-21a578f734-9a0675c66c.zip
Binary file not shown.
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
Binary file not shown.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions
45
src/components/CreateReviewLoading/CreateReviewLoading.module.scss
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,45 @@ | ||
.CreateReviewLoading { | ||
padding-left: 1.25rem; | ||
padding-right: 1.25rem; | ||
padding-bottom: 2.5rem; | ||
height: 100vh; | ||
overflow: hidden; | ||
background: var(--color-bg-gradient); | ||
display: flex; | ||
flex-direction: column; | ||
|
||
&::before { | ||
content: ""; | ||
background: url("/src/assets/svg/img-graphic-main.svg") center no-repeat; | ||
background-size: 100% 16.375rem; | ||
filter: blur(4.625rem); | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: 0; | ||
} | ||
} | ||
|
||
.Title { | ||
margin-top: 7.5rem; | ||
z-index: 1; | ||
|
||
& > h2 { | ||
margin-top: 0.625rem; | ||
} | ||
} | ||
|
||
.Image { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: 6.25rem; | ||
z-index: 1; | ||
|
||
& > img { | ||
width: 13.125rem; | ||
height: 13.125rem; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/components/CreateReviewLoading/CreateReviewLoading.tsx
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,23 @@ | ||
import styles from "@/components/CreateReviewLoading/CreateReviewLoading.module.scss"; | ||
import Text from "@/components/ui/Text/Text"; | ||
|
||
const CreateReviewLoading = () => { | ||
return ( | ||
<div className={styles.CreateReviewLoading}> | ||
<div className={styles.Title}> | ||
<Text variant="titleM" color="gradient" align="center" as="h1"> | ||
리뷰를 만들고 있어요 | ||
</Text> | ||
<Text variant="bodyLg" color="secondary" align="center" as="h2"> | ||
최대 30초까지 소요될 수 있어요 | ||
</Text> | ||
</div> | ||
|
||
<div className={styles.Image}> | ||
<img src="/assets/img/img-loading.webp" alt="createReviewImg" /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CreateReviewLoading; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.ReviewResult { | ||
padding: 1.25rem; | ||
padding-bottom: 2.5rem; | ||
height: calc(100vh - 2.75rem); | ||
overflow: hidden; | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
background: var(--color-bg-gradient); | ||
justify-content: space-between; | ||
|
||
&::before { | ||
content: ""; | ||
background: url("/src/assets/svg/img-graphic-main.svg") center no-repeat; | ||
background-size: 100% 16.375rem; | ||
filter: blur(4.625rem); | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: 0; | ||
} | ||
} | ||
|
||
.Top { | ||
z-index: 1; | ||
|
||
.TitleBox { | ||
display: flex; | ||
justify-content: center; | ||
margin: 1.875rem 0; | ||
} | ||
} | ||
|
||
.Bottom { | ||
align-items: center; | ||
gap: 0.875rem; | ||
z-index: 1; | ||
display: grid; | ||
grid-template-columns: 30% 1fr; | ||
} | ||
|
||
.ReceiptImage { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: 1; | ||
|
||
& > img { | ||
width: 7.5rem; | ||
height: 7.5rem; | ||
} | ||
} | ||
|
||
.IconBtn { | ||
width: 6.15625rem; | ||
margin-top: 0.625rem; | ||
margin-left: auto; | ||
} |
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,67 @@ | ||
import { useEffect } from "react"; | ||
|
||
import confetti from "canvas-confetti"; | ||
|
||
import HomeNavigateConfirmModal from "@/components/HomeNavigateConfirmModal/HomeNavigateConfirmModal"; | ||
import styles from "@/components/ReviewResult/ReviewResult.module.scss"; | ||
import Button from "@/components/ui/Button/Button"; | ||
import IconButton from "@/components/ui/IconButton/IconButton"; | ||
import Text from "@/components/ui/Text/Text"; | ||
|
||
import { useOverlay } from "@/hooks/common/useOverlay"; | ||
|
||
import type { Options as ConfettiOptions } from "canvas-confetti"; | ||
|
||
const ReviewResult = () => { | ||
const { isOpen, handleClose, handleOpen } = useOverlay(); | ||
|
||
const handleConfetti = () => { | ||
const setting: ConfettiOptions = { | ||
particleCount: 100, | ||
spread: 100, | ||
origin: { y: 0.2 }, | ||
colors: ["#f4abfe", "#cd90f2", "#eff0ff", "#6f91ff"], | ||
ticks: 50, | ||
}; | ||
|
||
confetti({ | ||
...setting, | ||
}); | ||
}; | ||
|
||
useEffect(() => { | ||
handleConfetti(); | ||
}, []); | ||
|
||
return ( | ||
<div className={styles.ReviewResult}> | ||
<div className={styles.Top}> | ||
<div className={styles.ReceiptImage}> | ||
<img src="/assets/img/img-style-cute-circle.png" alt="mainLogo" /> | ||
</div> | ||
<div className={styles.TitleBox}> | ||
<Text variant="titleM" color="gradient" as="h1" truncated> | ||
리뷰를 만들었어요! | ||
</Text> | ||
</div> | ||
|
||
<Text variant="bodyLg" color="primary"> | ||
오늘 처음으로 청담커피 앤 토스트에서 주문했어요.. 매장도 깔끔하고 직원들도 친절해요! | ||
음료랑 토스트 세트 시켰는데 가성비가 좋네요… 맛도 좋고 양도 많아요!! 다음에도 또 시켜먹을 | ||
거예요. | ||
</Text> | ||
<div className={styles.IconBtn}> | ||
<IconButton text="복사하기" iconName="paste" size="sm" /> | ||
</div> | ||
</div> | ||
<div className={styles.Bottom}> | ||
<Button text="다시생성" variant="secondary" /> | ||
<Button text="홈으로 가기" onClick={handleOpen} /> | ||
</div> | ||
|
||
<HomeNavigateConfirmModal isOpen={isOpen} handleClose={handleClose} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ReviewResult; |
Oops, something went wrong.