Login.js 2.94 KB
Newer Older
한규민's avatar
한규민 committed
1
import { useState } from "react";
한규민's avatar
login    
한규민 committed
2
3
import styles from "./login.module.scss";

한규민's avatar
한규민 committed
4
5
6
7
const Login = () => {
    const [state, setState] = useState(true)

    return (
한규민's avatar
한규민 committed
8
        <div className={`d-flex flex-column col-md-5 col-10`}>
한규민's avatar
한규민 committed
9
            {/* nav-tabs */}
한규민's avatar
한규민 committed
10
11
12
13
14
15
16
17
18
            <ul className="nav nav-fill nav-tabs w-100" id="loginTab" role="tablist">
                <li className="nav-item fs-10" role="presentation">
                    <button className={`nav-link active px-2 bg-black ${styles.fontSize}`} style={{ color: state ? "black" : "yellow", background: state ? "#FEDC00" : "black"}} id="login-tab" data-bs-toggle="tab" data-bs-target="#login" type="button" role="tab" aria-controls="login" aria-selected="true" onClick={() => setState(true)}>로그인</button>
                </li>
                <li className="nav-item" role="presentation">
                    <button className={`nav-link px-2 bg-black ${styles.fontSize}`}
                        id="guest-tab" data-bs-toggle="tab" data-bs-target="#guest" type="button" role="tab" aria-controls="guest" aria-selected="false" onClick={() => setState(false)} style={{ color: state ? "yellow" : "black" }}>비회원 예매 확인</button>
                </li>
            </ul>
한규민's avatar
한규민 committed
19

한규민's avatar
한규민 committed
20
            <div className="tab-content w-100" id="myTabContent">
한규민's avatar
한규민 committed
21
22
                {/* 로그인 */}
                <div className="tab-pane fade show active" id="login" role="tabpanel" aria-labelledby="login-tab">
한규민's avatar
한규민 committed
23
24
25
26
27
                    <div className="d-flex flex-column ">
                        <input className={styles.input} type="text" name="id" id="id" placeholder="ID" />
                        <input className={styles.input} type="text" name="password" id="password" placeholder="Password" minlength="8" required />
                        <input className="bg-ButterYellow text-dark border-0 rounded-2 mt-2" type="submit" value="Login" />
                        <span><a href="./signup" className={styles.intoSignupPage}>회원이 아니십니까?</a></span>
한규민's avatar
한규민 committed
28
29
30
31
32
                    </div>
                </div>

                {/* 비회원예매 학인 */}
                <div className="tab-pane fade" id="guest" role="tabpanel" aria-labelledby="guest-tab">
한규민's avatar
한규민 committed
33
34
35
36
37
38
39
40
41
                    <div className="d-flex flex-column">
                        <input type="text" name="id" id="id" placeholder="ID" />
                        <input type="text" name="password" id="password" placeholder="Password" minlength="8" required />
                        <p>
                             비회원 정보  입력  예매 내역 확인/취소  티켓 발권이 어려울  있으니 다시 한번 확인해 주시기 바랍니다.
                        </p>
                        <div class="guestLoginBtn">
                            <input class="guestLoginBtn" type="submit" value="비회원 예매 확인" />
                        </div>
한규민's avatar
한규민 committed
42
43
                    </div>
                </div>
한규민's avatar
login    
한규민 committed
44
45
46
47
48
49
            </div>
        </div>
    )
}

export default Login