-
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.
Merge pull request #176 from ASAP-as-soon-as-possible/develop
release 1.0.0 -> main
- Loading branch information
Showing
9 changed files
with
157 additions
and
39 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,15 @@ | ||
--- | ||
name: Refactor request | ||
about: 기능 리팩토링 템플릿 | ||
title: "[Refactor] 제목" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## 🛠 Issue | ||
<!-- 이슈에 대해 간략하게 설명해주세요 --> | ||
- | ||
## 📝 To-do | ||
<!-- 진행할 작업에 대해 적어주세요 --> | ||
- [ ] todo! |
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,92 @@ | ||
import { Link, useParams } from 'react-router-dom'; | ||
import React, { Dispatch, SetStateAction, useState } from 'react'; | ||
|
||
import { ExitIc } from 'components/Icon/icon'; | ||
import Text from 'components/atomComponents/Text'; | ||
import styled from 'styled-components/macro'; | ||
import { theme } from 'styles/theme'; | ||
|
||
interface ModalProps { | ||
setIsLoginModalOpen: Dispatch<SetStateAction<boolean>>; | ||
} | ||
|
||
function IncorrectInfoModal({ setIsLoginModalOpen }: ModalProps) { | ||
return ( | ||
<ReturnModalWrpper> | ||
<ModalSection> | ||
<IconCatainer onClick={() => setIsLoginModalOpen(false)}> | ||
<ExitIc /> | ||
</IconCatainer> | ||
|
||
<MentContainer> | ||
<Text font={`body2`} color={`${theme.colors.white}`}> | ||
유효하지 않은 사용자 이름 | ||
</Text> | ||
<Text font={`body2`} color={`${theme.colors.white}`}> | ||
또는 비밀번호 입니다. | ||
</Text> | ||
</MentContainer> | ||
<ModalBtn onClick={()=> setIsLoginModalOpen(false)}> | ||
<Text font={`body2`} color={`${theme.colors.white}`}> | ||
다시 입력하기 | ||
</Text> | ||
</ModalBtn> | ||
</ModalSection> | ||
</ReturnModalWrpper> | ||
); | ||
} | ||
|
||
export default IncorrectInfoModal; | ||
|
||
const ReturnModalWrpper = styled.div` | ||
display: flex; | ||
position: absolute; | ||
left: 0; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: rgba(0, 0, 0, 0.6); | ||
width: 100%; | ||
height: 100vh; | ||
`; | ||
|
||
const ModalSection = styled.article` | ||
display: flex; | ||
position: relative; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 0.8rem; | ||
background-color: ${({ theme }) => theme.colors.grey8}; | ||
width: 28.8rem; | ||
height: 21.2rem; | ||
`; | ||
|
||
const IconCatainer = styled.div` | ||
display: flex; | ||
position: absolute; | ||
top: 0.8rem; | ||
right: 0.8rem; | ||
align-items: center; | ||
justify-content: center; | ||
cursor: pointer; | ||
width: 3.2rem; | ||
height: 3.2rem; | ||
`; | ||
|
||
const MentContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: 1.2rem; | ||
`; | ||
const ModalBtn = styled.button` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin-top: 2.4rem; | ||
border-radius: 0.6rem; | ||
background-color: ${({ theme }) => theme.colors.main1}; | ||
width: 17.6rem; | ||
height: 4.2rem; | ||
`; |
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