-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feat: mypage UI ꡬνμλ£
- Loading branch information
Showing
16 changed files
with
257 additions
and
531 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,28 @@ | ||
import styled from 'styled-components'; | ||
import colors from '@/styles/color/palette'; | ||
|
||
export const MyPageWrapper = styled.div` | ||
padding: 0 16px; | ||
`; | ||
|
||
export const ProfileWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: 20px 0px; | ||
`; | ||
|
||
export const SmallButtonWrapper = styled.div` | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: space-between; | ||
`; | ||
|
||
export const Separator = styled.div` | ||
height: 9px; | ||
width: calc(100% + 32px); /* λΆλͺ¨ padding 16px * 2 보μ */ | ||
margin: 0 -16px; /* MyPageWrapperμ padding κ° λ°μ */ | ||
background-color: ${colors.gray[95]}; | ||
`; |
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,34 @@ | ||
import styled from 'styled-components'; | ||
import colors from '@styles/color/palette'; | ||
|
||
export const ProfileInfoWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
margin-bottom: 12px; /* νλ‘νκ³Ό λ²νΌ κ° κ°κ²© */ | ||
`; | ||
|
||
export const ImageWrapper = styled.div` | ||
margin-bottom: 12px; /* μ΄λ―Έμ§μ μ΄λ¦/μ΄λ©μΌ κ° κ°κ²© */ | ||
background-color: ${colors.gray[80]}; | ||
border-radius: 50%; | ||
width: 56px; | ||
height: 56px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
export const ProfileName = styled.div` | ||
font-size: 14px; | ||
margin-bottom: 4px; /* μ΄λ¦κ³Ό μ΄λ©μΌ κ° κ°κ²© */ | ||
font-weight: bold; | ||
text-align: center; | ||
`; | ||
|
||
export const ProfileEmail = styled.div` | ||
font-size: 12px; | ||
color: ${colors.gray[60]}; | ||
text-align: center; | ||
`; |
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,23 @@ | ||
import { | ||
ProfileInfoWrapper, | ||
ImageWrapper, | ||
ProfileName, | ||
ProfileEmail, | ||
} from '@/components/Layout/MyPage/ProfileInfo.styles'; | ||
|
||
import ProfileImg from '@/styles/Icon/Profile_Snowman1.svg'; | ||
import Image from 'next/image'; | ||
|
||
const ProfileInfo = () => { | ||
return ( | ||
<ProfileInfoWrapper> | ||
<ImageWrapper> | ||
<Image src={ProfileImg} width={56} height={56} alt="Profile Image" /> | ||
</ImageWrapper> | ||
<ProfileName>κΉλμ¬λ</ProfileName> | ||
<ProfileEmail>[email protected]</ProfileEmail> | ||
</ProfileInfoWrapper> | ||
); | ||
}; | ||
|
||
export default ProfileInfo; |
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,16 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const SetButtonWrapper = styled.div` | ||
width: 100%; | ||
height: 55px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
align-self: stretch; | ||
`; | ||
|
||
export const SetButton = styled.div` | ||
font-size: 14px; | ||
font-weight: 700; | ||
border: none; | ||
`; |
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,22 @@ | ||
import { | ||
SetButton, | ||
SetButtonWrapper, | ||
} from '@components/Layout/MyPage/SettingButton.styles'; | ||
import direction from '@styles/Icon/Right_dir.svg'; | ||
import Image from 'next/image'; | ||
|
||
interface SettingButtonProps { | ||
label: string; | ||
onClick: () => void; | ||
} | ||
|
||
const SettingButton = ({ label, onClick }: SettingButtonProps) => { | ||
return ( | ||
<SetButtonWrapper onClick={onClick}> | ||
<SetButton>{label}</SetButton> | ||
<Image src={direction} width={24} height={24} alt="Direction" /> | ||
</SetButtonWrapper> | ||
); | ||
}; | ||
|
||
export default SettingButton; |
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,21 @@ | ||
import styled from 'styled-components'; | ||
import colors from '@/styles/color/palette'; | ||
|
||
export const SButton = styled.button` | ||
width: 166px; | ||
padding: 12px 16px; | ||
font-size: 12px; | ||
font-weight: 700; | ||
text-align: center; | ||
border-radius: 4px; | ||
border: 1px solid ${colors.gray[80]}; | ||
background-color: white; | ||
cursor: pointer; | ||
&:disabled { | ||
border-color: #e0e0e0; | ||
background-color: #f9f9f9; | ||
color: #b0b0b0; | ||
cursor: not-allowed; | ||
} | ||
`; |
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,12 @@ | ||
import { SButton } from '@components/Layout/MyPage/SmallButton.styles'; | ||
|
||
interface SmallButtonProps { | ||
onClick: () => void; | ||
children: React.ReactNode; | ||
} | ||
|
||
const SmallButton = ({ onClick, children }: SmallButtonProps) => { | ||
return <SButton onClick={onClick}>{children}</SButton>; | ||
}; | ||
|
||
export default SmallButton; |
Oops, something went wrong.