-
Notifications
You must be signed in to change notification settings - Fork 1
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 #8 from FastSubTeam/feat/loginPage
Feat/login page
- Loading branch information
Showing
16 changed files
with
278 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
export default function Footer() { | ||
return ( | ||
<footer className="body-font text-gray-400"> | ||
<div className="container mx-auto flex flex-col items-center border-t px-10 py-3 sm:flex-row"> | ||
<img src="/popple.jpg" alt="popple" className="h-8" /> | ||
<p className="mt-4 text-sm text-subTextAndBorder sm:ml-4 sm:mt-0 sm:border-l-2 sm:border-gray-200 sm:py-2 sm:pl-4"> | ||
<span className="ml-1 text-gray-400" rel="noopener noreferrer"> | ||
© 2023 POPPLE @FASTSIDE | ||
</span> | ||
</p> | ||
<span className="mt-4 inline-flex justify-center sm:ml-auto sm:mt-0 sm:justify-start"> | ||
<a className="text-subTextAndBorder"> | ||
<svg | ||
fill="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
className="h-5 w-5" | ||
viewBox="0 0 24 24" | ||
> | ||
<path d="M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z"></path> | ||
</svg> | ||
</a> | ||
<a className="ml-3 text-subTextAndBorder"> | ||
<svg | ||
fill="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
className="h-5 w-5" | ||
viewBox="0 0 24 24" | ||
> | ||
<path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"></path> | ||
</svg> | ||
</a> | ||
<a className="ml-3 text-subTextAndBorder"> | ||
<svg | ||
fill="none" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
className="h-5 w-5" | ||
viewBox="0 0 24 24" | ||
> | ||
<rect width="20" height="20" x="2" y="2" rx="5" ry="5"></rect> | ||
<path d="M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37zm1.5-4.87h.01"></path> | ||
</svg> | ||
</a> | ||
<a className="ml-3 text-subTextAndBorder"> | ||
<svg | ||
fill="currentColor" | ||
stroke="currentColor" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="0" | ||
className="h-5 w-5" | ||
viewBox="0 0 24 24" | ||
> | ||
<path | ||
stroke="none" | ||
d="M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6zM2 9h4v12H2z" | ||
></path> | ||
<circle cx="4" cy="4" r="2" stroke="none"></circle> | ||
</svg> | ||
</a> | ||
</span> | ||
</div> | ||
</footer> | ||
); | ||
} |
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,34 @@ | ||
interface InputProps { | ||
placeholder?: string; | ||
value: string; | ||
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void; | ||
type?: string; | ||
label?: string; | ||
name: string; | ||
} | ||
|
||
export default function Input({ | ||
placeholder, | ||
value, | ||
onChange, | ||
type, | ||
label, | ||
name, | ||
}: InputProps) { | ||
return ( | ||
<div> | ||
<label className="text-subTextAndBorder" htmlFor={label}> | ||
{label} | ||
</label> | ||
<input | ||
name={name} | ||
id={label} | ||
className="block w-full rounded-md border-2 border-subTextAndBorder px-3 py-2 outline-none transition focus:border-accent" | ||
placeholder={placeholder} | ||
value={value} | ||
onChange={onChange} | ||
type={type} | ||
/> | ||
</div> | ||
); | ||
} |
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 { RiKakaoTalkFill } from 'react-icons/ri'; | ||
|
||
interface KakoaButtonProps { | ||
disabled: boolean; | ||
} | ||
|
||
export default function KakoaButton({ disabled }: KakoaButtonProps) { | ||
return ( | ||
<a | ||
href="https://kauth.kakao.com/oauth/authorize?client_id=921fbdc50a1c510a40df3bebfcf15573&redirect_uri=http://localhost:5173/auth/kakao/callback&response_type=code" | ||
className={`${disabled ? 'pointer-events-none' : ''}`} | ||
> | ||
<button | ||
disabled={disabled} | ||
className="flex w-full items-center justify-center rounded-md border-2 border-[#ffe812] bg-[#ffe812] px-3 py-2 font-bold ring-black ring-offset-2 transition hover:opacity-80 focus:ring-2 active:scale-95 disabled:pointer-events-none disabled:opacity-30" | ||
type="button" | ||
> | ||
<div className="flex items-center gap-2"> | ||
<RiKakaoTalkFill size={20} /> | ||
<span>카카오로 로그인 하기</span> | ||
</div> | ||
</button> | ||
</a> | ||
); | ||
} |
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 was deleted.
Oops, something went wrong.
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,3 @@ | ||
export default function Title({ text }: { text: string }) { | ||
return <div className="text-2xl font-bold">{text}</div>; | ||
} |
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,18 +1,18 @@ | ||
export const NAV_ITEMS = [ | ||
{ | ||
label: '팝업스토어', | ||
href: '/', | ||
href: '/store', | ||
}, | ||
{ | ||
label: '공간찾기', | ||
href: '/', | ||
href: '/search', | ||
}, | ||
{ | ||
label: '임차대행', | ||
href: '/', | ||
href: '/rent', | ||
}, | ||
{ | ||
label: '프로모션대행', | ||
href: '/', | ||
href: '/promotion', | ||
}, | ||
]; |
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.