-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
401 lines (371 loc) · 21.4 KB
/
index.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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="stepStyling.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200;0,600;1,200&family=Righteous&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://fontawesome.com/icons/house?f=classic&s=solid">
<style>
/* Add CSS styles for the navbar */
ul.navbar {
list-style-type: none;
margin: 0;
padding: 0;
background-color: #333; /* Background color of the navbar */
overflow: hidden;
}
li.navitem {
float: left;
}
li.navitem a {
display: block;
color: white; /* Text color of the navbar links */
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li.navitem a:hover {
background-color: #ddd; /* Background color on hover */
color: black; /* Text color on hover */
}
body {
font-family: Arial, sans-serif;
}
form {
max-width: 400px;
margin: 0 auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
display: block;
margin-bottom: 10px;
}
select {
width: 100%;
padding: 8px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type="submit"] {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<header>
<div class="logo">
<img src="https://drive.google.com/uc?id=1JiC096YTg1DDxHs0sZYPd6TiGmEE-ZM9" alt="Rotating globe with footprints" style="width: 75px; border-radius: 50%;">
</div>
<div id = "title-slogan">
<p>Start with Your Footprint.<br> Step into the future. </p>
</div>
<div id="byline" style="background-color: #143601">
<p>Did you Know? The average U.S. home uses about 11,000 kilowatt hours of electricity per year.</p>
<button id="learn-more-button" onclick="toggleAboutUs()">Learn More</button>
</div>
</header>
<!--
<ul class="navbar">
<li class="navitem"><a href="#home"><i class="fa-solid fa-house"></i> Home</a></li>
<li class="navitem"><a href="#about"><i class="fa-solid fa-user"></i> About</a></li>
<li class="navitem"><a href="#contact"><i class="fa-solid fa-envelope"></i> Contact</a></li>
</ul>
-->
<main>
<div id = "welcome">
</div>
<div id="about-us" style="display: none;">
<h2>About Us</h2>
<h2>Welcome to First Step</h2>
<p>At First Step, we are passionate about making a difference in the world by addressing one of the most pressing
challenges of our time: climate change. Our organization was founded on the belief that every individual has
the power to reduce their carbon footprint and contribute to a more sustainable future for our planet.</p>
<p>It all started with a shared concern during Code for Good 2023 – hosted by HackDuke.
Four passionate individuals from different corners of the globe realized they could
do more together than apart, and First Step was born.</p>
<p>Our mission is clear: to empower individuals to take meaningful steps towards reducing their carbon footprint.
We firmly believe that change begins at the grassroots level, and by inspiring and supporting individuals in
their journey toward sustainability, we can collectively create a positive impact on the environment.</p>
<div id="image-container">
<div id="alex-profile" style = "text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./media/profile-pictures/Alex.png" style="max-width: 200px; object-fit: cover;">
<p>Alex Baptiste is a Junior level undergraduate student studying Psychology with a minor
in Neuroscience at the University of North Carolina at Chapel Hill from Chapel Hill, NC.</p>
</div>
<div id="joe-profile" style = "text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./media/profile-pictures/Joe.png" style="max-width: 200px; object-fit: cover;">
<p>Joe Ricci is a second year Master’s student studying Computer Science at the University
of Pennsylvania from Boston, Massachusetts.</p>
</div>
<div id="michael-profile" style = "text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./media/profile-pictures/Michael.png" style="max-width: 200px; object-fit: cover;">
<p>Michael Puglise is a Sophomore level undergraduate student studying Computer Science &
Visual Media at Duke University from Rio de Janeiro, Brazil. </p>
</div>
<div id="riley-profile" style = "text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center;">
<img src="./media/profile-pictures/Riley.png" style="max-width: 200px; object-fit: cover;">
<p>Riley Harper is a Junior level undergraduate student studying Statistics and Analytics
& Romance Languages at the University of North Carolina at Chapel Hill from Fort
Lauderdale, Florida.</p>
</div>
</div>
<h3>What We Do</h3>
<ul>
<li>Education: We provide educational resources, workshops, and seminars to raise awareness about the
importance of carbon footprint reduction and sustainable living.</li>
<li>Advocacy: We advocate for policies and practices that promote environmental sustainability at the
local, national, and global levels. We believe in the power of collective action to bring about
systemic change.</li>
<li>Practical Solutions: We offer practical tools and guidance to help individuals make eco-friendly
choices in their daily lives, from energy conservation to waste reduction.</li>
</ul>
</div>
<div id="main-body">
<h1>General Data</h1>
<p>Did you know that every small action you take today can have a monumental impact on our planet's future?
Discover the power of change in the palm of your hand—explore our data-driven guide to reducing your
carbon footprint and embark on a journey toward a sustainable tomorrow.</p>
<div class="grid-container">
<div class="grid-item">
<img src="./media/Footprint-1-removebg.png" style="max-width: 190px; object-fit: cover;"/>
<p>13 Metric Tons per Capita of Annual CO2 Emissions in the United States</p>
</div>
<div class="grid-item">
<img src="./media/png-transparent-globe-world-map-large-world-s-border-blue-globe-removebg-preview.png" style="max-width: 425px; object-fit: cover;"/>
</div>
<div class="grid-item">
<a href="https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.pngitem.com%2Fmiddle%2FThJmiTx_bulb-green-action-fund-logo-hd-png-download%2F&psig=AOvVaw3JPsRiLGSapJ-Fl_CUM2Bu&ust=1694389036658000&source=images&cd=vfe&opi=89978449&ved=0CA8QjRxqFwoTCLj66ZbZnoEDFQAAAAAdAAAAABAE"><img src="./media/greenLightBulb-removebg.png" alt="Green Light Bulb Image" style="max-width: 115px; object-fit: cover; padding-top: 10px;"/></a>
<p>Yearly kWh saved by converting to LED lighting is 1463.7 kWH</p>
</div>
<div class="grid-item">
<a href="https://commons.wikimedia.org/wiki/File:Aiga_bus_on_green_circle.svg"><img src="./media/busgreenRemoved-removebg-preview.png" alt="Green Bus Image" style="max-width: 160px; object-fit: cover;"/></a>
<p>On average, drivers in the U.S. travel 13,476 miles per year</p>
<p>Source: FHWA</p>
</div>
<div class="grid-item">
<img src="https://8billiontrees.com/wp-content/uploads/2021/06/average-carbon-footprint-per-person-diet-emissions-1.png" style="max-width: 450px; object-fit: cover;"/>
<p></p>
</div>
<div class="grid-item">
<a href="https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.shutterstock.com%2Fzh%2Fimage-vector%2Felectric-plane-icon-airplane-green-circle-2187143761&psig=AOvVaw1u7vBjvat8_fmCeTmKDDCU&ust=1694389146443000&source=images&cd=vfe&opi=89978449&ved=0CA8QjRxqFwoTCJC4nMvZnoEDFQAAAAAdAAAAABAK"><img src="./media/planeLogo-removebg.png" alt = "Green Plane Logo" style="max-width: 170px; object-fit: cover;"/></a>
<p>Flying from MIA to NYC and back generates ~301 kg CO2; that's more than 26 countries produce in a year!</p>
</div>
</div>
</div>
<div id="secondary-section">
<h2>Step Towards a Sustainable Future</h2>
<p>Calculate your carbon footprint and take a step towards sustainability.</p>
<!-- <iframe src="https://docs.google.com/forms/d/e/1FAIpQLSf29S_TPdn_c2kHkXqTqcFoi8jWvwbWpai9Zax1baxUgs3dSw/viewform?embedded=true" width="640" height="2906" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe> -->
<form action="https://script.google.com/macros/s/AKfycbwGPzPhFBthnSX1ek0quXCnO5W8bSBSr2YCgKXAZD1v7LuabA5byULU7e4fKw0VQnSy/exec" method="POST">
<label for="state">Select your state:</label>
<select id="state" name="state" required>
<option value="" disabled selected>Select a state</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
<label for="foodSelection">What food products make up your diet?</label>
<select id="foodSelection" name="foodSelection[]" multiple required>
<option value="Bread">Bread</option>
<option value="Corn">Corn</option>
<option value="Beer">Beer</option>
<option value="Oats">Oats</option>
<option value="Rice">Rice</option>
<option value="Potatoes">Potatoes</option>
<option value="Cassava">Cassava</option>
<option value="Peas">Peas</option>
<option value="Nuts">Nuts</option>
<option value="Soymilk">Soymilk</option>
<option value="Tofu">Tofu</option>
<option value="Palm Oil">Palm Oil</option>
<option value="Sunflower Oil">Sunflower Oil</option>
<option value="Olive Oil">Olive Oil</option>
<option value="Tomatoes">Tomatoes</option>
<option value="Onions & Leeks">Onions & Leeks</option>
<option value="Root Vegetables">Root Vegetables (Carrots, Beets, etc)</option>
<option value="Citrus Fruit">Citrus Fruit (Oranges, Grapefruits, Lemon, Lime, etc.)</option>
<option value="Bananas">Bananas</option>
<option value="Apples">Apples</option>
<option value="Berries">Berries</option>
<option value="Grapes">Grapes</option>
<option value="Wine">Wine</option>
<option value="Coffee">Coffee</option>
<option value="Dark Chocolate">Dark Chocolate</option>
<option value="Beef">Beef</option>
<option value="Lamb">Lamb</option>
<option value="Pork">Pork</option>
<option value="Poultry Meat">Poultry Meat (Chicken, Turkey, etc.)</option>
<option value="Milk">Milk</option>
<option value="Cheese">Cheese</option>
<option value="Eggs">Eggs</option>
<option value="Fish">Fish</option>
<option value="Shrimp">Shrimp</option>
</select>
<label for="carYear">If you drive, what year was your car made?</label>
<select id="carYear" name="carYear" required>
<option value="" disabled selected>Select the year</option>
<option value="1973">1973</option>
<option value="1974">1974</option>
<option value="1975">1975</option>
<option value="1976">1976</option>
<option value="1977">1977</option>
<option value="1978">1978</option>
<option value="1979">1979</option>
<option value="1980">1980</option>
<option value="1981">1981</option>
<option value="1982">1982</option>
<option value="1983">1983</option>
<option value="1984">1984</option>
<option value="1985">1985</option>
<option value="1986">1986</option>
<option value="1987">1987</option>
<option value="1988">1988</option>
<option value="1989">1989</option>
<option value="1990">1990</option>
<option value="1991">1991</option>
<option value="1992">1992</option>
<option value="1993">1993</option>
<option value="1994">1994</option>
<option value="1995">1995</option>
<option value="1996">1996</option>
<option value="1997">1997</option>
<option value="1998">1998</option>
<option value="1999">1999</option>
<option value="2000">2000</option>
<option value="2001">2001</option>
<option value="2002">2002</option>
<option value="2003">2003</option>
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
</select>
<label for="mileage">If you drive, how many miles a year on average?</label>
<select id="mileage" name="mileage" required>
<option value="" disabled selected>Select an option</option>
<option value="0 - 1,000">0 - 1,000</option>
<option value="1,000 - 15,000">1000 - 15,000</option>
<option value="15,000+">15,000+</option>
<option value="I do not drive">I do not drive</option>
</select>
<label for="housing">What is your housing situation?</label>
<select id="housing" name="housing" required>
<option value="" disabled selected>Select an option</option>
<option value="Student Dorm">Student Dorm</option>
<option value="House">House</option>
<option value="Apartment">Apartment</option>
</select>
<label for="waterDrinkingHabit">Do you mostly drink from a refillable water bottle or drink bottled water?</label>
<select id="waterDrinkingHabit" name="waterDrinkingHabit" required>
<option value="" disabled selected>Select an option</option>
<option value="Refillable Bottle">Refillable Bottle</option>
<option value="Pre-bottled Water">Pre-Bottled Water</option>
</select>
<input type="submit" value="Submit">
</form>
</div>
<footer>
<p>© Duke University - MLH HackDuke 2023</p>
<p>Developed by: Alex Baptiste, Joseph Ricci, Michael Puglise, & Riley Harper</p>
</footer>
<script>
function toggleAboutUs() {
var aboutUs = document.getElementById("about-us");
if (aboutUs.style.display === "none") {
aboutUs.style.display = "block";
} else {
aboutUs.style.display = "none";
}
}
function showThankYouAlert() {
alert("Thank you for your submission!");
window.location.href = 'results.html';
}
</script>
<!--src="stepForward.js"-->
</main>
</body>
</html>