-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
로그인 화면 초기화, input form 생성, CSS 적용 #14
- Loading branch information
Showing
2 changed files
with
130 additions
and
0 deletions.
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,33 @@ | ||
import { useEffect, useRef, useState } from "react"; | ||
import styles from "../../styles/Login.module.css"; | ||
|
||
|
||
export default function Login(){ | ||
|
||
const[codeNumber,setCodeNumber]=useState(""); | ||
const onChange = (event) => { | ||
console.log(event.target.value); | ||
} | ||
return( | ||
<div className={styles.background}> | ||
<div className={styles.logo_img}/> | ||
<div><a className={styles.inputrequest}>Input your code number...</a> | ||
<div> | ||
<input | ||
id="id" | ||
type="text" | ||
value={codeNumber} | ||
className={styles.inputBox} | ||
onChange={onChange} | ||
placeholder="code number"/> | ||
<div className={styles.prove}> | ||
<a><span style={{color:"#F9E219"}}>학번</span>으로 대숭실대 우주전사임을 증명해주세요!</a> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div className={styles.loginBtn}><a href="/login">Login{">"}</a></div> | ||
<div className={styles.ssumcBtn}><a>SSUMC</a></div> | ||
</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,97 @@ | ||
.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: 100%; | ||
overflow: scroll; | ||
|
||
} | ||
.container { | ||
overflow: scroll; | ||
/*overflow: scroll;*/ | ||
max-width: 500px; | ||
padding: 20px 0; | ||
text-align: center; | ||
|
||
color: aliceblue; | ||
padding-top: 20px; | ||
font-family: "NeoDunggeunmo"; | ||
text-align: center; | ||
margin: 0 auto; | ||
} | ||
.logo_img { | ||
margin: 15px; | ||
bottom: 100px; | ||
width: 30vw; | ||
min-width: 200px; | ||
max-width: 500px; | ||
content: url(../public/startdust_logo.png); | ||
|
||
} | ||
.inputrequest{ | ||
margin-top: 10px; | ||
padding-top: 30px; | ||
padding-right: 20px; | ||
padding-bottom: 20px; | ||
font-family: "NeoDunggeunmo"; | ||
font-size: 10px; | ||
color: aliceblue; | ||
} | ||
|
||
.inputBox{ | ||
margin: 5px; | ||
margin-left: 0; | ||
color: aliceblue; | ||
background-color:transparent; /*배경 투명*/ | ||
border:1px solid #F9E219; /* 라인선 none 인 경우 아예 안보임*/ | ||
padding:5px; /* 상하좌우 크기는 여백으로 설정 */ | ||
padding-left: 15px; | ||
font-size:18px; | ||
font-family: "NeoDunggeunmo"; | ||
border-radius: 3px; | ||
} | ||
|
||
.prove{ | ||
font-size:3px; | ||
font-family: "NeoDunggeunmo"; | ||
color: aliceblue; | ||
} | ||
|
||
.loginBtn{ | ||
display:inline-block; | ||
margin-top: 30px; | ||
margin-bottom: 100px; | ||
text-align: center; | ||
width: 30vw; | ||
font-family: "NeoDunggeunmo"; | ||
color: #F9E219; | ||
font-size: 13px; | ||
} | ||
|
||
.ssumcBtn{ | ||
margin: 30px; | ||
text-align: center; | ||
font-family: "NeoDunggeunmo"; | ||
color: aliceblue; | ||
font-size: 13px; | ||
} | ||
|
||
@keyframes fadein { | ||
0% { | ||
opacity: 0; | ||
} | ||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
@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; | ||
} |