diff --git a/public/images/pizza.png b/public/images/pizza.png new file mode 100644 index 0000000..255f280 Binary files /dev/null and b/public/images/pizza.png differ diff --git a/routes/pizza.js b/routes/pizza.js index 492b57e..6afa68d 100644 --- a/routes/pizza.js +++ b/routes/pizza.js @@ -75,8 +75,8 @@ router.get('/', function(req, res, next) { console.log(body2); var data = { - duration : "60", - fee : "5" + duration : body["duration"], + fee : body2["fee"] }; res.render("pizza.html", data); diff --git a/views/pizza.html b/views/pizza.html index 642e0e7..5ca0073 100644 --- a/views/pizza.html +++ b/views/pizza.html @@ -9,11 +9,11 @@ <div class="content"> <h1>PIZZA DELIVERY</h1> <div class="wrapper"> - <img id="w-image" src="/images/thunder.png" alt=""> + <img id="w-image" src="/images/pizza.png" alt=""> <div id="w-text"> - <span id="weather">??</span> - <h2><%= duration %> minutes</h2> - <p>$<%= fee %></p> + <span id="weather"><%= duration %> minutes</span> + <h2>$<%= fee %> FEE</h2> + <!--<p>Fee: $</p> --> </div> </div> </div>