-
Notifications
You must be signed in to change notification settings - Fork 0
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 #15 from Team-Wander/feature/approveAppointmentModal
๐ ์ฝ์์น์ธ๋ชจ๋ฌ ์ ์
- Loading branch information
Showing
19 changed files
with
700 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,4 +127,7 @@ dist | |
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
.pnp.* | ||
|
||
# ds_store | ||
.ds_store |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Wanderring-Client | ||
ํ๋ก์ ํธ ์งํ ์ค... | ||
|
||
ํผ๋ธ๋ฆฌ์ฑ ์งํ์ค |
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,62 @@ | ||
import React, { useState } from 'react'; | ||
import * as S from './style'; | ||
import { Profile } from 'components'; | ||
import { | ||
gradeType, | ||
genderType, | ||
} from 'types/Card'; | ||
import MateList from 'components/Post/PostCard/MateList'; | ||
|
||
interface Props { | ||
onClose?: () => void; | ||
} | ||
|
||
interface data { | ||
title: string; | ||
grade: gradeType[]; | ||
gender: genderType; | ||
profile: { | ||
img: string; | ||
name: string; | ||
info: string; | ||
}; | ||
} | ||
|
||
const ApproveAppointmentModal: React.FC< | ||
Props | ||
> = ({ onClose }) => { | ||
const [data, setData] = useState<data>({ | ||
title: 'hello', | ||
grade: ['ONE'], | ||
gender: 'ANY', | ||
profile: { | ||
img: '', | ||
name: '', | ||
info: '', | ||
}, | ||
}); | ||
|
||
return ( | ||
<S.Wrapper> | ||
<S.TitleBox> | ||
<S.Title onClick={onClose}> | ||
{data?.title} | ||
</S.Title> | ||
<MateList | ||
grade={data?.grade} | ||
gender={data?.gender}></MateList> | ||
</S.TitleBox> | ||
<S.Contents onClick={() => setData(data)}> | ||
<Profile /> | ||
<S.ButtonWrapper> | ||
<S.Button agreement>์๋ฝ</S.Button> | ||
<S.Button agreement={false}> | ||
๊ฑฐ์ | ||
</S.Button> | ||
</S.ButtonWrapper> | ||
</S.Contents> | ||
</S.Wrapper> | ||
); | ||
}; | ||
|
||
export default ApproveAppointmentModal; |
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,57 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const Wrapper = styled.div` | ||
display: flex; | ||
width: 42.5rem; | ||
padding: 1rem 1.25rem; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: 1.25rem; | ||
border-radius: 0.5rem; | ||
/* background: white; */ | ||
background: lightgrey; | ||
`; | ||
|
||
export const TitleBox = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 1rem; | ||
`; | ||
|
||
export const Title = styled.h2` | ||
color: var(--BLACK-black, #333); | ||
font-size: 1.125rem; | ||
font-weight: 600; | ||
line-height: 150%; | ||
`; | ||
|
||
export const Contents = styled.div` | ||
display: flex; | ||
width: 100%; | ||
justify-content: space-between; | ||
align-items: center; | ||
`; | ||
|
||
export const ButtonWrapper = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: 1.25rem; | ||
`; | ||
|
||
export const Button = styled.button<{ | ||
agreement: boolean; | ||
}>` | ||
display: flex; | ||
padding: 0.75rem 1.75rem; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 0.625rem; | ||
border: 0; | ||
border-radius: 0.5rem; | ||
background: ${({ theme, agreement }) => | ||
agreement | ||
? theme.color.main | ||
: theme.color.system}; | ||
color: ${({ theme }) => theme.color.white}; | ||
`; |
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
File renamed without changes.
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default as DeclarationModal } from './DeclarationModal'; | ||
export { default as DeclarationModal } from './Declaration'; | ||
export { default as ApproveAppointmentModal } from './ApproveAppointment'; |
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,21 @@ | ||
import React from 'react'; | ||
import * as S from './style'; | ||
|
||
const Profile = () => { | ||
return ( | ||
<S.Container> | ||
<S.ProfileImg | ||
src="https://item.kakaocdn.net/do/493188dee481260d5c89790036be0e668b566dca82634c93f811198148a26065" | ||
alt="์๋ฌด์ฌ์ง" | ||
/> | ||
<S.TextBox> | ||
<S.Name>ํ์ฌํ</S.Name> | ||
<S.School> | ||
๊ด์ฃผ์ํํธ์จ์ด๋ง์ด์คํฐ๊ณ | ||
</S.School> | ||
</S.TextBox> | ||
</S.Container> | ||
); | ||
}; | ||
|
||
export default Profile; |
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,33 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const Container = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 0.75rem; | ||
`; | ||
|
||
export const ProfileImg = styled.img` | ||
border-radius: 100%; | ||
width: 3rem; | ||
height: 3rem; | ||
`; | ||
|
||
export const TextBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: flex-start; | ||
`; | ||
|
||
export const Name = styled.h2` | ||
color: ${({ theme }) => theme.color.gray[800]}; | ||
font-size: 1rem; | ||
${({ theme }) => theme.fontStyle.m3} | ||
`; | ||
|
||
export const School = styled.h2` | ||
color: ${({ theme }) => theme.color.gray[600]}; | ||
font-size: 1rem; | ||
${({ theme }) => theme.fontStyle.m3} | ||
`; |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './Modal'; | ||
export * from './Post'; | ||
export * from './Input'; | ||
export { default as Profile } from './Profile'; |
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,11 @@ | ||
import React from 'react'; | ||
|
||
const NoPage = () => { | ||
return ( | ||
<div> | ||
This Page is not defined. Try another pages | ||
</div> | ||
); | ||
}; | ||
|
||
export default NoPage; |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
export { default as Home } from './home'; | ||
export { default as Write } from './write'; | ||
export { default as InputPage } from './InputPage'; | ||
export { default as Temp } from './temp'; | ||
export { default as NoPage } from './NoPage'; |
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,8 @@ | ||
import React from 'react'; | ||
|
||
const temp = () => { | ||
// ์คํ ๋ฆฌ๋ถ์ ์ฌ์ฉํ์ง ์์ผ๋ ์์๋ก ์ฌ๊ธฐ์๋ค๊ฐ ๋ง๋์ ์ปดํฌ๋ํธ๋ฅผ ์ถ๊ฐํ์ ์ ํ์ธํ์๋ฉด ๋ ๊ฒ ๊ฐ์ต๋๋ค. | ||
return <></>; | ||
}; | ||
|
||
export default temp; |
Oops, something went wrong.