-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
196 lines (190 loc) · 7.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Carbon Calculator</title>
<link rel="stylesheet" href="styles.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Sora:wght@300;500;700&display=swap"
rel="stylesheet"
/>
<link rel="icon" href="favicon.png" type="image/png" />
</head>
<body class="background-custom-colour">
<div class="main-container">
<div class="navbar">
<!-- Carbon easy logo here, and links and login page, perhaps need to split into things-->
<div>
<img
class="carbon-easy-logo"
src="carbon-easy-logo.png"
alt="Website logo"
/>
</div>
<div>
<ul class="navbar-list">
<li><a href="#">Calculate</a></li>
<li><a href="#">Articles</a></li>
<li><a href="#">Donate</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="findout-login-btns">
<button class="findout-btn">Find out</button>
<button class="login-btn">Login</button>
</div>
</div>
<div class="content">
<div class="left-content">
<div class="landing-section">
<div class="landing-slogan">Discover your carbon footprint.</div>
<button id="trigger-modal" class="call-to-action-btn">
Register
</button>
<img
class="left-feet-design"
src="left-feet-landing.png"
alt="Left feet design image"
/>
<img
class="right-feet-design"
src="right-feet-landing.png"
alt="Right feet design image"
/>
</div>
<div class="website-information">
<div class="who-we-are">
<img class="who-we-are-img" src="who-we-are.png" alt="" />
<p>Who we are</p>
<div class="whoarewe-desc">
Driven by a shared vision, friends founded Carbon Easy. Our
powerful calculator has educated and empowered millions,
fostering a widespread embrace of positive change.
</div>
<div class="findoutmore custom-colour">View more ↗</div>
</div>
<div class="our-mission">
<img class="mission-img" src="mission.png" alt="" />
<p>Our Mission</p>
<div class="mission-desc">
As environmentally passionate developers, our mission is to
educate users on their carbon footprint and facilitate easy
steps for change.
</div>
<div class="findoutmore custom-colour">View more ↗</div>
</div>
<div class="calculator">
<img class="calculator-img" src="calculator.png" alt="" />
<p>Calculator</p>
<div class="calculator-desc">
Our unique carbon footprint calculator combines advanced
algorithms and user-friendly design to raise awareness and
enable positive change.
</div>
<div class="findoutmore custom-colour">View more ↗</div>
</div>
</div>
</div>
<div class="right-content">
<div class="supporting-image">
<img
class="fill-image"
src="turbine.jpg"
alt="Sustainable images"
/>
<div class="circles">
<div class="dots custom-background-colour"></div>
<div class="dots"></div>
<div class="dots"></div>
<div class="dots"></div>
</div>
</div>
<div class="statistics">
<img class="quiz-icon" src="quiz.png" alt="Test image icon" />
<img
class="tree-icon"
src="tree-icon.png"
alt="Growing tree icon"
/>
<div class="tests">
<div class="tests-number custom-colour">1,234,567</div>
<div class="tests-text">Tests taken</div>
</div>
<div class="trees">
<div class="tree-number custom-colour">10,000+</div>
<div class="tree-text">Trees planted</div>
</div>
<div class="progress-bar">
<div class="current-progress custom-background-colour">
<div class="progress-text">75% fundraised</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="registerModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<div id="form-ct">
<form id="registerForm">
<div id="userInfo">
<h3 class="custom-colour">User Details</h3>
<label for="givenName">Given name:</label>
<input type="text" id="givenName" name="givenName" />
<label for="surname">Surname:</label>
<input type="text" id="surname" name="surname" />
<label for="username">Username:</label>
<input type="text" id="username" name="username" plac />
<label for="password">Password:</label>
<input type="password" id="password" name="password" />
</div>
<div id="addressInfo">
<h3 class="custom-colour">Addresses</h3>
<label for="homeAddress">Home Address:</label>
<input type="text" id="homeAddress" name="homeAddress" />
<label for="workAddress">Work Address:</label>
<input type="text" id="workAddress" name="workAddress" />
</div>
<div id="contactInfo">
<h3 class="custom-colour">Contacts</h3>
<label for="mobileNumber">Mobile Number:</label>
<input type="tel" id="mobileNumber" name="mobileNumber" />
<label for="email">Email:</label>
<input type="email" id="email" name="email" />
</div>
<input
class="custom-background-colour"
type="submit"
value="Submit"
/>
</form>
</div>
</div>
</div>
<script>
var modal = document.getElementById("registerModal");
var callToActionBtn = document.getElementById("trigger-modal");
var registerBtn = document.getElementsByClassName("findout-btn")[0];
var span = document.getElementsByClassName("close")[0];
callToActionBtn.onclick = function () {
modal.style.display = "block";
};
registerBtn.onclick = function () {
modal.style.display = "block";
};
span.onclick = function () {
modal.style.display = "none";
};
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
}
};
</script>
</body>
</html>