-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/#36-filter_modal
- Loading branch information
Showing
26 changed files
with
609 additions
and
56 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
export { ReactComponent as IcCloseBtn } from "./closeBtn.svg"; | ||
export { ReactComponent as IcEmptyHeart } from "./emptyHeart.svg"; | ||
export { ReactComponent as IcFilterBtn } from "./filterBtn.svg"; | ||
export { ReactComponent as IcHamburger } from "./hamburger.svg"; | ||
export { ReactComponent as IcLogo } from "./logo.svg"; | ||
export { ReactComponent as IcCloseBtn } from "./modalCloseBtn.svg"; | ||
export { ReactComponent as IcNextCardBtmn } from "./nextCardBtn.svg"; | ||
export { ReactComponent as IcMenuBarImg } from "./MenuBar Profile.svg"; | ||
export { ReactComponent as IcNextCardBtn } from "./nextCardBtn.svg"; | ||
export { ReactComponent as IcVoteImg1 } from "./voteImg1.svg"; | ||
export { ReactComponent as IcVoteImg2 } from "./voteImg2.svg"; |
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,38 @@ | ||
/* | ||
마지막 편집자: 22-07-14 joohaem | ||
변경사항 및 참고: | ||
- "react-hook-form" 도입 고려해도 좋을 것 같습니다 | ||
고민점: | ||
- | ||
*/ | ||
|
||
import { useState } from "react"; | ||
|
||
import { St } from "./style"; | ||
|
||
export default function LoginForm() { | ||
const [errorMessage, setErrorMessage] = useState({ emailError: "", passwordError: "" }); | ||
|
||
const submitLoginForm = (e: React.FormEvent<HTMLElement>) => { | ||
e.preventDefault(); | ||
}; | ||
|
||
return ( | ||
<St.Section onSubmit={submitLoginForm}> | ||
<St.Title>로그인</St.Title> | ||
<St.Form> | ||
<St.Label htmlFor="email">이메일</St.Label> | ||
<St.Input id="email" type="text" /> | ||
{errorMessage.emailError && <St.ErrorMessage>{errorMessage.emailError}</St.ErrorMessage>} | ||
<St.Label htmlFor="password">비밀번호</St.Label> | ||
<St.Input id="password" type="password" /> | ||
{errorMessage.passwordError && <St.ErrorMessage>{errorMessage.passwordError}</St.ErrorMessage>} | ||
<St.LoginBtn type="submit">로그인하기</St.LoginBtn> | ||
</St.Form> | ||
<St.LinkWrapper> | ||
<St.Link>회원가입</St.Link> <St.Delimeter>|</St.Delimeter> <St.Link>비밀번호 재설정</St.Link> | ||
</St.LinkWrapper> | ||
</St.Section> | ||
); | ||
} |
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,80 @@ | ||
import styled from "styled-components"; | ||
|
||
export const St = { | ||
Section: styled.section` | ||
padding: 0 1.2rem; | ||
`, | ||
|
||
Form: styled.form``, | ||
|
||
Title: styled.h2` | ||
margin-bottom: 2rem; | ||
${({ theme }) => theme.fonts.h1}; | ||
color: ${({ theme }) => theme.colors.bg}; | ||
`, | ||
|
||
Label: styled.label` | ||
display: block; | ||
margin: 1.6rem 0 1.2rem; | ||
${({ theme }) => theme.fonts.body6}; | ||
color: ${({ theme }) => theme.colors.gray600}; | ||
`, | ||
|
||
ErrorMessage: styled.strong` | ||
display: block; | ||
margin: 0.8rem 0 0 2rem; | ||
${({ theme }) => theme.fonts.caption5}; | ||
color: ${({ theme }) => theme.colors.red}; ; | ||
`, | ||
|
||
Input: styled.input` | ||
width: 100%; | ||
height: 4.4rem; | ||
padding: 1.2rem 0 1.2rem 2.4rem; | ||
border: 0.1rem solid ${({ theme }) => theme.colors.gray300}; | ||
border-radius: 4.9rem; | ||
${({ theme }) => theme.fonts.body6}; | ||
color: ${({ theme }) => theme.colors.gray400}; | ||
`, | ||
|
||
LoginBtn: styled.button` | ||
width: 100%; | ||
height: 5rem; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: 2.4rem; | ||
background-color: ${({ theme }) => theme.colors.bg}; | ||
border-radius: 5rem; | ||
${({ theme }) => theme.fonts.btn2}; | ||
color: ${({ theme }) => theme.colors.white}; | ||
`, | ||
|
||
LinkWrapper: styled.ul` | ||
margin: 3.9rem 0 19.3rem; | ||
display: flex; | ||
justify-content: center; | ||
${({ theme }) => theme.fonts.body6}; | ||
color: ${({ theme }) => theme.colors.gray600}; | ||
`, | ||
|
||
Link: styled.li``, | ||
|
||
Delimeter: styled.span` | ||
margin: 0 1rem; | ||
`, | ||
}; |
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,9 +1,13 @@ | ||
import Header from "../common/Header"; | ||
import Footer from "../Main/Footer"; | ||
import LoginForm from "./LoginForm"; | ||
|
||
export default function Login() { | ||
return ( | ||
<main> | ||
<Header /> | ||
<LoginForm /> | ||
<Footer /> | ||
</main> | ||
); | ||
} |
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,5 +1,9 @@ | ||
import { St } from "./style"; | ||
|
||
export default function CTABtn() { | ||
return <St.Button to="/category">대화주제 추천 바로가기</St.Button>; | ||
return ( | ||
<St.Button role="button" to="/category"> | ||
대화주제 추천 바로가기 | ||
</St.Button> | ||
); | ||
} |
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.