-
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
6 changed files
with
177 additions
and
11 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 |
---|---|---|
|
@@ -162,7 +162,7 @@ | |
font-weight: 500; | ||
line-height: 160%; | ||
border: none; | ||
|
||
&--disable { | ||
background-color: #cacaca; | ||
} | ||
|
106 changes: 106 additions & 0 deletions
106
...hopRegistration/view/Mobile/ShopRegistrationComplete/ShopRegistrationComplete.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,106 @@ | ||
@use "src/utils/styles/mediaQuery" as media; | ||
|
||
.content { | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
@include media.media-breakpoint-down(mobile) { | ||
height: calc(100vh - 200px); | ||
} | ||
|
||
&__complete { | ||
width: 160px; | ||
height: 160px; | ||
border-radius: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border: 8px solid #f7941e; | ||
margin-bottom: 72px; | ||
|
||
@include media.media-breakpoint-down(mobile) { | ||
width: 55px; | ||
height: 55px; | ||
border: 3px solid #f7941e; | ||
margin-bottom: 25px; | ||
} | ||
|
||
&--check-image { | ||
width: 74px; | ||
|
||
@include media.media-breakpoint-down(mobile) { | ||
width: 26px; | ||
} | ||
} | ||
} | ||
|
||
&__title { | ||
display: block; | ||
width: auto; | ||
text-align: center; | ||
font-size: 36px; | ||
font-weight: 700; | ||
color: #175c8e; | ||
margin-bottom: 24px; | ||
|
||
@include media.media-breakpoint-down(mobile) { | ||
font-size: 24px; | ||
margin-bottom: 18px; | ||
} | ||
} | ||
|
||
&__text { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 5px; | ||
text-align: center; | ||
font-size: 16px; | ||
font-weight: 400; | ||
margin-bottom: 80px; | ||
color: #858585; | ||
} | ||
|
||
&__link { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 368px; | ||
height: 48px; | ||
font-weight: 500; | ||
color: #ffffff; | ||
background-color: #175c8e; | ||
text-decoration: none; | ||
|
||
&:hover { | ||
cursor: pointer; | ||
} | ||
|
||
@include media.media-breakpoint-down(mobile) { | ||
width: 82%; | ||
} | ||
} | ||
|
||
&__more { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
width: 368px; | ||
height: 48px; | ||
font-weight: 500; | ||
color: #ffffff; | ||
background-color: #f7941e; | ||
text-decoration: none; | ||
margin-bottom: 24px; | ||
|
||
&:hover { | ||
cursor: pointer; | ||
} | ||
|
||
@include media.media-breakpoint-down(mobile) { | ||
width: 82%; | ||
} | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
src/page/ShopRegistration/view/Mobile/ShopRegistrationComplete/index.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,63 @@ | ||
import { Link } from 'react-router-dom'; | ||
import Check from 'assets/svg/auth/check.svg?react'; | ||
import useStepStore from 'store/useStepStore'; | ||
import useShopRegistrationStore from 'store/shopRegistration'; | ||
import styles from './ShopRegistrationComplete.module.scss'; | ||
|
||
interface CompleteProps { | ||
title: string; | ||
topText: string; | ||
bottomText: string; | ||
} | ||
|
||
export default function ShopRegistrationComplete({ | ||
title, topText, bottomText, | ||
}: CompleteProps) { | ||
const { setStep } = useStepStore(); | ||
const { | ||
setCategory, | ||
setCategoryId, | ||
setImageUrls, | ||
setName, | ||
setAddress, | ||
setPhone, | ||
setDeliveryPrice, | ||
setDescription, | ||
setDelivery, | ||
setPayBank, | ||
setPayCard, | ||
} = useShopRegistrationStore(); | ||
|
||
const initialize = () => { | ||
setStep(0); | ||
setCategory(''); | ||
setCategoryId(0); | ||
setDelivery(false); | ||
setDeliveryPrice(0); | ||
setDescription(''); | ||
setImageUrls([]); | ||
setName(''); | ||
setPayBank(false); | ||
setPayCard(false); | ||
setPhone(''); | ||
setAddress(''); // 전역 상태 초기화 | ||
}; | ||
return ( | ||
<div className={styles.content}> | ||
<div className={styles.content__complete}> | ||
<Check className={styles['content__complete--check-image']} /> | ||
</div> | ||
<span className={styles.content__title}>{title}</span> | ||
<div className={styles.content__text}> | ||
<span> | ||
{topText} | ||
</span> | ||
<span> | ||
{bottomText} | ||
</span> | ||
</div> | ||
<Link to="/owner" className={styles.content__more} onClick={initialize}>내 상점 바로가기</Link> | ||
<Link to="/owner/shop-registration" className={styles.content__link} onClick={initialize}>가게 추가 등록하기</Link> | ||
</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