-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
로그인 완료 페이지 구현 이메일로 로그인 페이지 후 로그인 완료 페이지 오픈 로그인 완료 페이지 클로즈 후 로그아웃헤더->로그인 헤더 Issues #15
- Loading branch information
김병현
authored and
김병현
committed
Sep 10, 2023
1 parent
8cc4af0
commit 2af19ec
Showing
4 changed files
with
119 additions
and
11 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,66 @@ | ||
// LoginConfirmationModal.tsx | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const LoginConfirmationModal: React.FC<LoginConfirmationProps> = ({ onClose }) => { | ||
const messageText = "로그인이 성공적으로 완료되었습니다!"; | ||
const confirmText = "확인" | ||
|
||
return ( | ||
<ModalBackground> | ||
<ModalContainer> | ||
<Message>{messageText}</Message> | ||
<ConfirmButton onClick={onClose}>{confirmText}</ConfirmButton> | ||
</ModalContainer> | ||
</ModalBackground> | ||
); | ||
}; | ||
|
||
export default LoginConfirmationModal; | ||
|
||
interface LoginConfirmationProps { | ||
onClose: () => void; | ||
} | ||
|
||
// ... Styled Components for ModalBackground, ModalContainer, Message, ConfirmButton ... | ||
const ModalBackground = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.5); | ||
`; | ||
|
||
const ModalContainer = styled.div` | ||
position: relative; | ||
background-color: white; | ||
padding: 20px; | ||
width: 400px; | ||
border-radius: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
`; | ||
|
||
const Message = styled.h2` | ||
margin-bottom: 20px; | ||
font-size: 1.6rem; | ||
font-weight: 400; | ||
`; | ||
|
||
|
||
// 확인 버튼 스타일 | ||
const ConfirmButton = styled.button` | ||
width: 100%; | ||
padding: 10px; | ||
margin-top: 10px; | ||
background-color: darkslategray; | ||
color: white; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
`; |
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