Skip to content

Commit

Permalink
Merge branch 'part3-장문원' into part3-장문원-week15
Browse files Browse the repository at this point in the history
  • Loading branch information
jangmoonwon authored May 26, 2024
2 parents 6b402d0 + c35774b commit b558ae5
Show file tree
Hide file tree
Showing 12 changed files with 232 additions and 2 deletions.
12 changes: 12 additions & 0 deletions components/layout/login-layout/LoginLayout.module.scss
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;
}
13 changes: 13 additions & 0 deletions components/layout/login-layout/LoginLayout.tsx
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>;
};
24 changes: 24 additions & 0 deletions components/login-header/LoginHeader.module.scss
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;
}
33 changes: 33 additions & 0 deletions components/login-header/LoginHeader.tsx
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>
);
}
24 changes: 24 additions & 0 deletions components/login-social-box/SocialBox.module.scss
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;
}
24 changes: 24 additions & 0 deletions components/login-social-box/SocialBox.tsx
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>
);
}
2 changes: 0 additions & 2 deletions pages/folder/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ export default function Folder() {
</div>
</div>
</Layout>
);
}
72 changes: 72 additions & 0 deletions pages/signin/Signin.module.scss
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;
}
4 changes: 4 additions & 0 deletions public/Eyeoff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/Eyeon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/Googlelogin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions public/Kakaologin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b558ae5

Please sign in to comment.