Skip to content

Commit

Permalink
chore: Update login page styles and remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
castberry10 committed Aug 5, 2024
1 parent 9f574c4 commit 4481e00
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 33 deletions.
80 changes: 52 additions & 28 deletions src/app/login/page.module.scss
Original file line number Diff line number Diff line change
@@ -1,36 +1,60 @@
.login_page {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
// .login_page {
// width: 100%;
// height: 100vh;
// display: flex;
// flex-direction: column;
// align-items: center;
// }

.auth_title{
// .auth_title{

}
// }

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

.login_space{
// .login_space{

}
// }

.login_button{
// .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;
// }

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

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

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

.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

0 comments on commit 4481e00

Please sign in to comment.