-
Notifications
You must be signed in to change notification settings - Fork 0
/
about.html
128 lines (89 loc) · 4.07 KB
/
about.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="imgs/T.png">
<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=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<title>About Us | Tesla</title>
<link rel="stylesheet" href="Css\about.css">
</head>
<body>
<header>
<nav>
<div class="nav-container">
<img src="Icon/T Grey.png" id="logo" alt="Tesla Logo">
<button class="menu-toggle" id="menu-toggle">
<span class="material-icons">menu</span>
</button>
<ul id="nav-menu">
<li><a href="Product.html">Vehicle</a></li>
<li><a href="Energy.html">Energy</a></li>
<li><a href="charging.html">Charging</a></li>
<li><a href="about.html">Discover</a></li>
<li><a href="Product.html">Shop</a></li>
</ul>
<div class="ico">
<img src="Icon/HW.png" alt="" id="icon1">
<img src="Icon/WW.png" alt="" id="icon2">
<img src="Icon/AW.png" alt="" id="icon3">
</div>
</div>
</nav>
</header>
<main>
<section class="about-us-content">
<h1>About Tesla</h1>
<p>Tesla's mission is to accelerate the world's transition to sustainable energy. We design and manufacture electric vehicles, solar panels, energy storage systems, and related products. Our team is driven by a passion for innovation and a commitment to creating a cleaner, more sustainable future for all.</p>
</section>
</main>
<script>
let lastScrollTop = 0;
let isScrolling;
const header = document.querySelector('header');
const headerHeight = header.offsetHeight;
window.addEventListener('scroll', function() {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop;
if (scrollTop > lastScrollTop) {
header.style.top = `-${headerHeight}px`;
header.classList.remove('scrolling', 'static');
} else {
header.style.top = '0';
header.classList.add('scrolling');
header.classList.remove('static');
}
lastScrollTop = Math.max(scrollTop, 0);
clearTimeout(isScrolling);
isScrolling = setTimeout(function() {
header.classList.remove('scrolling');
header.classList.add('static');
}, 200);
});
document.getElementById('menu-toggle').addEventListener('click', function() {
document.getElementById('nav-menu').classList.toggle('active');
});
</script>
<script src="Javascript\effect.js"></script>
<button id="carLicensePopupBtn" class="car-license-popup-button">License</button>
<div id="carLicensePopupOverlay" class="car-license-popup-overlay">
<div class="car-license-popup-content">
<img src="imgs\3D Black.png" alt="Company Logo" class="car-license-popup-logo">
<h2>All rights reserved.</h2><br>
<p>This software is licensed under strict terms. Redistribution and use in source and binary forms, with or without modification, are strictly prohibited without express written permission from Chaudhary Abdul Rafay.</p><br>
<p>© 2024 AbdulRafay Chaudhry. </p>
<button id="carLicenseCloseBtn" class="car-license-close-button">Close</button>
</div>
</div>
<footer>
<center>
<div class="footer-container">
<div class="footer-section">
<h4>About Us</h4>
<p>© 2024 Tesla, Inc. All rights reserved.</p>
</div>
</center>
</footer>
</body>
</html>