├── README.md
├── IMG
├── Model-3.jpg
├── Model-S.jpg
├── Model-Y.jpg
├── tesla.png
├── Model-3.avif
├── Model-S.avif
├── Model-X-.avif
├── Model-X-.jpg
├── Model-Y.avif
├── Powerwall.jpg
├── tesla-fvi.png
├── Accessories.avif
├── Accessories.jpg
├── Powerwall.avif
├── tesla-dark.png
├── tesla-white.png
├── SolarPanels_D.avif
├── SolarPanels_D.jpg
├── SolarRoof-Desktop.jpg
└── SolarRoof-Desktop.avif
├── Fonts
├── GothamBook.ttf
└── GothamMedium.ttf
├── VID
└── Homepage-Test_Drive-NA-Desktop.webm
├── CSS
└── homepage.css
└── HTML
└── homepage.html
/README.md:
--------------------------------------------------------------------------------
1 | # TESLA-clone
2 | This my code for my clone-tesla page.........
3 |
--------------------------------------------------------------------------------
/IMG/Model-3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Model-3.jpg
--------------------------------------------------------------------------------
/IMG/Model-S.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Model-S.jpg
--------------------------------------------------------------------------------
/IMG/Model-Y.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Model-Y.jpg
--------------------------------------------------------------------------------
/IMG/tesla.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/tesla.png
--------------------------------------------------------------------------------
/IMG/Model-3.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Model-3.avif
--------------------------------------------------------------------------------
/IMG/Model-S.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Model-S.avif
--------------------------------------------------------------------------------
/IMG/Model-X-.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Model-X-.avif
--------------------------------------------------------------------------------
/IMG/Model-X-.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Model-X-.jpg
--------------------------------------------------------------------------------
/IMG/Model-Y.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Model-Y.avif
--------------------------------------------------------------------------------
/IMG/Powerwall.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Powerwall.jpg
--------------------------------------------------------------------------------
/IMG/tesla-fvi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/tesla-fvi.png
--------------------------------------------------------------------------------
/Fonts/GothamBook.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/Fonts/GothamBook.ttf
--------------------------------------------------------------------------------
/IMG/Accessories.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Accessories.avif
--------------------------------------------------------------------------------
/IMG/Accessories.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Accessories.jpg
--------------------------------------------------------------------------------
/IMG/Powerwall.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/Powerwall.avif
--------------------------------------------------------------------------------
/IMG/tesla-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/tesla-dark.png
--------------------------------------------------------------------------------
/IMG/tesla-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/tesla-white.png
--------------------------------------------------------------------------------
/Fonts/GothamMedium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/Fonts/GothamMedium.ttf
--------------------------------------------------------------------------------
/IMG/SolarPanels_D.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/SolarPanels_D.avif
--------------------------------------------------------------------------------
/IMG/SolarPanels_D.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/SolarPanels_D.jpg
--------------------------------------------------------------------------------
/IMG/SolarRoof-Desktop.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/SolarRoof-Desktop.jpg
--------------------------------------------------------------------------------
/IMG/SolarRoof-Desktop.avif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/IMG/SolarRoof-Desktop.avif
--------------------------------------------------------------------------------
/VID/Homepage-Test_Drive-NA-Desktop.webm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/alfaarghya/TESLA-clone/main/VID/Homepage-Test_Drive-NA-Desktop.webm
--------------------------------------------------------------------------------
/CSS/homepage.css:
--------------------------------------------------------------------------------
1 | * {
2 | padding: 0;
3 | margin: 0;
4 | }
5 | @font-face {
6 | font-family: myFirstFont;
7 | src: url(../Fonts/GothamBook.ttf);
8 | }
9 | body {
10 | font-family: myFirstFont;
11 | }
12 |
13 |
14 |
15 |
16 | /*---- nav-bar ----*/
17 | #nav-bar {
18 | position: fixed;
19 | top: 0;
20 | width: 100%;
21 | display: flex;
22 | justify-content: space-between;
23 | align-items: center;
24 | height: 50px;
25 | }
26 |
27 | .nav-bar {
28 | color: black;
29 | }
30 |
31 | #page-logo {
32 | height: 100px;
33 | width: 110px;
34 | padding: 8px 0 0 0;
35 | cursor: pointer;
36 | }
37 |
38 | #nav-bar h1 {
39 | padding: 0 0 0 5%;
40 | }
41 |
42 | #head-div-1 {
43 | margin-left: 110px;
44 | margin-top: 4px;
45 | }
46 |
47 | .header-list {
48 | display: inline-flex;
49 | list-style: none;
50 | }
51 |
52 | .header-list li {
53 | padding: 8px 15px;
54 | cursor: pointer;
55 | transition: background-color 0.3s linear, box-shadow 0.3s linear;
56 | }
57 | .header-list li a {
58 | text-decoration: none;
59 | color: black;
60 | }
61 | #nav-bar li {
62 | font-size: 15px;
63 | font-weight: 600;
64 | text-align: center;
65 | color: linear-gradient(red, yellow);
66 | }
67 |
68 | #head-div-2 {
69 | padding: 0 3% 0 0;
70 | margin-top: 4px;
71 | }
72 |
73 | .header-list li:hover {
74 | background: rgba(0, 0, 0, 0.1);
75 | border-radius: 5px;
76 | box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
77 | backdrop-filter: blur(5px);
78 | -webkit-backdrop-filter: blur(5px);
79 | transition: opacity .5s ease, visibility 0s .5s;
80 | }
81 |
82 | #page-logo, #head-div-1, #head-div-2 {
83 | transition: all, 0.2s;
84 | position: relative;
85 | }
86 |
87 | /*---- ----*/
88 |
89 | /*---- Sidebar ---- */
90 | #check, #check-acc {
91 | display: none;
92 | }
93 |
94 | #sidebar_menu {
95 | background-color: white;
96 | position: fixed;
97 | top: 0;
98 | right: -400px;
99 | height: 100vh;
100 | width: 24vw;
101 | overflow-y: auto;
102 | overflow-x: auto;
103 | box-shadow: 0 0 5px #cdcccc93;
104 | transition: all 0.4s linear;
105 | z-index: 10;
106 | }
107 |
108 | #menu-close-btn {
109 | height: 70px;
110 | position: sticky;
111 | top: 0;
112 | z-index: 2;
113 | background-color: white;
114 | }
115 |
116 | #x-mark {
117 | font-weight: 900;
118 | width: 40px;
119 | position: relative;
120 | left: 248px;
121 | top: 21px;
122 | line-height: 40px;
123 | font-size: 24px;
124 | font-weight: 100;
125 | cursor: pointer;
126 | text-align: center;
127 |
128 | }
129 |
130 | #sidemenu {
131 | position: absolute;
132 | padding: 4px 0 48px 32px;
133 | }
134 |
135 | #sidemenu ul {
136 | list-style: none;
137 | }
138 |
139 | #sidemenu ul li {
140 | font-size: 14px;
141 | font-weight: 600;
142 | height: 20px;
143 | width: 222px;
144 | margin: 2px 0;
145 | padding: 8px 8px;
146 | cursor: pointer;
147 | }
148 | #sidemenu ul #lang-li {
149 | padding-bottom: 20px;
150 | }
151 | #sidemenu #lang {
152 | display: flex;
153 | cursor: pointer;
154 | }
155 | #sidemenu #lang div div{
156 | padding-left: 10px;
157 | }
158 | #sidemenu #lang div a{
159 | padding-left: 10px;
160 | text-decoration: none;
161 | color: black;
162 | }
163 | #sidemenu #lang div a:hover {
164 | color: #4d4d4d;
165 | }
166 |
167 | #sidebar-blur-bg div {
168 | position: fixed;
169 | top: 0;
170 | left: -100vw;
171 | height: 100vh;
172 | width: 100vw;
173 | background: rgba(0, 0, 0, 0.2);
174 | border-radius: 5px;
175 | backdrop-filter: blur(5px);
176 | -webkit-backdrop-filter: blur(5px);
177 | z-index: 9;
178 |
179 | }
180 |
181 | #check:checked ~ #sidebar_menu {
182 | right:0;
183 | }
184 | #check:checked ~ #sidebar-blur-bg div {
185 | left: 0;
186 | }
187 |
188 | #sidemenu ul li:hover {
189 | background-color: #cdcccc47;
190 | border-radius: 5px;
191 | transition: background-color 0.33s ease;
192 | }
193 | #x-mark:hover {
194 | background-color: #cdcccc47;
195 | border-radius: 8px;
196 | transition: background-color 0.33s ease;
197 | }
198 |
199 | /*---- ----*/
200 | /*---- Form ----*/
201 | #check-fr {
202 | display: none;
203 | }
204 | #fr {
205 | height: 100vh;
206 | position:absolute;
207 | top:-100vh;
208 | left: 32vw;
209 | opacity: 0;
210 | transition: all 0.5s linear;
211 | }
212 | #fr-box {
213 | font: myFirstFont;
214 | width: 482px;
215 | height: 335px;
216 | padding: 10px;
217 | background-color: rgba(255, 255, 255, 0.848);
218 | display: block;
219 | box-shadow: 0 0 200px #4d4d4d;
220 | }
221 |
222 | .fr-first-ln {
223 | display: flex;
224 | justify-content: space-between;
225 | }
226 | .fr-first-ln #x-mark-fr {
227 | cursor: pointer;
228 | }
229 |
230 | #fr-box form .Email {
231 | padding: 0 77px;
232 | width: 313px;
233 | height: 40.333px;
234 | }
235 | .bt-next, .bt-ca {
236 | padding: 0 77px;
237 | }
238 | .fr-bt{
239 | height: 35px;
240 | width: 313px;
241 | font-size: 17px;
242 | border-radius: 5px;
243 | box-shadow: none;
244 | border: none;
245 | cursor: pointer;
246 | background-color: rgba(0, 0, 0, 0.8);
247 | color: white;
248 |
249 | }
250 | .fr-bt:hover {
251 | background-color: rgba(0, 0, 0, 0.5);
252 | color: white;
253 | }
254 | #email{
255 | display: block;
256 | }
257 | .sm{
258 | border: 1px solid #6b6b6b;
259 | background: transparent;
260 | border-radius: 5px;
261 | height: 25px;
262 | width: 300px;
263 | font-size: 13px;
264 | outline: none;
265 | padding: 13px 5px 0px 5px;
266 | /* color: #ffffff; */
267 | }
268 |
269 | .sm:focus{
270 | border: 1.5px solid #282828;
271 | }
272 | .sml{
273 | height: 41.333px;
274 | width: 314px;
275 | position: relative;
276 | top: -32px;
277 | left: 24px;
278 | font-size: 17px;
279 | color: #4f4f4f;
280 | pointer-events: none;
281 | transition: 0.3s all;
282 | }
283 |
284 | .sm:focus ~ .sml,
285 | .sm:valid ~ .sml{
286 | top: -40px;
287 | left: 10px;
288 | background: transparent;
289 | padding: 0 8px;
290 | font-size: 80%;
291 | color: #4f4f4f;
292 | }
293 |
294 | .forgot-pass {
295 | text-align: center;
296 | cursor: pointer;
297 | color: rgb(93, 93, 93);
298 | }
299 | .forgot-pass:hover {
300 | color: black;
301 | }
302 |
303 | .form-all {
304 | margin: 30px 0;
305 | }
306 |
307 |
308 | #fr-box hr {
309 | width: 314px;
310 | margin: 0 77px;
311 | }
312 |
313 | #check-fr:checked ~ #fr {
314 | top: 20vh;
315 | opacity: 1;
316 | }
317 |
318 | /*---- ----*/
319 |
320 | /*---- body ----*/
321 | .body-con {
322 | position: absolute;
323 | top: 0;
324 | z-index: -1;
325 | scroll-snap-type: y mandatory;
326 | overflow-y:auto;
327 | height: 100vh;
328 | }
329 |
330 | .model-con {
331 | scroll-snap-align: start;
332 | background-repeat: no-repeat;
333 | background-size: cover;
334 | height: 100vh;
335 | width: 100vw;
336 | }
337 |
338 | .video-con video{
339 | position: absolute;
340 | width: 100vw;
341 | }
342 |
343 | .video-con .in-all-con .in-all-con-div1 {
344 | color: white;
345 | }
346 |
347 | .model-s-con {
348 | background-image: url("../IMG/Model-S.jpg");
349 | margin-top: 120px;
350 | }
351 |
352 | .model-3-con {
353 | background-image: url("../IMG/Model-3.jpg");
354 | }
355 | .model-x-con {
356 | background-image: url("../IMG/Model-X-.jpg");
357 | }
358 | .model-y-con {
359 | background-image: url("../IMG/Model-Y.jpg");
360 | }
361 | .solar-roof-con {
362 | background-image: url("../IMG/SolarRoof-Desktop.jpg");
363 | }
364 | .solar-panels-con {
365 | background-image: url("../IMG/SolarPanels_D.jpg");
366 | }
367 | .powerwall-con {
368 | background-image: url("../IMG/Powerwall.jpg");
369 | }
370 | .accessory-con {
371 | background-image: url("../IMG/Accessories.jpg");
372 |
373 | }
374 |
375 | .in-all-con {
376 | font-family: myFirstFont;
377 | text-align: center;
378 | height: 50vh;
379 | padding-top: 55px;
380 | }
381 |
382 | .in-all-con .in-all-con-div1 p {
383 | padding-top: 10px;
384 | }
385 |
386 | .in-all-con .in-all-con-div2 {
387 | margin-top: 30%;
388 | }
389 |
390 | .in-all-con-div1 {
391 | transform-origin: 0 0;
392 | transform: translateY(100px);
393 | opacity: 0;
394 | transition-property: transform, opacity;
395 | transition-duration: 0.5s;
396 | transition-timing-function: ease;
397 | }
398 | .in-all-con-div1 h1 {
399 | font-size: 40px;
400 | }
401 | .in-all-con-div1 p {
402 | font-size: 15px;
403 | }
404 | .in-all-con-div2 {
405 | transform-origin: 0 0;
406 | transform: translateY(-100px);
407 | opacity: 0;
408 | transition-property: transform, opacity;
409 | transition-duration: 0.5s;
410 | transition-timing-function: ease;
411 | }
412 |
413 | .model-con:is(:hover, :focus) .in-all-con-div2 {
414 | transform: translateY(0);
415 | opacity: 100%;
416 | }
417 |
418 | .model-con:is(:hover, :focus) .in-all-con-div1 {
419 | transform: translateY(0);
420 | opacity: 100%;
421 | }
422 |
423 | .in-all-con-div2 button span {
424 | font-family: myFirstFont;
425 | width: 100%;
426 | font-size: 15px;
427 | font-weight: 600;
428 | }
429 | .in-all-con-div2 button {
430 | padding: 12px 100px;
431 | margin: 0 10px;
432 | border-radius: 5px;
433 | box-shadow: none;
434 | border: none;
435 | cursor: pointer;
436 | }
437 |
438 | .btn-white {
439 | background-color: rgba(255, 255, 255, 0.8);
440 | color: black;
441 | }
442 |
443 | .btn-white:hover {
444 | background-color: rgba(255, 255, 255, 0.5);
445 | color: black;
446 | }
447 | .btn-black {
448 | background-color: rgba(0, 0, 0, 0.8);
449 | color: white;
450 | }
451 | .btn-black:hover {
452 | background-color: rgba(0, 0, 0, 0.5);
453 | color: white;
454 | }
455 | .btn-gray {
456 | background-color: rgba(23, 26, 32, 0.5);
457 | color: white;
458 | }
459 | .btn-gray:hover {
460 | background-color: rgba(23, 26, 32, 0.8);
461 | color: white;
462 | }
463 | /*---- ----*/
464 |
465 | /*---- footer ----*/
466 | footer {
467 | text-align: center;
468 | position: relative;
469 | top: 32%;
470 | }
471 |
472 | footer ul li{
473 | font-family: myFirstFont;
474 | display: inline-block;
475 | font-size: 12px;
476 | font-weight: 600;
477 | padding: 0 5px ;
478 | color: rgb(93, 93, 93);
479 | cursor: pointer;
480 | }
481 | footer ul li:hover {
482 | color: black;
483 | }
484 | /*---- ----*/
485 |
--------------------------------------------------------------------------------
/HTML/homepage.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
11 | Electric Cars, Solar & Clean Energy | Tesla
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |

22 |
23 |
32 |
33 |
34 |
35 |
48 |
49 |
50 |
51 |
93 |
98 |
99 |
100 |
101 |
102 |
103 |
123 |
124 | Trouble Signing In?
125 |
126 |
127 |
128 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
140 |
141 |
142 |
Experiance Tesla Today
143 |
Schedule a Demo Drive Today
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
Model S
158 |
Starting At 7,301,858 Rs.
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
Model 3
172 |
Starting At 3,317,481 Rs.
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
Model X
186 |
Starting At 8,127,020 Rs.
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
Model Y
200 |
Starting At 4,166,242 Rs.
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
Solar Roof
214 |
Produce Clean Energy From Your Roof
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
Solar Panels
228 |
Produce Clean Energy From Your Roof
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
Powerwall
242 |
Stores Your Solar Energy
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
Accessories
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
276 |
277 |
278 |
279 |
280 |
281 |
--------------------------------------------------------------------------------