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

Feature/login #16

Open
wants to merge 30 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0bb86d3
feature: Login 화면
hongSso Aug 17, 2022
5251c62
wip: 로그인 화면
hongSso Aug 18, 2022
7884d08
chore: 테스트 커밋
minuxx Aug 20, 2022
e93959e
chore: 소스트리 테스트커밋
minukyu Aug 20, 2022
a144707
chore: 주석 제거
minuxx Aug 20, 2022
745cbe4
wip: Login 화면
hongSso Aug 20, 2022
91fc685
Merge branch 'feature/login' of https://github.com/Soongsil-Universit…
hongSso Aug 20, 2022
81cd6db
wip: 로그인 상태값 변경테스트
minukyu Aug 20, 2022
dbdc05f
wip: 로그인 상태 값에 따른 컴포넌트 전환
hongSso Aug 20, 2022
74edeb8
wip: 쏘작업물 병합
minuxx Aug 20, 2022
9cd5b5d
wip: 로그인 컴포넌트 전환 구조
hongSso Aug 20, 2022
335a12b
wip: 깃 충돌 수정
hongSso Aug 20, 2022
fbf7113
feature/map
moana16 Aug 24, 2022
86bfdf8
wip: 로그인 컴포넌트 전환
hongSso Aug 25, 2022
c4d3ec6
feature: 'nickname, phone number' input form 생성
hongSso Aug 28, 2022
ebf0935
wip: 로그인 오류 메세지 출력 화면
hongSso Aug 30, 2022
4440331
feature/map
moana16 Aug 31, 2022
ab79764
feature/map
moana16 Aug 31, 2022
9a5ab74
feature/map
moana16 Aug 31, 2022
8097b64
fix: kakao map error
11t518s Aug 31, 2022
d6cb301
fix: delete code
11t518s Aug 31, 2022
4fdfe32
feature/map
moana16 Sep 23, 2022
5719238
feature/map
moana16 Sep 23, 2022
ed0c469
add https settings
11t518s Sep 24, 2022
e8f01c8
Merge pull request #19 from Soongsil-University-MakeUs-Challenge/setH…
11t518s Sep 24, 2022
00ddda0
Merge branch 'main' of https://github.com/Soongsil-University-MakeUs-…
minuxx Sep 24, 2022
f17b701
feat: 먼지 마커 렌더링 (더미데이터)
minuxx Sep 24, 2022
a4a0c12
feat: 닉네임 벨리데이션 추가
minuxx Sep 24, 2022
c1b066e
wip: 라우팅 작업
hongSso Sep 24, 2022
40bc523
wip: 로그인 뷰 로직 완성
hongSso Sep 24, 2022
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
78 changes: 78 additions & 0 deletions pages/login/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import Link from "next/link";
import { func } from "prop-types";
import { useEffect, useRef, useState } from "react";
import styles from "../../styles/Login.module.css";

export default function Login() {
const [codeNumber, setCodeNumber] = useState("");
const onChange = (e) => {
const { name, value } = e.target;
console.log(name, value);
setCodeNumber(value);
};

const [isLoginSuccess, setIsLoginSuccess] = useState(false);
const [isBye, setIsBye] = useState(false);

const onLoginChange = () => {
setIsLoginSuccess((prev) => !prev);
};

const onByeChange = () => {
setIsBye((prev) => !prev);
setIsLoginSuccess(false);
};

return (
<div className={styles.background}>
{!isBye && (
<div>
<div className={styles.logo_img} />
{!isLoginSuccess && (
<div>
<div>
<a className={styles.inputrequest}>Input your code number..</a>{" "}
<br />
<input
name="student-id"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네이밍 컨벤션이 저희는 카멜 케이스로 하고 있으니 studentId로 해주시면 좋겠습니다!

type="text"
value={codeNumber}
className={styles.inputBox}
onChange={onChange}
placeholder="code number"
/>
<br />
<a className={styles.prove}>
<span style={{ color: "#F9E219" }}>학번</span>으로 대숭실대
우주전사임을 증명해주세요!
</a>
<div className={styles.loginBtn} onClick={onLoginChange}>
Login{">"}
</div>
</div>
</div>
)}
{isLoginSuccess && (
<div>
<a className={styles.startrequest}>
Do you want to go <br /> hunting stardust?
</a>
<br />
<button className={styles.goBtn}>Go!</button>
<br />
<button className={styles.awayBtn} onClick={onByeChange}>
Run away?
</button>
</div>
)}
</div>
)}
{isBye && (
<div className={styles.okBye}>
<a>Okay, Bye...</a>
</div>
)}
<a className={styles.ssumcLogo}>SSUMC</a>
</div>
);
}
118 changes: 118 additions & 0 deletions styles/Login.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
.background {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: url(../public/background_image.png);
min-height: 100vh;
background-repeat: repeat-y;
background-size: 200%;
overflow: scroll;
}

.logo_img {
min-width: 200px;
max-width: 500px;
margin-bottom: 80px;
margin-top: 60px;
width: 326px;
content: url(../public/startdust_logo.png);
}

.inputrequest {
text-align: left;
font-family: "NeoDunggeunmo";
font-size: 16px;
color: #ffffff;
}

.inputBox {
margin-top: 10px;
margin-bottom: 8px;
margin-left: 0;
width: 334px;
color: #ffffff;
background-color: transparent; /*배경 투명*/
border: 2px solid #f9e219; /* 라인선*/
padding: 11px; /* 상하좌우 크기는 여백으로 설정 */
padding-left: 18px;
padding-right: 18px;
font-size: 24px;
font-family: "NeoDunggeunmo";
border-radius: 4px;
}

.prove {
font-size: 14px;
font-family: "NeoDunggeunmo";
color: aliceblue;
}

.loginBtn {
margin-top: 55px;
margin-bottom: 241px;
text-align: center;
font-family: "NeoDunggeunmo";
color: #f9e219;
font-size: 24px;
}

.ssumcLogo {
margin-bottom: 12px;
text-align: center;
font-family: "NeoDunggeunmo";
color: #ffffff;
font-size: 24px;
}

.startrequest {
text-align: left;
font-family: "NeoDunggeunmo";
font-size: 26px;
color: aliceblue;
}

.goBtn {
width: 334px;
display: inline-block;
margin-top: 30px;
margin-left: 0;
color: #ffffff;
background-color: transparent; /*배경 투명*/
border: 2px solid #f9e219; /* 라인선 none 인 경우 아예 안보임*/
padding: 5px; /* 상하좌우 크기는 여백으로 설정 */
font-size: 35px;
font-family: "NeoDunggeunmo"; /*글씨체*/
border-radius: 4px; /*둥글게 표현*/
background-color: rgba(249, 226, 25, 0.1);
}

.awayBtn {
width: 334px;
margin-bottom: 215px;
margin-top: 15px;
color: #ffffff;
background-color: transparent; /*배경 투명*/
border: 2px solid aliceblue; /* 라인선 none 인 경우 아예 안보임*/
padding: 5px; /* 상하좌우 크기는 여백으로 설정 */
font-size: 35px;
font-family: "NeoDunggeunmo";
border-radius: 4px;
}

.okBye {
margin-top: 407px;
margin-bottom: 371px;
text-align: left;
font-family: "NeoDunggeunmo";
font-size: 26px;
color: aliceblue;
}

@font-face {
font-family: "NeoDunggeunmo";
src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/[email protected]/NeoDunggeunmo.woff")
format("woff");
font-weight: normal;
font-style: normal;
}
Loading