조국현

Update index.js, index.ejs, index.css

{
// IntelliSense를 사용하여 가능한 특성에 대해 알아보세요.
// 기존 특성에 대한 설명을 보려면 가리킵니다.
// 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요.
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
\ No newline at end of file
......@@ -11,6 +11,7 @@ const path=require('path')
app.set('views', __dirname + '/public')
app.set('view engine', 'ejs')
app.use(express.static(__dirname+'/public'))
app.use(bodyParser.urlencoded({extended:false}))
app.use(bodyParser.json())
......
* {
box-sizing: border-box;
font-family: 'Noto Sans KR', Sans-serif;
}
body {
margin: 0;
background-color: gray;
}
.container {
position: absolute;
width: 400px;
height: 400px;
background-color: gray;
text-align: center;
margin-left: -200px;
margin-top: -200px;
left: 50%;
top: 50%;
}
\ No newline at end of file
......@@ -3,10 +3,12 @@
<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"/>
<title><%= title %></title>
</head>
<body>
<h1>로그인하기</h1>
<div class="container">
<h1>Login</h1>
<form method="POST" action="/">
<label for="userId">아이디</label>
<input type="text" id="userId" name="userId"><br>
......@@ -14,5 +16,6 @@
<input type="password" id="password" name="password"><br>
<button>로그인</button>
</form>
</div>
</body>
</html>
\ No newline at end of file
......