Skip to content

Commit

Permalink
Added pizza printout. Changed size to 300px
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-pai committed Jan 18, 2015
1 parent 7ac8465 commit 29144ef
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ul,li,h2,p,h4,h3,h5 {
.content {

-webkit-font-smoothing: none;
width: 384px;
width: 300px;
overflow: hidden;
margin: 0 auto;
background-color: white;
Expand Down
7 changes: 7 additions & 0 deletions routes/pizza.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ router.get('/', function(req, res, next) {
if (!error2){
console.log("statusCode: ", response2.statusCode);
console.log(body2);

var data = {
duration : "60",
fee : "5"
};

res.render("pizza.html", data);
}
});
}
Expand Down
21 changes: 21 additions & 0 deletions views/pizza.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PIZZA DELIVERY</title>
<link rel="stylesheet" type="text/css" href="/stylesheets/style.css">
</head>
<body>
<div class="content">
<h1>PIZZA DELIVERY</h1>
<div class="wrapper">
<img id="w-image" src="/images/thunder.png" alt="">
<div id="w-text">
<span id="weather">??</span>
<h2><%= duration %> minutes</h2>
<p>$<%= fee %></p>
</div>
</div>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions views/weather.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<div class="content">
<h1>WEATHER</h1>
<div class="wrapper">
<%if (conditions=="Rain") {%><img id="w-image" src="/images/rain.png" alt=""><% }%>
<%if (conditions=="Chance of Rain") {%><img id="w-image" src="/images/rain.png" alt=""><% }%>
<%if (conditions=="Partly Cloudy") {%><img id="w-image" src="/images/partly.png" alt=""><% }%>
<%if (conditions=="Mostly Cloudy") {%><img id="w-image" src="/images/cloudy.png" alt=""><% }%>
Expand Down

0 comments on commit 29144ef

Please sign in to comment.