-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: storybook ts-loader 에러 해결 (#516) * fix: categoryNavbar svg 관련 오류 해결 및 네이밍 수정 (#516) * chore: install react-refresh * feat: 로그인 페이지 구현 (#516) * feat: 음식점 카드에서 좋아요 갯수 보여주기 (#516) * design: 모바일에서 로그인 버튼이 가려지는 문제 개선 (#516)
- Loading branch information
1 parent
054c669
commit 521cbb9
Showing
11 changed files
with
247 additions
and
38 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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
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 |
---|---|---|
@@ -1,23 +1,84 @@ | ||
import { styled } from 'styled-components'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import LoginButton from '~/components/@common/LoginButton'; | ||
import LoginPageUI from '~/components/LoginPageUI'; | ||
import CeluveatIcon from '~/assets/icons/celuveat-login-icon.svg'; | ||
import { FONT_SIZE } from '~/styles/common'; | ||
|
||
function SignUpPage() { | ||
const navigate = useNavigate(); | ||
|
||
const clickHomeButton = () => { | ||
navigate('/'); | ||
}; | ||
|
||
return ( | ||
<LoginPageUI title="로그인 및 회원가입"> | ||
<StyledLoginContainer> | ||
<StyledContainer> | ||
<StyledIconWrapper> | ||
<CeluveatIcon /> | ||
<StyledName>Celuveat</StyledName> | ||
</StyledIconWrapper> | ||
<StyledLoginButtonBox> | ||
<StyledHomeButton onClick={clickHomeButton}>비회원으로 이용하기</StyledHomeButton> | ||
<StyledLine> or </StyledLine> | ||
<LoginButton type="kakao" /> | ||
<LoginButton type="google" /> | ||
</StyledLoginContainer> | ||
</LoginPageUI> | ||
</StyledLoginButtonBox> | ||
</StyledContainer> | ||
); | ||
} | ||
|
||
export default SignUpPage; | ||
|
||
const StyledLoginContainer = styled.div` | ||
const StyledContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 4.8rem; | ||
height: calc(100vh - 44px); | ||
background-color: var(--primary-6); | ||
`; | ||
|
||
const StyledIconWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 2rem; | ||
`; | ||
|
||
const StyledName = styled.h2` | ||
color: var(--white); | ||
`; | ||
|
||
const StyledLoginButtonBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: end; | ||
align-items: center; | ||
width: 100%; | ||
padding: 2rem; | ||
`; | ||
|
||
const StyledHomeButton = styled.button` | ||
width: 100%; | ||
height: 48px; | ||
border: none; | ||
border-radius: 8px; | ||
background-color: var(--white); | ||
font-size: ${FONT_SIZE.md}; | ||
font-weight: 600; | ||
box-shadow: var(--shadow); | ||
`; | ||
|
||
const StyledLine = styled.div` | ||
margin: 1.2rem 0; | ||
margin-bottom: 1.6rem; | ||
color: var(--white); | ||
font-size: ${FONT_SIZE.md}; | ||
`; |
Oops, something went wrong.