Heeyeon

git pull origin master --allow-unrelated-histories

...@@ -38,7 +38,11 @@ passport.deserializeUser(function(id, done) { //읽기 ...@@ -38,7 +38,11 @@ passport.deserializeUser(function(id, done) { //읽기
38 38
39 //첫 페이지 39 //첫 페이지
40 app.get('/',(req,res)=>{ 40 app.get('/',(req,res)=>{
41 +<<<<<<< HEAD
41 let page = getFirstPage(' 오늘뭐먹지','아직도 먹는게<br>고민된다면..?',authInfo(req)); 42 let page = getFirstPage(' 오늘뭐먹지','아직도 먹는게<br>고민된다면..?',authInfo(req));
43 +=======
44 + let page = getFirstPage('Welcome!','Food Recipe',authInfo(req));
45 +>>>>>>> fdaabc0a001fe31ed43809b64f9073ff18fd1db6
42 res.send(page); 46 res.send(page);
43 }); 47 });
44 48
...@@ -395,6 +399,7 @@ const getLoginButton = (auth) =>{ ...@@ -395,6 +399,7 @@ const getLoginButton = (auth) =>{
395 399
396 //첫 페이지 화면 400 //첫 페이지 화면
397 const getFirstPage =(title, content, auth) =>{ 401 const getFirstPage =(title, content, auth) =>{
402 +<<<<<<< HEAD
398 return ` 403 return `
399 <!DOCTYPE html> 404 <!DOCTYPE html>
400 <html lang="en"> 405 <html lang="en">
...@@ -539,4 +544,77 @@ const getFirstPage =(title, content, auth) =>{ ...@@ -539,4 +544,77 @@ const getFirstPage =(title, content, auth) =>{
539 </body> 544 </body>
540 </html> 545 </html>
541 `; 546 `;
542 -}
...\ No newline at end of file ...\ No newline at end of file
547 +}
548 +=======
549 + return `
550 + <!DOCTYPE html>
551 + <html lang="en">
552 + <head>
553 + <meta charset="UTF-8">
554 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
555 + <meta name="viewport" content="width=device-width, initial-scale=1.0">
556 + <title>Passport Example</title>
557 + <style>
558 + body{
559 + height: 100vh;
560 + 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');
561 + background-position: center;
562 + background-repeat: no-repeat;
563 + background-size: cover;
564 + background-attachment: scroll;
565 + }
566 + h1 {
567 + position: absolute;
568 + left: 50%;
569 + top: 30%;
570 + transform: translate(-50%, -30%);
571 + text-align: center;
572 + font-size: 5em;
573 + font-family: cursive;;
574 + }
575 + p {
576 + position: relative;
577 + left: 50%;
578 + top: 47%;
579 + transform: translate(-50%, -47%);
580 + font-size: 3em;
581 + text-align: center;
582 + }
583 + div {
584 + position: relative;
585 + font-size: 1.3em;
586 + text-align: center;
587 + }
588 + .box1{
589 + position: relative;
590 + left: 50%;
591 + top: 50%;
592 + transform: translate(-50%, -50%);
593 + }
594 + .box2{
595 + position: relative;
596 + left: 50%;
597 + top: 54%;
598 + transform: translate(-50%, -54%);
599 + }
600 + </style>
601 + </head>
602 + <body>
603 + <h1>${title}</h1>
604 + <p>${content}</p>
605 + <div class="box1">
606 + ${auth}
607 + </div>
608 + <div class="box2">
609 + <input type="button" value="레시피 보러가기" onClick="movepage()"/>
610 + </div>
611 + <script type="text/javascript">
612 + function movepage(){
613 + location.href="main";
614 + }</script>
615 + </body>
616 + </html>
617 + `;
618 +
619 +}
620 +>>>>>>> fdaabc0a001fe31ed43809b64f9073ff18fd1db6
......
...@@ -69,4 +69,8 @@ section{ ...@@ -69,4 +69,8 @@ section{
69 font-size:4rem; 69 font-size:4rem;
70 color:black; 70 color:black;
71 margin-bottom:30px; 71 margin-bottom:30px;
72 -}
...\ No newline at end of file ...\ No newline at end of file
72 +<<<<<<< HEAD
73 +}
74 +=======
75 +}
76 +>>>>>>> fdaabc0a001fe31ed43809b64f9073ff18fd1db6
......
...@@ -30,4 +30,8 @@ ...@@ -30,4 +30,8 @@
30 <script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script> 30 <script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
31 <script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script> 31 <script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
32 </body> 32 </body>
33 -</html>
...\ No newline at end of file ...\ No newline at end of file
33 +<<<<<<< HEAD
34 +</html>
35 +=======
36 +</html>
37 +>>>>>>> fdaabc0a001fe31ed43809b64f9073ff18fd1db6
......
1 +{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"flash":{"error":["Missing username or password.","Missing username or password."]},"__lastAccess":1638672404811}
...\ No newline at end of file ...\ No newline at end of file