-
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 pull request #168 from YAPP-Github/dev
Release 0.1.7
- Loading branch information
Showing
47 changed files
with
841 additions
and
217 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VITE_KAKAO_JAVASCRIPT_KEY=02e0caae3e4116da61d734a06528cd86 | ||
VITE_KAKAO_RESTAPI_KEY=09bebf5106adf50d6a204a7ac2c22779 | ||
VITE_KAKAO_OPEN_URL=https://kauth.kakao.com/oauth/authorize?client_id={clientId}&redirect_uri={redirectUri}&response_type=code&prompt=login | ||
VITE_SERVER_URL=http://49.50.175.112:8080 | ||
VITE_SERVER_URL=https://lonessum.com/api |
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,4 +1,4 @@ | ||
VITE_KAKAO_JAVASCRIPT_KEY=02e0caae3e4116da61d734a06528cd86 | ||
VITE_KAKAO_RESTAPI_KEY=09bebf5106adf50d6a204a7ac2c22779 | ||
VITE_KAKAO_OPEN_URL=https://kauth.kakao.com/oauth/authorize?client_id={clientId}&redirect_uri={redirectUri}&response_type=code&prompt=login | ||
VITE_SERVER_URL=http://49.50.175.112:8080 | ||
VITE_SERVER_URL=https://lonessum.com/api |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import { palette } from '@/lib/styles/palette'; | ||
import styled from 'styled-components'; | ||
import KakaoCopyBox from './KakaoCopyBox'; | ||
import { DatingPartnerSurvey } from '@/types/dating'; | ||
import { memo } from 'react'; | ||
import { conversionBody, conversionCharacter, conversionDateCount } from '@/utils/converson'; | ||
|
||
function DatingEndBox({ age, areas, body, characteristic, dateCount, department, height, isSmoke, kakaoId, university }: DatingPartnerSurvey) { | ||
return ( | ||
<div> | ||
<MatchingInfoBox> | ||
<FlexLine> | ||
<InfoLabel>나이</InfoLabel> | ||
<InfoText>{age}</InfoText> | ||
</FlexLine> | ||
<FlexLine> | ||
<InfoLabel>키</InfoLabel> | ||
<InfoText>{height}</InfoText> | ||
</FlexLine> | ||
<FlexLine> | ||
<InfoLabel>학교</InfoLabel> | ||
<InfoText>{university}</InfoText> | ||
</FlexLine> | ||
<FlexLine> | ||
<InfoLabel>학과</InfoLabel> | ||
<InfoFlexText>{department}</InfoFlexText> | ||
</FlexLine> | ||
<FlexLine> | ||
<InfoLabel>성격</InfoLabel> | ||
<InfoText>{conversionCharacter(characteristic)}</InfoText> | ||
</FlexLine> | ||
<FlexLine> | ||
<InfoLabel>학과</InfoLabel> | ||
<InfoFlexText>{department}</InfoFlexText> | ||
</FlexLine> | ||
<FlexLine> | ||
<InfoLabel>지역</InfoLabel> | ||
<InfoText>{areas.join(',')}</InfoText> | ||
</FlexLine> | ||
<FlexLine> | ||
<InfoLabel>체형</InfoLabel> | ||
<InfoText>{conversionBody(body)}</InfoText> | ||
</FlexLine> | ||
<FlexLine> | ||
<InfoLabel>흡연자 유무</InfoLabel> | ||
<InfoText>{isSmoke ? '네' : '아니오'}</InfoText> | ||
</FlexLine> | ||
<FlexLine> | ||
<InfoLabel>연애 횟수</InfoLabel> | ||
<InfoText>{conversionDateCount(dateCount)}</InfoText> | ||
</FlexLine> | ||
</MatchingInfoBox> | ||
<KakaoCopyBox kakaoId={kakaoId} /> | ||
<EtcBox> | ||
<EtcEle href="https://docs.google.com/forms/d/e/1FAIpQLSeSnI-tB9acPtCepl-FM8cCTF-uezGOJ5SjwFOdQ6DT92xjmQ/viewform" target="_blank"> | ||
후기작성 | ||
</EtcEle> | ||
| | ||
<EtcEle href="https://docs.google.com/forms/d/e/1FAIpQLSfTSBwk6bb0ywTBoHu4cZM1gV8DN0OjMB4jVFvdzbYDrjnJdg/viewform" target="_blank"> | ||
신고하기 | ||
</EtcEle> | ||
</EtcBox> | ||
</div> | ||
); | ||
} | ||
const MatchingInfoBox = styled.div` | ||
width: 100%; | ||
padding: 20px 0 5px 20px; | ||
background-color: ${palette.grayLight}; | ||
border-radius: 4px; | ||
font-size: 12px; | ||
margin-bottom: 8px; | ||
`; | ||
|
||
const InfoLabel = styled.div` | ||
font-weight: 700; | ||
padding: 2px 2px 10px 6px; | ||
min-width: 60px; | ||
text-align: left; | ||
line-height: 16px; | ||
`; | ||
|
||
const InfoText = styled.div` | ||
font-weight: 400; | ||
padding-top: 2px; | ||
line-height: 16px; | ||
text-align: left; | ||
`; | ||
const InfoFlexText = styled(InfoText)` | ||
display: flex; | ||
`; | ||
|
||
const FlexLine = styled.div` | ||
display: flex; | ||
justify-content: left; | ||
`; | ||
const EtcBox = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: ${palette.explanationColor}; | ||
`; | ||
const EtcEle = styled.a` | ||
font-size: 12px; | ||
display: flex; | ||
width: 100%; | ||
height: 28px; | ||
justify-content: center; | ||
align-items: center; | ||
cursor: pointer; | ||
`; | ||
export default memo(DatingEndBox); |
Oops, something went wrong.