Skip to content
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

[Feat]: 로그인 페이지 디자인 #15

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 19 additions & 31 deletions src/app/login/page.module.scss
Original file line number Diff line number Diff line change
@@ -1,36 +1,24 @@
.login_page {
width: 100%;

@import '../../lib/styles/_palette.scss';

.main {
height: 100vh;
padding: 100px 50px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}

.inputs{
margin: auto;
text-align: center;
input{
margin: 5px;
}

.auth_title{

}

.login_page h1 {
margin-top: 20px;
margin-bottom: 20px;
color: #4BBD5D;
}

.login_space{

}

.login_button{
display: flex;
bottom: 60px;
width: 80%;
height: 50px;
/* fill: #4BBD5D; */
/* font: ; */
color: #fff;
background: #4BBD5D;
border-radius: 12px;
justify-content: center;
align-items: center;
position: absolute;
}
}

.button{
background-color: $light-gray-color;
width: 100%;
}
11 changes: 6 additions & 5 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FormEvent, use } from "react";
import { useRouter } from "next/navigation";
import styles from "./page.module.scss";
import { login } from "@/lib/firebase/api/authAPI";

import Logo from "../_common/Logo";
export default function LoginPage() {
const router = useRouter();

Expand All @@ -18,17 +18,18 @@ export default function LoginPage() {
};

return (
<form className={styles.login_page} onSubmit={(e) => handleLogin(e)}>
<h1>Rainit</h1>
<div>
<form className={styles.main} onSubmit={(e) => handleLogin(e)}>
<Logo/>
<div className={styles.inputs}>
<input type="email" name="email" placeholder="이메일을 입력하세요" />
<input
type="password"
name="password"
placeholder="비밀번호를 입력하세요"
/>
</div>
<button type="submit" className={styles.login_button}>

<button type="submit" className={styles.button}>
로그인
</button>
</form>
Expand Down
Loading