Commit eb5bd89d authored by Jiwon Yoon's avatar Jiwon Yoon
Browse files

Merge branch 'gyumin'

parents b7dc813b 334b7fb2
...@@ -4,6 +4,7 @@ import styles from "./login.module.scss"; ...@@ -4,6 +4,7 @@ import styles from "./login.module.scss";
const Login = () => { const Login = () => {
//useState를 이용해서 각 state 생성 및 초기값 저장 //useState를 이용해서 각 state 생성 및 초기값 저장
const [state, setState] = useState(true); // 이 줄은 css에 해당하는 state const [state, setState] = useState(true); // 이 줄은 css에 해당하는 state
//state변수 지정 하지만 이 변수는 react에 의해 없어지지 않음, 그리고 그 다음 변수는 state변수를 갱신해주는 함수
const [loginText, setLoginText] = useState({ const [loginText, setLoginText] = useState({
id:'', id:'',
password:'' password:''
...@@ -34,6 +35,8 @@ const Login = () => { ...@@ -34,6 +35,8 @@ const Login = () => {
return ( return (
<div className={`d-flex flex-column col-md-5 col-10`}> <div className={`d-flex flex-column col-md-5 col-10`}>
{/* nav-tabs */} {/* nav-tabs */}
{/* {console.log(loginText)} */}
{console.log(guestText)}
<ul className="nav nav-fill nav-tabs w-100" id="loginTab" role="tablist"> <ul className="nav nav-fill nav-tabs w-100" id="loginTab" role="tablist">
<li className="nav-item fs-6" role="presentation"> <li className="nav-item fs-6" role="presentation">
<button className={`nav-link active px-2 ${styles.fontSize}`} style={{ color: state ? "black" : "#FEDC00", backgroundColor: state ? "#FEDC00" : "black"}} <button className={`nav-link active px-2 ${styles.fontSize}`} style={{ color: state ? "black" : "#FEDC00", backgroundColor: state ? "#FEDC00" : "black"}}
......
...@@ -5,8 +5,8 @@ const Signup = () => { ...@@ -5,8 +5,8 @@ const Signup = () => {
const [userText, setUserState] = useState({ const [userText, setUserState] = useState({
userName: '', userName: '',
userBirthday: 0, userBirthday: '',
userMbnum: 0, userMbnum: '',
userPassword: '', userPassword: '',
userRePassword: '' userRePassword: ''
}) })
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment