register.ejs 3.85 KB
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="" />
        <meta name="author" content="" />
        <title>묵호 - 놀이터</title>
        <!-- Favicon-->
        <link rel="icon" type="image/x-icon" href="../assets/favicon.ico" />
        <!-- Bootstrap icons-->
        <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" type="text/css" />
        <!-- Google fonts-->
        <link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css" />
        <!-- Core theme CSS (includes Bootstrap)-->
        <link href="../css/styles.css" rel="stylesheet" />
    </head>
    <body>
        <!-- Navigation-->
        <nav class="navbar navbar-light bg-light static-top">
            <div class="container">
                <a class="navbar-brand" href="/main">묵호의 놀이터</a>
                <div class="user">
                    <a class="btn btn-primary" href="/login">로그인</a>
                </div>
            </div>
        </nav>
        <div class="container px-5 my-5">
            <h2>회원가입</h2>
            <form action="/register" method="post" id="contactForm" data-sb-form-api-token="API_TOKEN">
                <div class="form-floating mb-3">
                    <input class="form-control" name="ID" id="ID" type="text" required minlength='1' maxlength='20' placeholder="ID" data-sb-validations="required" />
                    <label for="ID">아이디</label>
                    <div class="invalid-feedback" data-sb-feedback="id:required">아이디를 입력하세요.</div>
                </div>
                <div class="form-floating mb-3">
                    <input class="form-control" name="password" id="password" required minlength='1' maxlength='20' type="password" placeholder="password" data-sb-validations="required" />
                    <label for="password">비밀번호</label>
                    <div class="invalid-feedback" data-sb-feedback="password:required">비밀번호를 입력하세요.</div>
                </div>
                <div class="form-floating mb-3">
                    <input class="form-control" name="pw_com" id="passwordConfirm" required minlength='1' maxlength='20' type="password" placeholder="password confirm" data-sb-validations="required" />
                    <label for="passwordConfirm">비밀번호 확인</label>
                    <div class="invalid-feedback" data-sb-feedback="passwordConfirm:required">비밀번호 확인을 해주세요.</div>
                </div>
                <div class="form-floating mb-3">
                    <input class="form-control" name="nickname" id="nickname" type="text" required minlength='1' maxlength='20' placeholder="nickname" data-sb-validations="required" />
                    <label for="nickname">닉네임</label>
                    <div class="invalid-feedback" data-sb-feedback="nickname:required">닉네임을 입력하세요.</div>
                </div>
                <div class="form-floating mb-3">
                    <select class="form-select" name="type" id="type" aria-label="사용자 유형">
                        <option value="작곡가">작곡가</option>
                        <option value="가수">가수</option>
                    </select>
                    <label for="사용자유형">사용자 유형</label>
                </div>
                <div class="d-grid">
                    <button class="btn btn-primary btn-lg" id="submitButton" type="submit">가입하기</button>
                </div>
                <section class="messages" style="color:crimson;"> <%= message %> </section>
            </form>
        </div>
    </body>
</html>