-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 Design: ProjectRetro 그룹 삭제 모달창 퍼블리싱
- Loading branch information
Showing
6 changed files
with
135 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { IoMdClose } from 'react-icons/io'; | ||
import { RiFolder6Fill } from 'react-icons/ri'; | ||
import * as S from '@/styles/projectRetro/DeleteModal.styles'; | ||
|
||
interface DeleteModalProps { | ||
isClose: () => void; | ||
// groupId: number; | ||
} | ||
|
||
const DeleteModal: React.FC<DeleteModalProps> = ({ isClose }) => { | ||
return ( | ||
<S.Background> | ||
<S.Container> | ||
<S.Modal> | ||
<S.Top> | ||
<S.Title>회고 프로젝트 삭제</S.Title> | ||
<IoMdClose | ||
onClick={isClose} | ||
size={20} | ||
style={{ color: '#6c6c6c', marginLeft: 'auto', cursor: 'pointer' }} | ||
/> | ||
</S.Top> | ||
<hr /> | ||
<S.Bottom> | ||
<div style={{ display: 'flex', alignItems: 'center' }}> | ||
<RiFolder6Fill size={25} style={{ color: '#FFE500', padding: 0 }} /> | ||
<S.ProjectName>프로젝트1</S.ProjectName> {/* 프로젝트 이름 */} | ||
<S.Text>를 삭제하시겠습니까?</S.Text> | ||
</div> | ||
<S.Button>Delete</S.Button> | ||
</S.Bottom> | ||
</S.Modal> | ||
</S.Container> | ||
</S.Background> | ||
); | ||
}; | ||
|
||
export default DeleteModal; |
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,66 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Background = styled.div` | ||
position: fixed; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.35); | ||
z-index: 350; | ||
`; | ||
|
||
export const Container = styled.div` | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
z-index: 400; | ||
`; | ||
|
||
export const Modal = styled.div` | ||
margin-top: 20px; | ||
display: flex; | ||
flex-direction: column; | ||
background-color: white; | ||
border-radius: 5px; | ||
width: 600px; | ||
height: auto; | ||
`; | ||
|
||
export const Top = styled.div` | ||
padding: 10px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
`; | ||
|
||
export const Title = styled.p` | ||
color: #6c6c6c; | ||
`; | ||
|
||
export const Bottom = styled.div` | ||
padding: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
`; | ||
|
||
export const ProjectName = styled.span` | ||
color: #111b47; | ||
font-size: large; | ||
margin: 0px 5px; | ||
font-weight: bold; | ||
`; | ||
|
||
export const Text = styled.span` | ||
color: #111b47; | ||
`; | ||
|
||
export const Button = styled.button` | ||
color: white; | ||
background-color: #111b47; | ||
border-radius: 5px; | ||
width: auto; | ||
margin-left: auto; | ||
padding: 3px 20px; | ||
`; |
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