-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'part3-장문원' into part3-장문원-week15
- Loading branch information
Showing
12 changed files
with
232 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@import "@/styles/global.scss"; | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 3rem; | ||
width: 100%; | ||
height: 100vh; | ||
background-color: $color-background; | ||
} |
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,13 @@ | ||
import { ReactNode } from "react"; | ||
import styles from "./LoginLayout.module.scss"; | ||
import classNames from "classnames/bind"; | ||
|
||
interface LoginLayoutProps { | ||
children: ReactNode; | ||
} | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
export const LoginLayout = ({ children }: LoginLayoutProps) => { | ||
return <div className={cx("container")}>{children}</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,24 @@ | ||
@import "@/styles/global.scss"; | ||
|
||
.header-container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1.6rem; | ||
} | ||
|
||
.header-content { | ||
display: flex; | ||
gap: 0.8rem; | ||
} | ||
|
||
.header-message { | ||
font-size: 1.6rem; | ||
font-weight: 400; | ||
} | ||
|
||
.header-link { | ||
font-size: 1.6rem; | ||
font-weight: 600; | ||
color: $color-primary; | ||
border-bottom: 0.1rem solid $color-primary; | ||
} |
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,33 @@ | ||
import styles from "./LoginHeader.module.scss"; | ||
import classNames from "classnames/bind"; | ||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
import Logo from "@/public/logo.svg"; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
interface LoginHeaderProps { | ||
href: string; | ||
message: string; | ||
linkName: string; | ||
} | ||
|
||
export default function LoginHeader({ | ||
href, | ||
message, | ||
linkName, | ||
}: LoginHeaderProps) { | ||
return ( | ||
<header className={cx("header-container")}> | ||
<Link href="/"> | ||
<Image src={Logo} alt="Logo" width={210} height={38} priority /> | ||
</Link> | ||
<div className={cx("header-content")}> | ||
<span className={cx("header-message")}>{message}</span> | ||
<Link href={href} className={cx("header-link")}> | ||
{linkName} | ||
</Link> | ||
</div> | ||
</header> | ||
); | ||
} |
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,24 @@ | ||
@import "@/styles/global.scss"; | ||
|
||
.social-login-container { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
width: 100%; | ||
max-width: 40rem; | ||
padding: 1.2rem 2.4rem; | ||
border: 0.1rem solid $color-grey20; | ||
border-radius: 0.8rem; | ||
background-color: $color-grey10; | ||
} | ||
|
||
.social-login-text { | ||
font-size: 1.4rem; | ||
font-weight: 400; | ||
color: $color-grey100; | ||
} | ||
|
||
.social-login-icon { | ||
display: flex; | ||
gap: 1.6rem; | ||
} |
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,24 @@ | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
import styles from "./SocialBox.module.scss"; | ||
import classNames from "classnames/bind"; | ||
import Googlelogin from "@/public/Googlelogin.svg"; | ||
import Kakaologin from "@/public/Kakaologin.svg"; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
export default function SocialBox({ text }: { text: string }) { | ||
return ( | ||
<div className={cx("social-login-container")}> | ||
<span className={cx("social-login-text")}>{text}</span> | ||
<div className={cx("social-login-icon")}> | ||
<Link href="https://www.google.com"> | ||
<Image src={Googlelogin} width={42} height={42} alt="google" /> | ||
</Link> | ||
<Link href="https://www.kakaocorp.com/page"> | ||
<Image src={Kakaologin} width={42} height={42} alt="kakao" /> | ||
</Link> | ||
</div> | ||
</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 |
---|---|---|
|
@@ -42,5 +42,3 @@ export default function Folder() { | |
</div> | ||
</div> | ||
</Layout> | ||
); | ||
} |
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,72 @@ | ||
@import "@/styles/global.scss"; | ||
|
||
//login-form | ||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
max-width: 40rem; | ||
} | ||
|
||
.label { | ||
display: flex; | ||
justify-content: flex-start; | ||
width: 100%; | ||
padding: 2.4rem 0 1.2rem; | ||
font-size: 1.4rem; | ||
font-weight: 400; | ||
} | ||
|
||
.input-box { | ||
display: flex; | ||
width: 100%; | ||
border-radius: 0.8rem; | ||
border: 0.1rem solid $color-grey20; | ||
padding: 1.8rem 1.5rem; | ||
font-size: 1.6rem; | ||
background-color: $color-white; | ||
&:focus-within { | ||
border: 0.1rem solid $color-primary; | ||
} | ||
} | ||
|
||
.error-input-box { | ||
border: 0.1rem solid red; | ||
} | ||
|
||
.input { | ||
display: flex; | ||
width: 100%; | ||
} | ||
|
||
.eye-icon { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.error-message { | ||
display: flex; | ||
justify-content: flex-start; | ||
width: 100%; | ||
padding-top: 0.6rem; | ||
font-size: 1.4rem; | ||
color: $color-red; | ||
} | ||
|
||
// login-button | ||
.button { | ||
display: flex; | ||
width: 100%; | ||
max-width: 40rem; | ||
margin-top: 3rem; | ||
justify-content: center; | ||
border-radius: 0.8rem; | ||
background: linear-gradient(91deg, #6d6afe 0.12%, #6ae3fe 101.84%); | ||
padding: 1.6rem 2rem; | ||
color: #ffff; | ||
font-size: 1.8rem; | ||
font-weight: 600; | ||
} |
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.
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.