-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
페이지 UI: 프로필 페이지 #86
Merged
Merged
페이지 UI: 프로필 페이지 #86
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
.loginDescriptionWrapper { | ||
padding: 0 24px; | ||
} | ||
|
||
.titleWrapper { | ||
padding: 16px 24px; | ||
} | ||
|
||
.nameWrapper { | ||
padding: 16px 24px; | ||
} | ||
|
||
.linkInfoContainer { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 18px 24px; | ||
} |
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 classNames from 'classnames/bind'; | ||
import Link from 'next/link'; | ||
|
||
import BottomNav from '@/components/shared/bottom-nav/BottomNav'; | ||
import Button from '@/components/shared/button/Button'; | ||
import LinkArrow from '@components/icons/LinkArrow'; | ||
import Spacing from '@components/shared/spacing/Spacing'; | ||
import Text from '@components/shared/text/Text'; | ||
import Title from '@components/shared/title/Title'; | ||
|
||
import styles from './page.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
function MyProfilePage() { | ||
const name = 'washpedia'; | ||
const isLoggedIn = true; | ||
|
||
if (isLoggedIn === true) { | ||
return ( | ||
<> | ||
<Spacing size={220} /> | ||
<div className={cx('loginDescriptionWrapper')}> | ||
<Title | ||
title={'로그인 후\n이용해 주세요.'} | ||
description={'로그인 후 내 차량 정보와 세차 정보를\n등록해 보세요.'} | ||
descriptionColor="tertiary" | ||
/> | ||
<Spacing size={260} /> | ||
<Button size="large" full>로그인 하기</Button> | ||
</div> | ||
<BottomNav /> | ||
</> | ||
); | ||
} | ||
|
||
return ( | ||
<> | ||
<Spacing size={20} /> | ||
<div className={cx('titleWrapper')}> | ||
<Title title="프로필" titleSize="t3" /> | ||
</div> | ||
<div className={cx('nameWrapper')}> | ||
<Text typography="t4">{`${name} 님 안녕하세요!`}</Text> | ||
</div> | ||
<Spacing size={8} backgroundColor="tertiary300" /> | ||
<Spacing size={120} /> | ||
<ul> | ||
<li className={cx('linkInfoContainer')}> | ||
<Link href="/">나의 차량 정보</Link> | ||
<LinkArrow /> | ||
</li> | ||
<li className={cx('linkInfoContainer')}> | ||
<Link href="/">나의 세차 정보</Link> | ||
<LinkArrow /> | ||
</li> | ||
<li className={cx('linkInfoContainer')}> | ||
<Link href="/">리뷰 관리</Link> | ||
<LinkArrow /> | ||
</li> | ||
</ul> | ||
<BottomNav /> | ||
</> | ||
); | ||
} | ||
|
||
export default MyProfilePage; |
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,15 @@ | ||
interface LinkArrowProps { | ||
width?: number | ||
height?: number | ||
} | ||
|
||
function LinkArrow({ width = 8, height = 14 }: LinkArrowProps) { | ||
return ( | ||
<svg width={width} height={height} viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M1 1L6.68539 6.29289C7.10487 6.68342 7.10487 7.31658 6.68539 7.70711L1 13" stroke="#CDCFD0" strokeWidth="1.5" strokeLinecap="round" /> | ||
</svg> | ||
|
||
); | ||
} | ||
|
||
export default LinkArrow; |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list들에 border bottom 줘야할 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 이따 고칠게요!