diff --git a/src/App.jsx b/src/App.jsx index 6fb188c..a0a1534 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -10,6 +10,7 @@ import SignUp from './pages/SignUp'; import CheckPointRecordPage from './Dispose/CheckPointRecordPage'; import AnotherCheckPointRecordPage from './Dispose/AnotherCheckPointRecordPage'; import JoinGroupPopup from './components/popup/JoinGroupPopup/JoinGroupPop'; +import SecessionUserPopup from './components/popup/SecessionUserPopup/SecessionUserPopup'; import MyPage from './pages/MyPage'; function App() { @@ -19,7 +20,6 @@ function App() {
- } /> } /> } /> } /> @@ -34,6 +34,10 @@ function App() { element={} /> } /> + } + />
diff --git a/src/components/popup/JoinGroupPopup/JoinGroupPop.jsx b/src/components/popup/JoinGroupPopup/JoinGroupPop.jsx index ae6c313..500fca6 100644 --- a/src/components/popup/JoinGroupPopup/JoinGroupPop.jsx +++ b/src/components/popup/JoinGroupPopup/JoinGroupPop.jsx @@ -33,7 +33,8 @@ const Title = styled.div` line-height: 35px; /* identical to box height */ - color: #ab0909; + color: ${(props) => props.theme.colors.main}; + font-style: normal; /* Inside auto layout */ flex: none; diff --git a/src/components/popup/SecessionUserPopup/SecessionUserPopup.jsx b/src/components/popup/SecessionUserPopup/SecessionUserPopup.jsx new file mode 100644 index 0000000..e58c96c --- /dev/null +++ b/src/components/popup/SecessionUserPopup/SecessionUserPopup.jsx @@ -0,0 +1,166 @@ +import React, { useState, useEffect } from 'react'; +import { + PopupContainer, + PopupInner, +} from '../../../styled_components/popupStyle'; +import useClosePopupAnimation from '../../../hooks/useClosePopupAnimation'; +import styled from 'styled-components'; +import LGButton from '../../LGButton/LGButton'; + +const PopUpInnerBox1 = styled.div` + overflow: hidden; + display: flex; + flex-direction: column; + align-items: center; + padding: 60px 40px; + gap: 40px; + + width: 40%; + height: 90%; + + background: #ffffff; + border-radius: 20px; + .input_secession { + box-sizing: border-box; + + width: 372px; + height: 50px; + + border: 1px solid #bbbbbb; + border-radius: 10px; + } +`; +const Title = styled.div` + /* 그룹 정보 */ + + font-family: ${(props) => props.theme.font.main}; + font-style: normal; + font-weight: 700; + font-size: 28px; + line-height: 35px; + /* identical to box height */ + + color: ${(props) => props.theme.colors.main}; + + /* Inside auto layout */ + flex: none; + order: 0; + flex-grow: 0; +`; +const Content = styled.div` + font-family: ${(props) => props.theme.font.main}; + font-size: 1rem; + line-height: 35px; + color: black; + .red { + color: ${(props) => props.theme.colors.main}; + } + .red-bold { + color: ${(props) => props.theme.colors.main}; + font-weight: 700; + } +`; + +const ButtonContainer = styled.div` + display: flex; + flex-direction: row; + width: 100%; + justify-content: space-around; +`; + +const Circle = styled.div` + /* Frame 52901 */ + + /* Auto layout */ + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + padding: 20px; + gap: 10px; + + width: 50px; + height: 50px; + + background-color: ${(props) => props.theme.colors.sub}; + border-radius: 50px; + + /* Inside auto layout */ + flex: none; + order: 0; + flex-grow: 0; +`; +const SecessionUserPopup = ({ onClose = false }) => { + const [isClosing, setIsClosing] = useState(false); // 닫힘 상태 관리 + const [inputValue, setInputValue] = useState(''); // input 값 관리 + + const handleClose = () => { + setIsClosing(true); // 닫히는 애니메이션 시작 + }; + + // input 값 변경 핸들러 추가 + const handleInputChange = (e) => { + setInputValue(e.target.value); + }; + + useClosePopupAnimation(isClosing, onClose); + + return ( + + + + + + + + + 계정 삭제 요청 + + 계정 삭제 완료 시{' '} + 데이터가 삭제되며 복구할 수 없습니다. +
위 내용에 동의하실 경우 입력창 내에
+ ‘탈퇴하겠습니다’ 글자를 + 입력해주세요. +
+ + + + + +
+
+
+ ); +}; + +export default SecessionUserPopup;