최정민

CHORE : 타이틀및 전체적인 디자인수정

-
...@@ -5,7 +5,7 @@ var bodyParser = require("body-parser"); ...@@ -5,7 +5,7 @@ var bodyParser = require("body-parser");
5 5
6 var { OAuth2Client } = require("google-auth-library"); 6 var { OAuth2Client } = require("google-auth-library");
7 7
8 -var CLIENT_ID = 8 +const CLIENT_ID =
9 "94679084723-s5f0686p2porp9mkakrp1p89a48n24nj.apps.googleusercontent.com"; 9 "94679084723-s5f0686p2porp9mkakrp1p89a48n24nj.apps.googleusercontent.com";
10 var client = new OAuth2Client(CLIENT_ID); 10 var client = new OAuth2Client(CLIENT_ID);
11 var mysql = require("mysql"); 11 var mysql = require("mysql");
...@@ -34,12 +34,12 @@ connection.connect(); ...@@ -34,12 +34,12 @@ connection.connect();
34 /* GET home page. */ 34 /* GET home page. */
35 router.get("/", function (req, res, next) { 35 router.get("/", function (req, res, next) {
36 res.render("index", { 36 res.render("index", {
37 - d: "94679084723-s5f0686p2porp9mkakrp1p89a48n24nj.apps.googleusercontent.com", 37 + client_id: CLIENT_ID,
38 }); 38 });
39 }); 39 });
40 router.get("/index", function (req, res, next) { 40 router.get("/index", function (req, res, next) {
41 res.render("index", { 41 res.render("index", {
42 - d: "94679084723-s5f0686p2porp9mkakrp1p89a48n24nj.apps.googleusercontent.com", 42 + client_id: CLIENT_ID,
43 }); 43 });
44 }); 44 });
45 45
...@@ -145,7 +145,9 @@ router.post("/login", (req, res) => { ...@@ -145,7 +145,9 @@ router.post("/login", (req, res) => {
145 connection.query(sql, parameter, function (err) { 145 connection.query(sql, parameter, function (err) {
146 if (err) { 146 if (err) {
147 console.log(err); 147 console.log(err);
148 - return res.render("/"); 148 + return res.render("/", {
149 + client_id: CLIENT_ID,
150 + });
149 } else { 151 } else {
150 console.log("새로운 user데이터 입력"); 152 console.log("새로운 user데이터 입력");
151 } 153 }
...@@ -162,7 +164,9 @@ router.post("/login", (req, res) => { ...@@ -162,7 +164,9 @@ router.post("/login", (req, res) => {
162 connection.query(sql2, parameter2, function (err) { 164 connection.query(sql2, parameter2, function (err) {
163 if (err) { 165 if (err) {
164 console.log(err); 166 console.log(err);
165 - return res.render("/"); 167 + return res.render("/",{
168 + client_id: CLIENT_ID,
169 + });
166 } else { 170 } else {
167 console.log("새로운 PREFERENCE데이터 입력"); 171 console.log("새로운 PREFERENCE데이터 입력");
168 } 172 }
...@@ -207,7 +211,9 @@ router.get("/map", function (req, res, next) { ...@@ -207,7 +211,9 @@ router.get("/map", function (req, res, next) {
207 if (req.session.user) { 211 if (req.session.user) {
208 res.render("map", { user: req.session.user }); 212 res.render("map", { user: req.session.user });
209 } else { 213 } else {
210 - res.render("/"); 214 + res.render("/",{
215 + client_id: CLIENT_ID,
216 + });
211 } 217 }
212 }); 218 });
213 219
......
1 -{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"__lastAccess":1622994774019,"user":{"email":"cjm104174@gmail.com","picture":"https://lh3.googleusercontent.com/a-/AOh14Gh3nytGsPbviGhkznR8HIwrL6o7xBIoFL08nIeU=s96-c","nickname":"Mayf","age":25,"gender":"male"}}
...\ No newline at end of file ...\ No newline at end of file
1 +{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"__lastAccess":1622998584246,"user":{"email":"cjm104174@gmail.com","picture":"https://lh3.googleusercontent.com/a-/AOh14Gh3nytGsPbviGhkznR8HIwrL6o7xBIoFL08nIeU=s96-c","nickname":"Mayf","age":25,"gender":"male"}}
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
3 <head> 3 <head>
4 <meta charset="UTF-8"> 4 <meta charset="UTF-8">
5 <script src="https://apis.google.com/js/platform.js" async defer></script> 5 <script src="https://apis.google.com/js/platform.js" async defer></script>
6 - <meta name="google-signin-client_id" content="94679084723-s5f0686p2porp9mkakrp1p89a48n24nj.apps.googleusercontent.com"> 6 + <meta name="google-signin-client_id" content=<%=client_id%>>
7 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 7 <meta name="viewport" content="width=device-width, initial-scale=1.0">
8 - <title>first</title> 8 + <title>Cafe Map</title>
9 <link rel="stylesheet" href="stylesheets/bootstrap.css"> 9 <link rel="stylesheet" href="stylesheets/bootstrap.css">
10 <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@700&display=swap" rel="stylesheet"> 10 <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@700&display=swap" rel="stylesheet">
11 11
...@@ -39,20 +39,12 @@ ...@@ -39,20 +39,12 @@
39 39
40 <body> 40 <body>
41 <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> 41 <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
42 - <a class="navbar-brand" href="/"><img src="images/home.png" width="40" height="40" alt=""> 42 +
43 - </a>
44 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> 43 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
45 <span class="navbar-toggler-icon"></span> 44 <span class="navbar-toggler-icon"></span>
46 </button> 45 </button>
47 <div class="collapse navbar-collapse" id="navbarSupportedContent"> 46 <div class="collapse navbar-collapse" id="navbarSupportedContent">
48 - <a class="navbar-brand" href="/" ><strong>Home</strong></a> 47 + <a class="navbar-brand" href="/" style="margin-left: 10px"><strong>Home</strong></a>
49 - <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
50 -
51 - <li class="nav-item active">
52 - <a class="nav-link" style="color:#ffffff" href="/" onclick="signOut();">Logout<span class="sr-only">(current)</span></a>
53 - </li>
54 -
55 - </ul>
56 </div> 48 </div>
57 </nav> 49 </nav>
58 <br><br> 50 <br><br>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 <meta charset="UTF-8" /> 4 <meta charset="UTF-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6 6
7 - <title>logined</title> 7 + <title>Sign Up</title>
8 8
9 <link rel="stylesheet" href="stylesheets/bootstrap.css" /> 9 <link rel="stylesheet" href="stylesheets/bootstrap.css" />
10 <link 10 <link
...@@ -32,22 +32,15 @@ ...@@ -32,22 +32,15 @@
32 h5 { 32 h5 {
33 font-family: "Noto Sans KR", sans-serif; 33 font-family: "Noto Sans KR", sans-serif;
34 } 34 }
35 - .middle {
36 - display: inline-block;
37 - vertical-align: middle;
38 - }
39 </style> 35 </style>
40 </head> 36 </head>
41 <body> 37 <body>
42 <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> 38 <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
43 - <a class="navbar-brand" href="/"
44 - ><img src="images/home.png" width="40" height="40" alt="" />
45 - </a>
46 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> 39 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
47 <span class="navbar-toggler-icon"></span> 40 <span class="navbar-toggler-icon"></span>
48 </button> 41 </button>
49 <div class="collapse navbar-collapse" id="navbarSupportedContent"> 42 <div class="collapse navbar-collapse" id="navbarSupportedContent">
50 - <a class="navbar-brand" href="/"><strong>Home</strong></a> 43 + <a class="navbar-brand" href="/" style="margin-left: 10px"><strong>Home</strong></a>
51 <ul class="navbar-nav mr-auto mt-2 mt-lg-0"> 44 <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
52 <li class="nav-item active"> 45 <li class="nav-item active">
53 <a class="nav-link" style="color: #ffffff" href="/" onclick="signOut();">Logout<span class="sr-only">(current)</span></a> 46 <a class="nav-link" style="color: #ffffff" href="/" onclick="signOut();">Logout<span class="sr-only">(current)</span></a>
......
...@@ -4,9 +4,6 @@ ...@@ -4,9 +4,6 @@
4 <link rel="stylesheet" href="stylesheets/bootstrap.css" /> 4 <link rel="stylesheet" href="stylesheets/bootstrap.css" />
5 <title>Cafe Map</title> 5 <title>Cafe Map</title>
6 <style> 6 <style>
7 - .navbar {
8 - background-color: #1d2124 !important;
9 - }
10 .btn-primary { 7 .btn-primary {
11 color: white !important; 8 color: white !important;
12 } 9 }
...@@ -98,9 +95,6 @@ ...@@ -98,9 +95,6 @@
98 </head> 95 </head>
99 <body> 96 <body>
100 <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> 97 <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
101 - <a class="navbar-brand" href="/"
102 - ><img src="images/home.png" width="40" height="40" alt="" />
103 - </a>
104 <button 98 <button
105 class="navbar-toggler" 99 class="navbar-toggler"
106 type="button" 100 type="button"
...@@ -113,7 +107,7 @@ ...@@ -113,7 +107,7 @@
113 <span class="navbar-toggler-icon"></span> 107 <span class="navbar-toggler-icon"></span>
114 </button> 108 </button>
115 <div class="collapse navbar-collapse" id="navbarSupportedContent"> 109 <div class="collapse navbar-collapse" id="navbarSupportedContent">
116 - <a class="navbar-brand" href="/"><strong>Home</strong></a> 110 + <a class="navbar-brand" href="/" style="margin-left: 10px"><strong>Home</strong></a>
117 <ul class="navbar-nav mr-auto mt-2 mt-lg-0"> 111 <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
118 <li class="nav-item active"> 112 <li class="nav-item active">
119 <a 113 <a
...@@ -219,7 +213,7 @@ ...@@ -219,7 +213,7 @@
219 var mapContainer = document.getElementById("map"), 213 var mapContainer = document.getElementById("map"),
220 mapOption = { 214 mapOption = {
221 center: new kakao.maps.LatLng(36.2477502, 127.078164), 215 center: new kakao.maps.LatLng(36.2477502, 127.078164),
222 - level: 3, 216 + level: 12,
223 }; 217 };
224 var map = new kakao.maps.Map(mapContainer, mapOption); 218 var map = new kakao.maps.Map(mapContainer, mapOption);
225 var ps = new kakao.maps.services.Places(map); 219 var ps = new kakao.maps.services.Places(map);
......
...@@ -28,17 +28,11 @@ ...@@ -28,17 +28,11 @@
28 h5 { 28 h5 {
29 font-family: "Noto Sans KR", sans-serif; 29 font-family: "Noto Sans KR", sans-serif;
30 } 30 }
31 - .middle { 31 +
32 - display: inline-block;
33 - vertical-align: middle;
34 - }
35 </style> 32 </style>
36 </head> 33 </head>
37 <body> 34 <body>
38 <nav class="navbar navbar-expand-lg navbar-dark bg-dark"> 35 <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
39 - <a class="navbar-brand" href="/"
40 - ><img src="/images/home.png" width="40" height="40" alt="" />
41 - </a>
42 <button 36 <button
43 class="navbar-toggler" 37 class="navbar-toggler"
44 type="button" 38 type="button"
...@@ -51,7 +45,7 @@ ...@@ -51,7 +45,7 @@
51 <span class="navbar-toggler-icon"></span> 45 <span class="navbar-toggler-icon"></span>
52 </button> 46 </button>
53 <div class="collapse navbar-collapse" id="navbarSupportedContent"> 47 <div class="collapse navbar-collapse" id="navbarSupportedContent">
54 - <a class="navbar-brand" href="/"><strong>Home</strong></a> 48 + <a class="navbar-brand" href="/" style="margin-left: 10px"><strong>Home</strong></a>
55 </div> 49 </div>
56 </nav> 50 </nav>
57 51
......