-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #319 from ojm51/Next-오정민-sprint11
[오정민] sprint11
- Loading branch information
Showing
35 changed files
with
1,862 additions
and
915 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 |
---|---|---|
@@ -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.