조국현

Update index.ejs and index.css

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