-
Notifications
You must be signed in to change notification settings - Fork 2
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 #80 from softeerbootcamp4th/feat/CLAP-141
Feat(CLAP-141): 응모 완료 페이지
- Loading branch information
Showing
13 changed files
with
402 additions
and
45 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
18 changes: 18 additions & 0 deletions
18
packages/service/src/apis/expectation/apiPostExpectation.ts
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,18 @@ | ||
import { customFetch, getAccessToken } from "@watermelon-clap/core/src/utils"; | ||
|
||
export const apiPostExpectation = (expectation: string) => | ||
customFetch( | ||
` | ||
${import.meta.env.VITE_BACK_BASE_URL}/expectations | ||
`, | ||
{ | ||
method: "POST", | ||
body: JSON.stringify({ | ||
expectation: expectation, | ||
}), | ||
headers: { | ||
"Content-Type": "application/json", | ||
Authorization: `Bearer ${getAccessToken()}`, | ||
}, | ||
}, | ||
); |
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,13 @@ | ||
import { customFetch, getAccessToken } from "@watermelon-clap/core/src/utils"; | ||
|
||
interface IApiGetMyShareLink { | ||
link: string; | ||
} | ||
|
||
export const apiGetMyShareLink = (): Promise<IApiGetMyShareLink> => { | ||
return customFetch(`${import.meta.env.VITE_BACK_BASE_URL}/link`, { | ||
headers: { | ||
Authorization: `Bearer ${getAccessToken()}`, | ||
}, | ||
}).then((res) => res.json()); | ||
}; |
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 { customFetch, getAccessToken } from "@watermelon-clap/core/src/utils"; | ||
|
||
interface IApiGetLotteryStatus { | ||
rank: number; | ||
miniature: boolean; | ||
applied: boolean; | ||
} | ||
|
||
export const apiGetLotteryStatus = (): Promise<IApiGetLotteryStatus> => | ||
customFetch(`${import.meta.env.VITE_BACK_BASE_URL}/event/lotteries/rank`, { | ||
headers: { | ||
Authorization: `Bearer ${getAccessToken()}`, | ||
}, | ||
}).then((res) => { | ||
return res.json(); | ||
}); |
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
97 changes: 97 additions & 0 deletions
97
packages/service/src/pages/LotteryApplyFinish/LotteryApplyFinish.css.ts
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,97 @@ | ||
import { css } from "@emotion/react"; | ||
import { mobile } from "@service/common/responsive/responsive"; | ||
import { theme } from "@watermelon-clap/core/src/theme"; | ||
|
||
export const mainBg = css` | ||
background-image: url("/images/common/main-bg.webp"); | ||
background-size: cover; | ||
padding-bottom: 200px; | ||
color: white; | ||
${mobile(css` | ||
padding-bottom: 100px; | ||
`)} | ||
`; | ||
|
||
export const pageTitle = css` | ||
text-align: center; | ||
${theme.font.pcpB} | ||
font-size : calc(50px + 2vw); | ||
padding-top: 120px; | ||
color: ${theme.color.white}; | ||
${mobile(css` | ||
font-size: calc(20px + 2vw); | ||
padding: 100px 0 50px 0; | ||
`)} | ||
`; | ||
export const applyBtn = (isExpectationNull: boolean) => css` | ||
padding: 50px 50px; | ||
height: 100px; | ||
background-color: ${isExpectationNull | ||
? theme.color.gray400 | ||
: theme.color.eventBlue}; | ||
color: ${isExpectationNull ? theme.color.gray300 : theme.color.white}; | ||
cursor: ${isExpectationNull ? "default" : "pointer"}; | ||
&:active { | ||
background-color: ${isExpectationNull && theme.color.gray400}; | ||
} | ||
width: fit-content; | ||
`; | ||
|
||
export const sectionTitle = css` | ||
${theme.font.pcB28}; | ||
${mobile(css` | ||
font-size: 24px; | ||
`)} | ||
`; | ||
|
||
export const btn = css` | ||
margin: 0 auto; | ||
background-color: ${theme.color.gray100}; | ||
color: black; | ||
${theme.font.preB} | ||
font-size : 24px; | ||
&:hover { | ||
background-color: ${theme.color.gray200}; | ||
} | ||
${mobile(css` | ||
padding: 10px 20px; | ||
width: 200px; | ||
`)} | ||
`; | ||
|
||
export const shareLinkBox = css` | ||
background-color: ${theme.color.gray100}; | ||
color: ${theme.color.gray300}; | ||
${theme.font.preM14} | ||
border-radius: 10px; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
padding: 16px 18px; | ||
width: 400px; | ||
${mobile(css` | ||
width: 100%; | ||
padding: 10px; | ||
`)} | ||
`; | ||
|
||
export const expectationInput = css` | ||
padding: 18px; | ||
height: 100px; | ||
resize: none; | ||
width: 600px; | ||
border-radius: 14px; | ||
background-color: ${theme.color.gray100}; | ||
outline: none; | ||
${mobile(css` | ||
width: 100%; | ||
`)} | ||
`; |
Oops, something went wrong.