-
Notifications
You must be signed in to change notification settings - Fork 0
/
pizza.html
254 lines (222 loc) · 6.35 KB
/
pizza.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Udacity Project 4">
<meta name="author" content="Luiz Arantes Sa">
<style>
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-box-sizing: border-box;
}
body {
background: black;
font: 400 16px/1.61 "Trebuchet MS", Helvetica, sans-serif;
}
input {
background: grey;
font-size: 18px;
}
form {
display: inline-block;
}
.img-responsive {
display: block;
height: auto;
width: 100%;
}
img {
vertical-align: middle;
}
.centered {
text-align: center;
}
#pizzaSize {
font-weight: 800;
}
.mover {
position: fixed;
z-index: -1;
}
.randomPizzaContainer {
display: flex;
float: left;
width: 33.33%;
height: 325px;
}
.randomPizzaContainer:after {
clear: both;
content: "";
display: table;
}
.container {
background-color: rgba(240, 60, 60, 0.8);
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {
.container {
width: 970px;
}
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
}
@media (min-width: 992px) {
.col-md-4,
.col-md-6,
.col-md-8,
.col-md-12 {
float: left;
padding-left: 15px;
padding-right: 15px;
position: relative;
min-height: 1px;
}
.col-md-12 {
width: 100%;
}
.col-md-8 {
width: 66.66666667%;
}
.col-md-6 {
width: 50%;
}
.col-md-4 {
width: 33.33333333%;
}
.col-md-push-3 {
left: 25%;
}
.col-md-push-2 {
left: 16.66666667%;
}
}
/*.clearfix:before,*/
/*.clearfix:after,*/
.container:before,
.container:after,
.row:before,
.row:after {
content: " ";
display: table;
}
/*.clearfix:after,*/
.container:after,
.row:after {
clear: both;
}
#movingPizzas1 {
position: fixed;
z-index: -1;
}
</style>
</head>
<body>
<div id="movingPizzas1"></div>
<div class="container">
<div id="header" class="row">
<div class="col-md-12">
<h1>Cam's Pizzeria</h1>
</div>
</div>
<div class="row">
<div id="menu" class="col-md-12">
<form action="#randomPizzas">
<input type="submit" value="Menu">
</form>
<form action="#ingredients">
<input type="submit" value="Our Ingredients">
</form>
<form action="#locations">
<input type="submit" value="Locations">
</form>
<form action="#" onsubmit="alert('Thanks for clicking! This button doesn\'t do anything because this is a fake pizzeria :\)')">
<input type="submit" value="Contact Us">
</form>
</div>
</div>
<div id="callToAction" class="row">
<div class="col-md-4">
<img src="img/pizzeria-original.png" class="img-responsive"> <!--
Image credit to: http://commons.wikimedia.org/wiki/File:HK_TST_night_%E5%98%89%E8%98%AD%E9%81%93_Granville_Road_restaurant_Paisano's_Pizzeria_pizza_Dec-2013.JPG -->
</div>
<div class="col-md-8">
<div class="row">
<div class="col-md-12">
<h2>We Have Hundreds of Pizza Recipes!</h2>
<p>At Cam's Pizzeria, we know you want options. Pepperoni? Boring. Cheese? No way! Sausage? C'mon, let's get creative.</p>
<p>We have every pizza ingredient imaginable in our kitchen because we know you take choice seriously. Take a look through our menu of hundreds of pizza options and we know that you'll find something you love.</p>
</div>
</div>
<div class="row">
<div class="col-md-6 col-md-push-3">
<form action="#randomPizzas">
<input type="submit" value="Pick a Pizza Now!">
</form>
</div>
</div>
</div>
</div>
<div id="ingredients" class="row">
<div class="col-md-8 col-md-push-2">
<div class="row">
<div class="col-md-12 centered">
<h2>Ingredients!</h2>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p>We've scoured the planet for the best pizza ingredients. Our crack team of ingredient specialists are on constant lookout for new and interesting pizza ingredients.</p>
<p>We have classic meats like pepperoni, sausage, and barbecue chicken. But you can find even more fun meats like coppa, kielbasa and soylent green on our menu too.</p>
<p>Not interested in meat? No problem! We love our veggies too :) We have everything from arugula to zucchini.</p>
</div>
</div>
</div>
</div>
<div id="locations" class="row">
<div class="col-md-12">
<h2 class="centered">Locations!</h2>
<div class="row">
<div class="col-md-6">
<h3>Pizza Road</h3>
<p>1800 Pizza Road<br>San Francisco, CA<br>01010<br>555-555-5555</p>
</div>
<div class="col-md-6">
<h3>Classic Pie Way</h3>
<p>999 Classic Pie Way<br>New York, NY<br>00100<br>555-555-5555</p>
</div>
</div>
</div>
</div>
<div id="pizzaGenerator" class="row">
<div class="col-md-12">
<h2 class="centered">Our Pizzas!</h2>
<div class="row">
<div class="col-md-12">
<em>What size pizza would you like? Use the slider below to change pizza sizes.</em>
</div>
<div id="pizzaSize" class="col-md-6">Medium</div>
<div class="col-md-12">
<input id="sizeSlider" type="range" min="1" max="3" value="2" step="1" onchange="resizePizzas(this.value)">
</div>
</div>
</div>
</div>
<div id="randomPizzas" class="row"></div>
<div id="footer" class="col-md-12">Thanks for visiting! © 2014 Udacity</div>
</div>
<script type="text/javascript" src="js/main.js" async></script>
</body>
</html>