-
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 #166 from MeeTeamNumdle/release-1.0
fix: 프로필 편집 페이지, 포트폴리오 작성/편집 페이지, 회원가입 완료 페이지 2차 QA 피드백 배포 브랜치에 적용
- Loading branch information
Showing
8 changed files
with
161 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import styled from 'styled-components'; | ||
|
||
const ModalLayout = styled.div` | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
background: rgba(21, 21, 21, 0.4); | ||
`; | ||
|
||
const ModalContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: 1.8rem 2rem; | ||
border-radius: 1rem; | ||
border: 0.1rem solid var(--box_stroke, #e3e3e3); | ||
background: var(--Grayscale-100, #f8fafb); | ||
`; | ||
|
||
const ModalTitle = styled.h3` | ||
display: flex; | ||
margin-bottom: 2.8rem; | ||
color: var(--text-color, #151515); | ||
/* Headline/h3 */ | ||
font-size: 2rem; | ||
font-weight: 600; | ||
line-height: 2.4rem; /* 120% */ | ||
letter-spacing: 0.004rem; | ||
`; | ||
|
||
const ModalContent = styled.pre` | ||
display: flex; | ||
margin-bottom: 3.4rem; | ||
text-align: center; | ||
white-space: pre-wrap; // 줄바꿈 | ||
/* Body/body2/medium */ | ||
font-size: 1.4rem; | ||
font-weight: 500; | ||
line-height: 2.4rem; | ||
letter-spacing: 0.0028rem; | ||
`; | ||
|
||
const ModalRow = styled.div<{ $gap?: string }>` | ||
flex: 1; | ||
display: flex; | ||
flex-direction: row; | ||
column-gap: ${props => props.$gap}; | ||
align-items: center; | ||
`; | ||
|
||
const S = { ModalLayout, ModalContainer, ModalTitle, ModalContent, ModalRow }; | ||
|
||
export default S; |
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,44 @@ | ||
import React from 'react'; | ||
import S from './Modal.styled'; | ||
import { DefaultBtn, PrimaryBtn } from '../index'; | ||
|
||
interface Modal { | ||
title: string; | ||
content: string; | ||
defaultBtn: Button; | ||
primaryBtn: Button; | ||
} | ||
|
||
interface Button { | ||
title: string; | ||
handleClick: () => void; | ||
} | ||
|
||
const Modal = ({ title, content, defaultBtn, primaryBtn }: Modal) => { | ||
return ( | ||
<S.ModalLayout> | ||
<S.ModalContainer> | ||
<S.ModalTitle>{title}</S.ModalTitle> | ||
<S.ModalContent>{content}</S.ModalContent> | ||
<S.ModalRow $gap='1.6rem'> | ||
<div> | ||
<DefaultBtn | ||
title={defaultBtn.title} | ||
type='button' | ||
handleClick={defaultBtn.handleClick} | ||
/> | ||
</div> | ||
<div> | ||
<PrimaryBtn | ||
title={primaryBtn.title} | ||
type='button' | ||
handleClick={primaryBtn.handleClick} | ||
/> | ||
</div> | ||
</S.ModalRow> | ||
</S.ModalContainer> | ||
</S.ModalLayout> | ||
); | ||
}; | ||
|
||
export default Modal; |
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