-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel-y.html
More file actions
366 lines (351 loc) · 8.48 KB
/
model-y.html
File metadata and controls
366 lines (351 loc) · 8.48 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Page Title</title>
<link rel="stylesheet" href="styles2.css"> <!-- Link to your CSS file -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
<script src="menu.js"></script>
</head>
<header>
<nav class="navbar">
<a href="#">
<img class="brand" src="Images/Tesla-Logo.png" alt="Tesla Logo"/>
</a>
<ul>
<li><a href ="#">
Model S
</a></li>
<li><a href ="#">
Model 3
</a></li>
<li><a href ="#">
Model X
</a></li>
<li><a href ="#">
Model Y
</a></li>
<li><a href ="#">
Solar Roof
</a></li>
<li><a href ="#">
Solar Panels
</a></li>
</ul>
<ul>
<li><a href ="#">
Shop
</a></li>
<li><a href ="#">
Account
</a></li>
<li><span class="menu-btn">
Menu
</span></li>
</ul>
<span class="menu-btn-mobile">
Menu
</span>
</nav>
<nav class="sidebar">
<div class="close-btn">
<span class="material-symbols-outlined">
close
</span>
</div>
<ul>
<li><a href="#">
Model S
</a></li>
<li><a href="#">
Model 3
</a></li>
<li><a href="#">
Model X
</a></li>
<li><a href="#">
Model Y
</a></li>
<li><a href="#">
Solar Roof
</a></li>
<li><a href="#">
Solar Panels
</a></li>
<li><a href="#">
Existing Inventory
</a></li>
<li><a href="#">
Used Inventory
</a></li>
<li><a href="#">
Trade-In
</a></li>
<li><a href="#">
Test Drive
</a></li>
<li><a href="#">
Insurance
</a></li>
<li><a href="#">
Powerwall
</a></li>
<li><a href="#">
Commercial Energy
</a></li>
<li><a href="#">
Utilities
</a></li>
<li><a href="#">
Charging
</a></li>
<li><a href="#">
Find Us
</a></li>
<li><a href="#">
Support
</a></li>
<li><a href="#">
Investor Relations
</a></li>
<li><a href="#">
Shop
</a></li>
<li><a href="#">
Account
</a></li>
<li><a href="#">
More
</a></li>
</ul>
</nav>
<div class="sidebar-backdrop"></div>
<div class="header-body">
<h1 class="title">Roadster</h1>
<div>
<p>
The quickest car in the world,
with record-setting acceleration,
range and performance.
</p>
<div class="stats">
<div>
<div class="gauge">
<img src="Images/speedometer.png"/>
<h2>1.9<span>s</span></h2>
</div>
<div>
<small>0-60 mph</small>
</div>
</div>
<div>
<div>
<h2>
<span>+</span>250<span>mph</span>
</h2>
</div>
<div>
<small>Top Speed</small>
</div>
</div>
<div>
<div>
<h2>620<span>miles</span></h2>
</div>
<div>
<small>Range</small>
</div>
</div>
<a href="#" class="btn">
Reserve Now
</a>
</div>
<!-- One "Reserve Now" button -->
<a href="#" class="btn btn-mobile">
Reserve Now
</a>
<a href="#video">
<img src="Images/arrow-down.svg" class="arrow"/>
</a>
</div>
</header>
<section id="video">
<video
autoplay
muted loop
data-aos="fade-up"
data-aos-duration="1200"
>
<source
src="Images\roadster-loop.mp4"
type="video/mp4"
>
</video>
</section>
<section class="specs">
<ul>
<li>
<span>Base Specs</span>
</li>
<li>
<span>Acceleration 0-60 mph</span>
<span>1.9s</span>
</li>
<li>
<span>Acceleration 0-100 mph</span>
<span>4.2s</span>
</li>
<li>
<span>Acceleration 1/4 mile</span>
<span>Over 250mph</span>
</li>
<li>
<span>Wheel Torque</span>
<span>10,000 Nm</span>
</li>
<li>
<span>Mile Range</span>
<span>620 miles</span>
</li>
<li>
<span>Seating</span>
<span>4</span>
</li>
<li>
<span>Drive</span>
<span>All-Wheel-Drive</span>
</li>
<li>
<span>Base Reservation</span>
<span>$50,000</span>
</li>
</ul>
</section>
<section class="about">
<img src="Images\back.jpg"
data-aos="fade-up"
data-aos-duration="1200"
/>
<div class="about-text">
<h2>
Designed for performance
and Aero Efficiency
</h2>
<p>
As an all-electric supercar,
Roadster maximizes the
potential of aerodynamic
engineering with record-setting
performance and efficiency.
</p>
</div>
</section>
<section class="interior">
<img
src="Images\interior.jpg"
data-aos="fade-up"
data-aos-duration="1200"
/>
<div>
<h2>Interior</h2>
<p>
The first supercar to set
every performance record and
still fit seating for four.
</p>
</div>
</section>
<section class="roof">
<div
class="banner-img"
data-aos="fade-up"
data-aos-duration="1200"
></div>
<div class="roof-text" data-aos="fade-up">
<h2>Glass Roof</h2>
<p>
A lightweight, removable Glass
Roof stores in the trunk for an open-air,
convertible driving experience.
</p>
</div>
</section>
<section class="iframe-video">
<div
style="padding:56.25% 0 0 0;position:relative;">
<iframe src="https://player.vimeo.com/video/249563752?h=60746b212b"
style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;"
frameborder="0"
allow="autoplay; fullscreen; picture-in-picture"
allowfullscreen
></iframe>
</div>
<script src="https://player.vimeo.com/api/player.js"></script>
<div class="action">
<p>
Watch the Roadster
Unveil. November 16, 2017
</p>
<span class="line"></span>
<a href="#" class="btn">
Reserve Now
</a>
<a href="#" class="btn">
Get Newsletter
</a>
</div>
</section>
<footer>
<ul>
<li><a href="#">
Tesla © 2022
</a></li>
<li><a href="#">
Privacy & legal
</a></li>
<li><a href="#">
Contact
</a></li>
<li><a href="#">
Careers
</a></li>
<li><a href="#">
Get Newsletter
</a></li>
<li><a href="#">
Forums
</a></li>
<li><a href="#">
Locations
</a></li>
</ul>
</footer>
<script>
document.addEventListener('DOMContentLoaded', () => {
const menuBtn = document.querySelector('.menu-btn');
const menuBtnMobile = document.querySelector('.menu-btn-mobile');
const sidebar = document.querySelector('.sidebar');
const closeBtn = document.querySelector('.close-btn');
const backdrop = document.querySelector('.sidebar-backdrop');
function sidebarOpen() {
sidebar.style.right = "0";
backdrop.style.display = "block";
setTimeout(() => {
backdrop.style.opacity = "1";
}, 50);
document.body.classList.add('sidebar-open-body');
}
menuBtn.addEventListener('click', sidebarOpen);
menuBtnMobile.addEventListener('click', sidebarOpen);
closeBtn.addEventListener('click', () => {
sidebar.style.right = "-20em";
backdrop.style.opacity = "0";
setTimeout(() => {
backdrop.style.display = "none";
}, 300);
document.body.classList.remove('sidebar-open-body');
});
});
</script>
</html>