-
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 #79 from softeerbootcamp4th/feat/CLAP-67
feat(CLAP-67): 당첨자 정보 입력 폼 만들기
- Loading branch information
Showing
12 changed files
with
372 additions
and
23 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
27 changes: 27 additions & 0 deletions
27
packages/service/src/apis/orderEvent/apiPostOrderEventApply.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,27 @@ | ||
import { customFetch } from "@watermelon-clap/core/src/utils"; | ||
import { IPostOrderEventApplyRequest } from "./type"; | ||
|
||
export const apiPostOrderEventApply = async ({ | ||
eventId, | ||
quizId, | ||
phoneNumber, | ||
appplyTicket, | ||
}: IPostOrderEventApplyRequest): Promise<Response> => { | ||
return customFetch( | ||
`${import.meta.env.VITE_BACK_BASE_URL}/event/order/${eventId}/${quizId}/apply`, | ||
{ | ||
method: "POST", | ||
headers: { | ||
"Content-Type": "application/json", | ||
ApplyTicket: appplyTicket, | ||
}, | ||
body: JSON.stringify({ phoneNumber: phoneNumber }), | ||
}, | ||
) | ||
.then((response) => { | ||
return response; | ||
}) | ||
.catch((error) => { | ||
throw error; | ||
}); | ||
}; |
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,6 @@ | ||
export interface IPostOrderEventApplyRequest { | ||
eventId: string; | ||
quizId: string; | ||
phoneNumber: string; | ||
appplyTicket: string; | ||
} |
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
134 changes: 134 additions & 0 deletions
134
packages/service/src/pages/NQuizEventWinnerApply/NQuizEventWinnerApply.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,134 @@ | ||
import { css } from "@emotion/react"; | ||
import { mobile } from "@service/common/responsive/responsive"; | ||
import { theme } from "@watermelon-clap/core/src/theme"; | ||
|
||
export const backgroundStyle = css` | ||
background-image: url("/images/quiz/nQuizBackground.png"); | ||
background-size: cover; | ||
background-position: top; | ||
background-repeat: no-repeat; | ||
width: 100%; | ||
${theme.flex.center} | ||
${theme.flex.column} | ||
padding: 100px 18vw; | ||
padding-bottom: 94px; | ||
gap: 20px; | ||
${mobile(css` | ||
min-width: 0px; | ||
padding: 20vw 6vw; | ||
padding-bottom: 47px; | ||
`)}; | ||
`; | ||
|
||
export const logoContainerStyle = css` | ||
${theme.flex.center}; | ||
${theme.gap.gap32}; | ||
${mobile(css` | ||
${theme.gap.gap16}; | ||
`)} | ||
`; | ||
|
||
export const logoStyle = css` | ||
width: 208px; | ||
height: 87px; | ||
text-shadow: 0 0 40px rgba(255, 255, 255, 0.6); | ||
${mobile(css` | ||
width: 104px; | ||
height: 43px; | ||
`)} | ||
`; | ||
|
||
export const titleStyle = css` | ||
${theme.font.pcpB82} | ||
color: ${theme.color.white}; | ||
text-shadow: 0 0 40px rgba(255, 255, 255, 0.6); | ||
${mobile(css` | ||
font-size: 41px; | ||
`)}; | ||
`; | ||
|
||
export const contentContainerStyle = css` | ||
${theme.flex.center}; | ||
${theme.flex.column}; | ||
${theme.gap.gap8}; | ||
${mobile(css` | ||
${theme.gap.gap4}; | ||
`)} | ||
`; | ||
|
||
export const cheersTextStyle = css` | ||
${theme.font.preB38} | ||
color: ${theme.color.eventBlue}; | ||
text-align: center; | ||
${mobile(css` | ||
font-size: 14px; | ||
`)} | ||
`; | ||
|
||
export const contentTextStyle = css` | ||
${theme.font.preB24} | ||
color: ${theme.color.white}; | ||
text-align: center; | ||
${mobile(css` | ||
font-size: 14px; | ||
`)} | ||
`; | ||
|
||
export const inputContainerStyle = css` | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
export const inputStyle = css` | ||
display: flex; | ||
width: 566px; | ||
height: 52px; | ||
padding: 15px 18px; | ||
align-items: center; | ||
gap: 10px; | ||
align-self: stretch; | ||
border-radius: 8px; | ||
background: var(--Gray-100, #ececec); | ||
`; | ||
|
||
export const listStyle = css` | ||
width: 566px; | ||
display: flex; | ||
flex-direction: column; | ||
color: ${theme.color.gray300}; | ||
align-items: start; | ||
gap: 10px; | ||
`; | ||
|
||
export const listItemStyle = css` | ||
${theme.font.preM18} | ||
color: ${theme.color.gray300}; | ||
margin-left: 22px; | ||
`; | ||
|
||
export const rewardContainerStyle = css` | ||
width: 200px; | ||
height: 300px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
export const centeredContainerStyle = css` | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; |
Oops, something went wrong.