-
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/#83/mypage-api
- Loading branch information
Showing
33 changed files
with
719 additions
and
155 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
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,78 @@ | ||
import { styled } from "styled-components"; | ||
|
||
import favicon from "@/assets/favicon.svg"; | ||
|
||
const ChallengeToast = ({ message }: { message: string }) => { | ||
return ( | ||
<ChallengeToastWrapper> | ||
<ChallengeBox> | ||
<> | ||
<img | ||
src={favicon} | ||
width={60} | ||
/> | ||
</> | ||
<div>{message}</div> | ||
</ChallengeBox> | ||
</ChallengeToastWrapper> | ||
); | ||
}; | ||
|
||
const ChallengeToastWrapper = styled.div` | ||
font-family: "Pretendard"; | ||
font-style: normal; | ||
font-weight: 500; | ||
font-size: 18px; | ||
line-height: 22px; | ||
/* identical to box height */ | ||
text-align: center; | ||
color: #272727; | ||
text-align: center; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
background: rgba(0, 0, 0, 0.4); | ||
z-index: 20; | ||
`; | ||
|
||
const ChallengeBox = styled.div` | ||
height: 125px; | ||
width: 390px; | ||
background: #ffffff; | ||
margin: auto; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 12px; | ||
animation: slideUp 1s; | ||
.sqaure { | ||
width: 24px; | ||
height: 24px; | ||
background: #272727; | ||
border: 1px solid #272727; | ||
border-radius: 4px; | ||
margin-bottom: 16px; | ||
@keyframes slideUp { | ||
0% { | ||
transform: translateY(30px); | ||
opacity: 0; | ||
} | ||
100% { | ||
transform: translateY(0); | ||
opacity: 1; | ||
} | ||
} | ||
} | ||
`; | ||
|
||
export default ChallengeToast; |
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
Oops, something went wrong.