조국현

Update index.ejs and index.css

1 -* { 1 +body {
2 - box-sizing: border-box; 2 + padding-top: 15px;
3 - font-family: 'Noto Sans KR', Sans-serif; 3 + font-size: 12px
4 } 4 }
5 -body { 5 +.main {
6 - margin: 0; 6 + max-width: 320px;
7 - background-color: gray; 7 + margin: 0 auto;
8 } 8 }
9 -.container { 9 +.login-or {
10 + position: relative;
11 + font-size: 18px;
12 + color: #aaa;
13 + margin-top: 10px;
14 + margin-bottom: 10px;
15 + padding-top: 10px;
16 + padding-bottom: 10px;
17 +}
18 +.span-or {
19 + display: block;
10 position: absolute; 20 position: absolute;
11 - width: 400px; 21 + left: 50%;
12 - height: 400px; 22 + top: -2px;
13 - background-color: gray; 23 + margin-left: -25px;
14 - text-align: center; 24 + background-color: #fff;
15 - margin-left: -200px; 25 + width: 50px;
16 - margin-top: -200px; 26 + text-align: center;
17 - left: 50%; 27 +}
18 - top: 50%; 28 +.hr-or {
29 + background-color: #cdcdcd;
30 + height: 1px;
31 + margin-top: 0px !important;
32 + margin-bottom: 0px !important;
33 +}
34 +h3 {
35 + text-align: center;
36 + line-height: 300%;
19 } 37 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -3,19 +3,36 @@ ...@@ -3,19 +3,36 @@
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 - <link rel="stylesheet" type="text/css" href="/css/index.css"/> 6 + <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
7 + <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
8 + <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
7 <title><%= title %></title> 9 <title><%= title %></title>
8 </head> 10 </head>
9 <body> 11 <body>
10 <div class="container"> 12 <div class="container">
11 - <h1>Login</h1> 13 + <div class="row">
12 - <form method="POST" action="/"> 14 +
13 - <label for="userId">아이디</label> 15 + <div class="main">
14 - <input type="text" id="userId" name="userId"><br> 16 +
15 - <label for="password">비밀번호</label> 17 + <h3>Login</h3>
16 - <input type="password" id="password" name="password"><br> 18 +
17 - <button>로그인</button> 19 + <form role="form" method="POST" action="/">
18 - </form> 20 + <div class="form-group">
21 + <label for="userId">ID</label>
22 + <input type="text" class="form-control" id="userId" name="userId">
23 + </div>
24 + <div class="form-group">
25 + <label for="password">비밀번호</label>
26 + <input type="password" class="form-control" id="password" name="password">
27 + </div>
28 + <button type="submit" class="btn btn btn-primary">
29 + Enter
30 + </button>
31 + </form>
32 +
33 + </div>
34 +
35 + </div>
19 </div> 36 </div>
20 </body> 37 </body>
21 </html> 38 </html>
...\ No newline at end of file ...\ No newline at end of file
......