-
Notifications
You must be signed in to change notification settings - Fork 1
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
11t518s
wants to merge
30
commits into
develop
Choose a base branch
from
feature/login
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/login #16
Changes from 13 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
0bb86d3
feature: Login 화면
hongSso 5251c62
wip: 로그인 화면
hongSso 7884d08
chore: 테스트 커밋
minuxx e93959e
chore: 소스트리 테스트커밋
minukyu a144707
chore: 주석 제거
minuxx 745cbe4
wip: Login 화면
hongSso 91fc685
Merge branch 'feature/login' of https://github.com/Soongsil-Universit…
hongSso 81cd6db
wip: 로그인 상태값 변경테스트
minukyu dbdc05f
wip: 로그인 상태 값에 따른 컴포넌트 전환
hongSso 74edeb8
wip: 쏘작업물 병합
minuxx 9cd5b5d
wip: 로그인 컴포넌트 전환 구조
hongSso 335a12b
wip: 깃 충돌 수정
hongSso fbf7113
feature/map
moana16 86bfdf8
wip: 로그인 컴포넌트 전환
hongSso c4d3ec6
feature: 'nickname, phone number' input form 생성
hongSso ebf0935
wip: 로그인 오류 메세지 출력 화면
hongSso 4440331
feature/map
moana16 ab79764
feature/map
moana16 9a5ab74
feature/map
moana16 8097b64
fix: kakao map error
11t518s d6cb301
fix: delete code
11t518s 4fdfe32
feature/map
moana16 5719238
feature/map
moana16 ed0c469
add https settings
11t518s e8f01c8
Merge pull request #19 from Soongsil-University-MakeUs-Challenge/setH…
11t518s 00ddda0
Merge branch 'main' of https://github.com/Soongsil-University-MakeUs-…
minuxx f17b701
feat: 먼지 마커 렌더링 (더미데이터)
minuxx a4a0c12
feat: 닉네임 벨리데이션 추가
minuxx c1b066e
wip: 라우팅 작업
hongSso 40bc523
wip: 로그인 뷰 로직 완성
hongSso File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,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" | ||
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> | ||
); | ||
} |
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,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; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네이밍 컨벤션이 저희는 카멜 케이스로 하고 있으니 studentId로 해주시면 좋겠습니다!