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-12-01 00:19:44 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33214f278468302f9dd4e5c9d106e7ac549d9dce
33214f27
1 parent
dfa5d0da
Update front-end design of sign-up
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
13 deletions
index.js
index.js
View file @
33214f2
...
...
@@ -88,19 +88,87 @@ passport.authenticate('local', {
//회원가입 페이지 Get
app
.
get
(
'/join'
,(
req
,
res
)
=>
{
let
page
=
getPage
(
'회원가입'
,
`
<script> function congratulation()
{
alert("새로운 회원이 되신걸 축하합니다!:D \n 레시피 찾을 준비 되셨나요?");
} </script>
<form action="/join" method="post">
<input type="email" name="email" placeholder="email"><br>
<input type="password" name="password" placeholder="****"><br>
<input type="name" name="name" placeholder="이름"><br>
<input type="submit" value="회원가입" onClick="javascript:congratulation()"><br>
</form>
`
,
'<a href="/login">뒤로가기</a>'
);
res
.
send
(
page
);
let
page
=
getPage
(
'회원가입'
,
`
<html>
<head>
<style>
body {
padding-top: 15px;
font-size: 12px
}
.main {
max-width: 320px;
margin-top:300px auto;
margin: 0 auto;
}
.login-or {
position: relative;
font-size: 18px;
color: rgb(7, 7, 7);
margin-top: 10px;
margin-bottom: 10px;
padding-top: 10px;
padding-bottom: 10px;
}
.span-or {
display: block;
position: absolute;
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%;
margin-top:10px auto;
}
img{
width:320px;
height:150px;
object-fit:cover;
margin-bottom:30px;
}
</style><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>
<script> function congratulation()
{
alert("새로운 회원이 되신걸 축하합니다!:D \n 레시피 찾을 준비 되셨나요?");
} </script>
</head>
<body>
<div class="container">
<div class="row">
<div class="main">
<img src="https://images.unsplash.com/photo-1600577916048-804c9191e36c?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1632&q=80" alt=""/>
<h3>Sign-Up</h3>
<form action="/join" method="post">
<div class="form-group">
<input type="email" class="form-control" name="email" placeholder="email"><br>
</div>
<div class="form-group">
<input type="password" name="password" class="form-control" placeholder="****"><br>
</div>
<div class="form-group">
<input type="name" name="name" class="form-control" placeholder="이름"><br>
</div>
<button type="submit" value="회원가입" class="btn btn btn-primary" onClick="javascript:congratulation()">
회원가입
</button>
</form>
</html>
`
,
'<a href="/login">뒤로가기</a>'
);
res
.
send
(
page
);
});
//회원가입 처리 Post : 예제를 위해 간단 저장 방식으로 구현
...
...
Please
register
or
login
to post a comment