Suyeon Jung

Add shopping, excercies category

...@@ -9,13 +9,6 @@ let SIGUNDONG_CODE; ...@@ -9,13 +9,6 @@ let SIGUNDONG_CODE;
9 9
10 // 사용자가 index 페이지에서 주소를 입력하고 넘어오면 10 // 사용자가 index 페이지에서 주소를 입력하고 넘어오면
11 router.post('/', function(req, res) { 11 router.post('/', function(req, res) {
12 -<<<<<<< HEAD
13 -=======
14 - function callback(cb){
15 - cb();
16 - }
17 - console.log(req.body);
18 ->>>>>>> ad66cdf2973a2d21cfa2b0f6a672f59fa8a88160
19 let userLocation = req.body.userLocation; 12 let userLocation = req.body.userLocation;
20 // let userSi = req.body.si 13 // let userSi = req.body.si
21 // let userDong = req.body.dong; 14 // let userDong = req.body.dong;
...@@ -41,17 +34,6 @@ router.post('/', function(req, res) { ...@@ -41,17 +34,6 @@ router.post('/', function(req, res) {
41 xyList.push(result.documents[0].address.x); 34 xyList.push(result.documents[0].address.x);
42 xyList.push(result.documents[0].address.y); 35 xyList.push(result.documents[0].address.y);
43 console.log(xyList); 36 console.log(xyList);
44 -
45 - callback(function(){
46 - //버스api
47 - })
48 - callback(function(){
49 - //지하철api
50 - })
51 - callback(function(){
52 - //버스+지하철
53 - })
54 -
55 } 37 }
56 }) 38 })
57 res.render('category', { userLocation: req.body.userLocation }); 39 res.render('category', { userLocation: req.body.userLocation });
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
29 <div class="card-body"> 29 <div class="card-body">
30 <h5 class="card-title">음식</h5> 30 <h5 class="card-title">음식</h5>
31 <p class="card-text">주변 음식점의 수</p> 31 <p class="card-text">주변 음식점의 수</p>
32 - <a href="#" class="btn btn-primary">검사!</a> 32 + <a href="/select/food" class="btn btn-primary">검사!</a>
33 </div> 33 </div>
34 </div> 34 </div>
35 <div class="card" style="width: 18rem;"> 35 <div class="card" style="width: 18rem;">
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
37 <div class="card-body"> 37 <div class="card-body">
38 <h5 class="card-title">학군</h5> 38 <h5 class="card-title">학군</h5>
39 <p class="card-text">주변 학교, 학원 환경</p> 39 <p class="card-text">주변 학교, 학원 환경</p>
40 - <a href="#" class="btn btn-primary">검사!</a> 40 + <a href="/select/school" class="btn btn-primary">검사!</a>
41 </div> 41 </div>
42 </div> 42 </div>
43 <div class="card" style="width: 18rem;"> 43 <div class="card" style="width: 18rem;">
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
45 <div class="card-body"> 45 <div class="card-body">
46 <h5 class="card-title">공원</h5> 46 <h5 class="card-title">공원</h5>
47 <p class="card-text">주변 공원</p> 47 <p class="card-text">주변 공원</p>
48 - <a href="#" class="btn btn-primary">검사!</a> 48 + <a href="/select/park" class="btn btn-primary">검사!</a>
49 </div> 49 </div>
50 </div> 50 </div>
51 <div class="card" style="width: 18rem;"> 51 <div class="card" style="width: 18rem;">
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
53 <div class="card-body"> 53 <div class="card-body">
54 <h5 class="card-title">대중교통</h5> 54 <h5 class="card-title">대중교통</h5>
55 <p class="card-text">대중교통 편리도</p> 55 <p class="card-text">대중교통 편리도</p>
56 - <a href="#" class="btn btn-primary">검사!</a> 56 + <a href="/select/transport" class="btn btn-primary">검사!</a>
57 </div> 57 </div>
58 </div> 58 </div>
59 <div class="card" style="width: 18rem;"> 59 <div class="card" style="width: 18rem;">
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
61 <div class="card-body"> 61 <div class="card-body">
62 <h5 class="card-title">안전</h5> 62 <h5 class="card-title">안전</h5>
63 <p class="card-text">주변 경찰서, 범죄자 인근~</p> 63 <p class="card-text">주변 경찰서, 범죄자 인근~</p>
64 - <a href="#" class="btn btn-primary">검사!</a> 64 + <a href="/select/safe" class="btn btn-primary">검사!</a>
65 </div> 65 </div>
66 </div> 66 </div>
67 <div class="card" style="width: 18rem;"> 67 <div class="card" style="width: 18rem;">
...@@ -69,7 +69,23 @@ ...@@ -69,7 +69,23 @@
69 <div class="card-body"> 69 <div class="card-body">
70 <h5 class="card-title">여가</h5> 70 <h5 class="card-title">여가</h5>
71 <p class="card-text">주변 문화시설</p> 71 <p class="card-text">주변 문화시설</p>
72 - <a href="#" class="btn btn-primary">검사!</a> 72 + <a href="/select/culture" class="btn btn-primary">검사!</a>
73 + </div>
74 + </div>
75 + <div class="card" style="width: 18rem;">
76 + <img src="/img/shopping.jpg" class="card-img-top" alt="...">
77 + <div class="card-body">
78 + <h5 class="card-title">쇼핑</h5>
79 + <p class="card-text">주변 백화점, 마트, 재래시장</p>
80 + <a href="/select/culture" class="btn btn-primary">검사!</a>
81 + </div>
82 + </div>
83 + <div class="card" style="width: 18rem;">
84 + <img src="/img/gym.jpg" class="card-img-top" alt="...">
85 + <div class="card-body">
86 + <h5 class="card-title">운동</h5>
87 + <p class="card-text">주변 운동시설</p>
88 + <a href="/select/culture" class="btn btn-primary">검사!</a>
73 </div> 89 </div>
74 </div> 90 </div>
75 </div> 91 </div>
......