-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
105 additions
and
118 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,102 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import { media } from '../../style/mediaQuery'; | ||
|
||
const Wapper = styled.div` | ||
${media.smallMobile` | ||
top: 36px; | ||
padding: 10px; | ||
`} | ||
${media.largeMobile` | ||
top: 41px; | ||
padding: 10px; | ||
`} | ||
position: absolute; | ||
top: 53px; | ||
right: 4px; | ||
padding: 15px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 15px; | ||
border-radius: 5px; | ||
border: 0.5px solid #d3d3d3; | ||
background: #fff; | ||
p { | ||
display: flex; | ||
} | ||
`; | ||
|
||
const ModalBox = styled.div` | ||
${media.largeMobile` | ||
gap: 8px; | ||
p { | ||
font-size: 12px; | ||
} | ||
`} | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
gap: 10px; | ||
`; | ||
|
||
const ModalIconBox = styled.div<{ color: string }>` | ||
${media.smallMobile` | ||
width: 18px; | ||
height: 18px; | ||
`} | ||
${media.largeMobile` | ||
width: 20px; | ||
height: 20px; | ||
`} | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 25px; | ||
height: 25px; | ||
border-radius: 50%; | ||
background-color: ${(props) => props.color}; | ||
`; | ||
|
||
const ModalImg = styled.img<{ size: string }>` | ||
${media.smallMobile` | ||
width: 10px; | ||
height: 10px; | ||
`} | ||
${media.largeMobile` | ||
width: 12px; | ||
height: 12px; | ||
`} | ||
width: ${(props) => props.size}; | ||
height: ${(props) => props.size}; | ||
`; | ||
|
||
function UserModal() { | ||
return ( | ||
<Wapper> | ||
<ModalBox> | ||
<ModalIconBox color="#FF2868"> | ||
<ModalImg | ||
size="15px" | ||
src={`${process.env.PUBLIC_URL}/img/logout.webp`} | ||
alt="connect" | ||
/> | ||
</ModalIconBox> | ||
<p>로그아웃</p> | ||
</ModalBox> | ||
<ModalBox> | ||
<ModalIconBox color="#5562EA"> | ||
<ModalImg | ||
size="15px" | ||
src={`${process.env.PUBLIC_URL}/img/profile.webp`} | ||
alt="connect" | ||
/> | ||
</ModalIconBox> | ||
<p>회원정보</p> | ||
</ModalBox> | ||
</Wapper> | ||
); | ||
} | ||
|
||
export default UserModal; |
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
navigationbar를 안써서 lint에 걸리는거 같습니다 다음 커밋에 고쳤습니다