Showing
1 changed file
with
84 additions
and
0 deletions
... | @@ -99,6 +99,7 @@ passport.authenticate('local', { | ... | @@ -99,6 +99,7 @@ passport.authenticate('local', { |
99 | 99 | ||
100 | //회원가입 페이지 Get | 100 | //회원가입 페이지 Get |
101 | app.get('/join',(req,res)=>{ | 101 | app.get('/join',(req,res)=>{ |
102 | +<<<<<<< HEAD | ||
102 | let page = getPage('회원가입',` | 103 | let page = getPage('회원가입',` |
103 | <script> function congratulation() | 104 | <script> function congratulation() |
104 | { | 105 | { |
... | @@ -112,6 +113,89 @@ app.get('/join',(req,res)=>{ | ... | @@ -112,6 +113,89 @@ app.get('/join',(req,res)=>{ |
112 | </form> | 113 | </form> |
113 | `,'<a href="/login">뒤로가기</a>'); | 114 | `,'<a href="/login">뒤로가기</a>'); |
114 | res.send(page); | 115 | res.send(page); |
116 | +======= | ||
117 | + let page = getPage('',` | ||
118 | + <html> | ||
119 | + <head> | ||
120 | + <style> | ||
121 | + body { | ||
122 | + padding-top: 15px; | ||
123 | + font-size: 12px | ||
124 | + } | ||
125 | + .main { | ||
126 | + max-width: 320px; | ||
127 | + margin-top:300px auto; | ||
128 | + margin: 0 auto; | ||
129 | + } | ||
130 | + .login-or { | ||
131 | + position: relative; | ||
132 | + font-size: 18px; | ||
133 | + color: rgb(7, 7, 7); | ||
134 | + margin-top: 10px; | ||
135 | + margin-bottom: 10px; | ||
136 | + padding-top: 10px; | ||
137 | + padding-bottom: 10px; | ||
138 | + } | ||
139 | + .span-or { | ||
140 | + display: block; | ||
141 | + position: absolute; | ||
142 | + left: 50%; | ||
143 | + top: -2px; | ||
144 | + margin-left: -25px; | ||
145 | + background-color: #fff; | ||
146 | + width: 50px; | ||
147 | + text-align: center; | ||
148 | + } | ||
149 | + .hr-or { | ||
150 | + background-color: #cdcdcd; | ||
151 | + height: 1px; | ||
152 | + margin-top: 0px !important; | ||
153 | + margin-bottom: 0px !important; | ||
154 | + } | ||
155 | + h3 { | ||
156 | + text-align: center; | ||
157 | + line-height: 300%; | ||
158 | + margin-top:10px auto; | ||
159 | + } | ||
160 | + img{ | ||
161 | + width:320px; | ||
162 | + height:150px; | ||
163 | + object-fit:cover; | ||
164 | + margin-bottom:30px; | ||
165 | + } | ||
166 | + </style><link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> | ||
167 | +<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> | ||
168 | +<script src="//code.jquery.com/jquery-1.11.1.min.js"></script> | ||
169 | + <script> function congratulation() | ||
170 | + { | ||
171 | + alert("새로운 회원이 되신걸 축하합니다!:D \n 레시피 찾을 준비 되셨나요?"); | ||
172 | + } </script> | ||
173 | +</head> | ||
174 | + | ||
175 | + <body> | ||
176 | + <div class="container"> | ||
177 | + <div class="row"> | ||
178 | + <div class="main"> | ||
179 | + <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=""/> | ||
180 | + <h3>Sign-Up</h3> | ||
181 | + <form action="/join" method="post"> | ||
182 | + <div class="form-group"> | ||
183 | + <input type="email" class="form-control" name="email" placeholder="email"><br> | ||
184 | + </div> | ||
185 | + <div class="form-group"> | ||
186 | + <input type="password" name="password" class="form-control" placeholder="****"><br> | ||
187 | + </div> | ||
188 | + <div class="form-group"> | ||
189 | + <input type="name" name="name" class="form-control" placeholder="이름"><br> | ||
190 | + </div> | ||
191 | + <button type="submit" value="회원가입" class="btn btn btn-primary" onClick="javascript:congratulation()"> | ||
192 | + 회원가입 | ||
193 | + </button> | ||
194 | + </form> | ||
195 | + </html> | ||
196 | + `,'<a href="/login">뒤로가기</a>'); | ||
197 | + res.send(page); | ||
198 | +>>>>>>> 04a7922847fd162bc1b11e832ee65246c056146d | ||
115 | }); | 199 | }); |
116 | 200 | ||
117 | //회원가입 처리 Post : 예제를 위해 간단 저장 방식으로 구현 | 201 | //회원가입 처리 Post : 예제를 위해 간단 저장 방식으로 구현 | ... | ... |
-
Please register or login to post a comment