-
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 #76 from prgrms-web-devcourse-final-project/27-des…
…ign/my-and-setting-page [Design] #45 마이페이지 알림 설정 페이지
- Loading branch information
Showing
6 changed files
with
125 additions
and
9 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
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,39 @@ | ||
import * as S from './styles' | ||
import { PrevButton } from '~components/Button/PrevButton/styles' | ||
import { Typo17 } from '~components/Typo' | ||
import ToggleArea from '~components/ToggleArea' | ||
import ToggleBox from '~components/ToggleBox' | ||
type SettingModalProps = { | ||
isOpen: boolean | ||
onClose: () => void | ||
} | ||
|
||
export default function SettingModal({ isOpen, onClose }: SettingModalProps) { | ||
if (!isOpen) return null | ||
|
||
return ( | ||
<S.SettingModalContainer> | ||
<S.Header> | ||
<S.BackButton onClick={onClose}> | ||
<PrevButton size={28} /> | ||
</S.BackButton> | ||
<S.TitleWrap> | ||
<Typo17 weight='700'>설정</Typo17> | ||
</S.TitleWrap> | ||
</S.Header> | ||
|
||
<S.Content> | ||
<S.AllButtonWrapper> | ||
<ToggleBox type='lg' setting='allNotifications' /> | ||
</S.AllButtonWrapper> | ||
<ToggleArea /> | ||
</S.Content> | ||
|
||
<S.QuitButtonArea> | ||
<S.CustomQuitButton $type='semiRoundedRect' $bgColor='gc_4' $fontWeight='700'> | ||
탈퇴하기 | ||
</S.CustomQuitButton> | ||
</S.QuitButtonArea> | ||
</S.SettingModalContainer> | ||
) | ||
} |
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,67 @@ | ||
import { styled } from 'styled-components' | ||
import { ActionButton } from '~components/Button/ActionButton' | ||
|
||
//헤더 | ||
export const SettingModalContainer = styled.div` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: ${({ theme }) => theme.colors.brand.lighten_3}; | ||
z-index: 1000; | ||
display: flex; | ||
flex-direction: column; | ||
` | ||
|
||
export const Header = styled.div` | ||
height: 56px; | ||
padding: 0 20px; | ||
display: flex; | ||
align-items: center; | ||
position: relative; | ||
background-color: white; | ||
` | ||
|
||
export const BackButton = styled.button` | ||
position: absolute; | ||
left: -3px; | ||
background: none; | ||
border: none; | ||
margin-top: -55px; | ||
cursor: pointer; | ||
display: flex; | ||
align-items: center; | ||
` | ||
|
||
export const TitleWrap = styled.h1` | ||
width: 100%; | ||
text-align: center; | ||
margin: 0; | ||
` | ||
//토글 영역 | ||
export const AllButtonWrapper = styled.div` | ||
padding-bottom: 16px; | ||
` | ||
export const ToggleArea = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
width: 100%; | ||
` | ||
export const Content = styled.div` | ||
flex: 1; | ||
padding: 20px; | ||
overflow-y: auto; | ||
` | ||
//탈퇴하기 버튼 | ||
export const CustomQuitButton = styled(ActionButton)` | ||
font-size: ${({ theme }) => theme.typography._17}; | ||
color: ${({ theme }) => theme.colors.grayscale.font_1}; | ||
background-color: ${({ theme }) => theme.colors.brand.lighten_2}; | ||
` | ||
export const QuitButtonArea = styled.div` | ||
width: 100%; | ||
padding: 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
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