Suyeon Jung

Add shopping, excercies category

......@@ -9,13 +9,6 @@ let SIGUNDONG_CODE;
// 사용자가 index 페이지에서 주소를 입력하고 넘어오면
router.post('/', function(req, res) {
<<<<<<< HEAD
=======
function callback(cb){
cb();
}
console.log(req.body);
>>>>>>> ad66cdf2973a2d21cfa2b0f6a672f59fa8a88160
let userLocation = req.body.userLocation;
// let userSi = req.body.si
// let userDong = req.body.dong;
......@@ -41,17 +34,6 @@ router.post('/', function(req, res) {
xyList.push(result.documents[0].address.x);
xyList.push(result.documents[0].address.y);
console.log(xyList);
callback(function(){
//버스api
})
callback(function(){
//지하철api
})
callback(function(){
//버스+지하철
})
}
})
res.render('category', { userLocation: req.body.userLocation });
......
......@@ -29,7 +29,7 @@
<div class="card-body">
<h5 class="card-title">음식</h5>
<p class="card-text">주변 음식점의 수</p>
<a href="#" class="btn btn-primary">검사!</a>
<a href="/select/food" class="btn btn-primary">검사!</a>
</div>
</div>
<div class="card" style="width: 18rem;">
......@@ -37,7 +37,7 @@
<div class="card-body">
<h5 class="card-title">학군</h5>
<p class="card-text">주변 학교, 학원 환경</p>
<a href="#" class="btn btn-primary">검사!</a>
<a href="/select/school" class="btn btn-primary">검사!</a>
</div>
</div>
<div class="card" style="width: 18rem;">
......@@ -45,7 +45,7 @@
<div class="card-body">
<h5 class="card-title">공원</h5>
<p class="card-text">주변 공원</p>
<a href="#" class="btn btn-primary">검사!</a>
<a href="/select/park" class="btn btn-primary">검사!</a>
</div>
</div>
<div class="card" style="width: 18rem;">
......@@ -53,7 +53,7 @@
<div class="card-body">
<h5 class="card-title">대중교통</h5>
<p class="card-text">대중교통 편리도</p>
<a href="#" class="btn btn-primary">검사!</a>
<a href="/select/transport" class="btn btn-primary">검사!</a>
</div>
</div>
<div class="card" style="width: 18rem;">
......@@ -61,7 +61,7 @@
<div class="card-body">
<h5 class="card-title">안전</h5>
<p class="card-text">주변 경찰서, 범죄자 인근~</p>
<a href="#" class="btn btn-primary">검사!</a>
<a href="/select/safe" class="btn btn-primary">검사!</a>
</div>
</div>
<div class="card" style="width: 18rem;">
......@@ -69,7 +69,23 @@
<div class="card-body">
<h5 class="card-title">여가</h5>
<p class="card-text">주변 문화시설</p>
<a href="#" class="btn btn-primary">검사!</a>
<a href="/select/culture" class="btn btn-primary">검사!</a>
</div>
</div>
<div class="card" style="width: 18rem;">
<img src="/img/shopping.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">쇼핑</h5>
<p class="card-text">주변 백화점, 마트, 재래시장</p>
<a href="/select/culture" class="btn btn-primary">검사!</a>
</div>
</div>
<div class="card" style="width: 18rem;">
<img src="/img/gym.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">운동</h5>
<p class="card-text">주변 운동시설</p>
<a href="/select/culture" class="btn btn-primary">검사!</a>
</div>
</div>
</div>
......