Showing
1 changed file
with
50 additions
and
5 deletions
... | @@ -38,7 +38,7 @@ passport.deserializeUser(function(id, done) { //읽기 | ... | @@ -38,7 +38,7 @@ passport.deserializeUser(function(id, done) { //읽기 |
38 | 38 | ||
39 | //첫 페이지 | 39 | //첫 페이지 |
40 | app.get('/',(req,res)=>{ | 40 | app.get('/',(req,res)=>{ |
41 | - let page = getFirstPage('Passport','This is Passport Example Page',authInfo(req)); | 41 | + let page = getFirstPage('Welcome!','Food Recipe',authInfo(req)); |
42 | res.send(page); | 42 | res.send(page); |
43 | }); | 43 | }); |
44 | 44 | ||
... | @@ -398,13 +398,59 @@ const getFirstPage =(title, content, auth) =>{ | ... | @@ -398,13 +398,59 @@ const getFirstPage =(title, content, auth) =>{ |
398 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 398 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
399 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 399 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
400 | <title>Passport Example</title> | 400 | <title>Passport Example</title> |
401 | + <style> | ||
402 | + body{ | ||
403 | + height: 100vh; | ||
404 | + background-image: url('https://images.unsplash.com/photo-1614548539924-5c1f205b3747?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80'); | ||
405 | + background-position: center; | ||
406 | + background-repeat: no-repeat; | ||
407 | + background-size: cover; | ||
408 | + background-attachment: scroll; | ||
409 | + } | ||
410 | + h1 { | ||
411 | + position: absolute; | ||
412 | + left: 50%; | ||
413 | + top: 30%; | ||
414 | + transform: translate(-50%, -30%); | ||
415 | + text-align: center; | ||
416 | + font-size: 5em; | ||
417 | + font-family: cursive;; | ||
418 | + } | ||
419 | + p { | ||
420 | + position: relative; | ||
421 | + left: 50%; | ||
422 | + top: 47%; | ||
423 | + transform: translate(-50%, -47%); | ||
424 | + font-size: 3em; | ||
425 | + text-align: center; | ||
426 | + } | ||
427 | + div { | ||
428 | + position: relative; | ||
429 | + font-size: 1.3em; | ||
430 | + text-align: center; | ||
431 | + } | ||
432 | + .box1{ | ||
433 | + position: relative; | ||
434 | + left: 50%; | ||
435 | + top: 50%; | ||
436 | + transform: translate(-50%, -50%); | ||
437 | + } | ||
438 | + .box2{ | ||
439 | + position: relative; | ||
440 | + left: 50%; | ||
441 | + top: 54%; | ||
442 | + transform: translate(-50%, -54%); | ||
443 | + } | ||
444 | + </style> | ||
401 | </head> | 445 | </head> |
402 | <body> | 446 | <body> |
403 | - ${auth} | ||
404 | <h1>${title}</h1> | 447 | <h1>${title}</h1> |
405 | <p>${content}</p> | 448 | <p>${content}</p> |
406 | - <div> | 449 | + <div class="box1"> |
407 | - <input type="button" value="page move" onClick="movepage()"/> | 450 | + ${auth} |
451 | + </div> | ||
452 | + <div class="box2"> | ||
453 | + <input type="button" value="레시피 보러가기" onClick="movepage()"/> | ||
408 | </div> | 454 | </div> |
409 | <script type="text/javascript"> | 455 | <script type="text/javascript"> |
410 | function movepage(){ | 456 | function movepage(){ |
... | @@ -415,4 +461,3 @@ const getFirstPage =(title, content, auth) =>{ | ... | @@ -415,4 +461,3 @@ const getFirstPage =(title, content, auth) =>{ |
415 | `; | 461 | `; |
416 | 462 | ||
417 | } | 463 | } |
418 | - | ... | ... |
-
Please register or login to post a comment