Toggle navigation
Toggle navigation
This project
Loading...
Sign in
구희연
/
Food_recipe_info
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
조국현
2021-11-21 22:39:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
673810793b3020c7f3be7665ded6508829ab90e3
67381079
1 parent
479c1b41
Update index.js, index.ejs, index.css
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
1 deletions
.vscode/launch.json
index.js
public/css/index.css
public/index.ejs
.vscode/launch.json
0 → 100644
View file @
6738107
{
//
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
index.js
View file @
6738107
...
...
@@ -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
())
...
...
public/css/index.css
0 → 100644
View file @
6738107
*
{
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
public/index.ejs
View file @
6738107
...
...
@@ -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
...
...
Please
register
or
login
to post a comment