-
Notifications
You must be signed in to change notification settings - Fork 35
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
[오정민] sprint11 #319
Merged
wlgns2223
merged 23 commits into
codeit-bootcamp-frontend:Next-오정민
from
ojm51:Next-오정민-sprint11
Aug 26, 2024
The head ref may contain hidden characters: "Next-\uC624\uC815\uBBFC-sprint11"
Merged
[오정민] sprint11 #319
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f89780b
chore: Airbnb ESLint 규칙 적용
ojm51 3421769
fix: <ul> 안에 있는 <div>를 <li>로 수정
ojm51 0ade27a
chore: day.js 추가
ojm51 461d565
fix: 날짜 사용 함수에 day.js 라이브러리 적용
ojm51 f3bffcb
chore: react hook form 라이브러리 추가
ojm51 85a0e50
rename: 페이지 파일 경로 수정
ojm51 dd7a6e7
feat: 랜딩 페이지 생성
ojm51 99636be
feat: 로그인 페이지 생성
ojm51 a1e71c0
feat: 회원가입 페이지 생성
ojm51 d8d41f2
feat: 로그인 및 회원가입 페이지에서 네비게이션 바 제외
ojm51 ffe4d46
design: 로그인 및 회원가입 페이지 input 컴포넌트로 변경
ojm51 97b2095
feat: 회원가입 페이지에 react-hook-form 적용
ojm51 80d5760
feat: 로그인 페이지에 react-hook-form 적용
ojm51 643642b
feat: 회원가입 구현
ojm51 5d214d3
feat: 로그인 구현
ojm51 fdb93ce
feat: 로그인 여부에 따라 네비게이션 바 변경
ojm51 1ed727b
design: BigLogo 컴포넌트 생성
ojm51 fe9c4b1
feat: 비밀번호 보이기 및 숨기기 기능 추가
ojm51 4bb270d
design: 회원가입 및 로그인 페이지 디자인 추가
ojm51 3f6e95f
design: 랜딩 페이지 일부 디자인 추가
ojm51 2676d55
chore: 허용 도메인 임시 수정
ojm51 319f21c
feat: api 경로를 변수로 치환
ojm51 dfc0519
fix: 컴포넌트 언마운트 시 프리뷰 이미지 revoke
ojm51 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
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,3 +1,9 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
"extends": ["next/core-web-vitals", "airbnb", "plugin:prettier/recommended"], | ||
"rules": { | ||
"quotes": ["error", "double"], | ||
"prettier/prettier": ["error", { "singleQuote": false }], | ||
"react/react-in-jsx-scope": "off", | ||
"import/extensions": "off" | ||
} | ||
} |
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,3 +1,4 @@ | ||
{ | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
"plugins": ["prettier-plugin-tailwindcss"], | ||
"singleQuote": false | ||
} |
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
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,25 @@ | ||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
import logoIcon from "@/assets/images/ic_logo_icon.png"; | ||
import logoText from "@/assets/images/ic_logo_text.png"; | ||
|
||
function BigLogo() { | ||
return ( | ||
<Link className="flex items-center justify-center gap-6" href="/"> | ||
<Image | ||
src={logoIcon} | ||
alt="판다마켓 로고 이미지" | ||
width={104} | ||
height={104} | ||
/> | ||
<Image | ||
src={logoText} | ||
alt="판다마켓 로고 이미지" | ||
width={266} | ||
height={90} | ||
/> | ||
</Link> | ||
); | ||
} | ||
|
||
export default BigLogo; |
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,19 @@ | ||
interface FormButtonProps { | ||
isButtonDisabled: boolean; | ||
text: string; | ||
} | ||
|
||
function FormButton({ isButtonDisabled, text }: FormButtonProps) { | ||
return ( | ||
<button | ||
className="w-full rounded-full bg-brand-blue py-3 text-xl font-semibold text-gray-100 disabled:bg-gray-400" | ||
type="submit" | ||
value={text} | ||
disabled={isButtonDisabled} | ||
> | ||
{text} | ||
</button> | ||
); | ||
} | ||
|
||
export default FormButton; |
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,22 @@ | ||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
import googleIcon from "@/assets/images/ic_google.png"; | ||
import kakaoIcon from "@/assets/images/ic_kakao.png"; | ||
|
||
function EasyLogin() { | ||
return ( | ||
<div className="mb-6 mt-6 flex items-center justify-between rounded-lg bg-[#E6F2FF] px-6 py-4 text-base font-medium text-gray-800"> | ||
간편 로그인하기 | ||
<div className="flex items-center justify-center gap-4"> | ||
<Link href="https://www.google.com/"> | ||
<Image src={googleIcon} alt="구글 아이콘" width={42} height={42} /> | ||
</Link> | ||
<Link href="https://www.kakaocorp.com/page/"> | ||
<Image src={kakaoIcon} alt="카카오톡 아이콘" width={42} height={42} /> | ||
</Link> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default EasyLogin; |
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,58 @@ | ||
import { useState } from "react"; | ||
import { UseFormRegister } from "react-hook-form"; | ||
import Image from "next/image"; | ||
import passwordHideIcon from "@/assets/images/ic_password_hide.png"; | ||
import passwordShowIcon from "@/assets/images/ic_password_show.png"; | ||
|
||
interface Content { | ||
name: string; | ||
label: string; | ||
type?: string; | ||
placeholder: string; | ||
} | ||
|
||
interface FormPasswordInputProps { | ||
content: Content; | ||
register: UseFormRegister<Record<string, any>>; | ||
} | ||
|
||
function FormPasswordInput({ content, register }: FormPasswordInputProps) { | ||
const { name, label, placeholder } = content; | ||
|
||
const [isPasswordShow, setIsPasswordShow] = useState(false); | ||
const handlePasswordShowButtonClick = () => { | ||
setIsPasswordShow((prevIsPasswordShow) => !prevIsPasswordShow); | ||
}; | ||
|
||
return ( | ||
<div className="mb-6 flex flex-col items-start justify-start"> | ||
<label className="mb-3 text-lg font-bold text-gray-800" htmlFor={name}> | ||
{label} | ||
</label> | ||
|
||
<input | ||
className="w-full rounded-xl bg-gray-100 px-6 py-4" | ||
id={name} | ||
type="password" | ||
placeholder={placeholder} | ||
{...register} | ||
/> | ||
<button | ||
className="password-show-btn" | ||
type="button" | ||
value="비밀번호 보이거나 가리기" | ||
onClick={handlePasswordShowButtonClick} | ||
> | ||
<Image | ||
className="password-show-icon" | ||
src={isPasswordShow ? passwordShowIcon : passwordHideIcon} | ||
alt="비밀번호를 보여주는 눈 모양 아이콘" | ||
width={24} | ||
height={24} | ||
/> | ||
</button> | ||
</div> | ||
); | ||
} | ||
|
||
export default FormPasswordInput; |
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,35 @@ | ||
import { UseFormRegister } from "react-hook-form"; | ||
|
||
interface Content { | ||
name: string; | ||
label: string; | ||
type: string; | ||
placeholder: string; | ||
} | ||
|
||
interface FormTextInputProps { | ||
content: Content; | ||
register: UseFormRegister<Record<string, any>>; | ||
} | ||
|
||
function FormTextInput({ content, register }: FormTextInputProps) { | ||
const { name, label, type, placeholder } = content; | ||
|
||
return ( | ||
<div className="mb-6 flex flex-col items-start justify-start"> | ||
<label className="mb-3 text-lg font-bold text-gray-800" htmlFor={name}> | ||
{label} | ||
</label> | ||
|
||
<input | ||
className="w-full rounded-xl bg-gray-100 px-6 py-4" | ||
id={name} | ||
type={type} | ||
placeholder={placeholder} | ||
{...register} | ||
/> | ||
</div> | ||
); | ||
} | ||
|
||
export default FormTextInput; |
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.
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.
피드백대로 잘 바꾸어 주셨네요 !!!