-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (62 loc) · 2.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Driver Spec Garage</title>
<link rel="stylesheet" href="styles.css">
<!-- Favicon -->
<link rel="icon" type="image/png" href="dsg_logo.png">
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@700&family=Roboto:wght@300&display=swap" rel="stylesheet">
</head>
<body>
<header>
<div class="logo">
<a href="index.html"><img src="driver_spec_garage_logo.JPG" alt="Driver Spec Garage Logo"></a>
</div>
<nav>
<ul>
<li class="non-clickable">
<a href="#" onclick="toggleDropdown(event)">Services</a>
<ul class="dropdown" id="servicesDropdown">
<li><a href="paint-correction.html">Paint Correction</a></li>
<li><a href="ceramic-coating.html">Ceramic Coating</a></li>
<li><a href="packages.html">Packages</a></li>
</ul>
</li>
<li><a href="shop.html">Shop</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section class="landing">
<img src="me_detailing.png" alt="Your Car">
<div class="description">
<h1>Welcome to Driver Spec Garage</h1>
<p>Mobile automotive detailing. Aspiring factory reset results.</p>
</div>
</section>
</main>
<footer>
<div class="footer-content">
<p>© 2024 Driver Spec Garage | (929) 569-9420 | <a href="mailto:driverspecgarage@gmail.com">driverspecgarage@gmail.com</a></p>
</div>
</footer>
<script>
function toggleDropdown(event) {
event.preventDefault(); // Prevent default anchor click behavior
var dropdown = document.getElementById('servicesDropdown');
dropdown.style.display = (dropdown.style.display === 'block') ? 'none' : 'block';
}
// Optional: Close dropdown if clicking outside
document.addEventListener('click', function(event) {
var isClickInside = document.querySelector('.non-clickable').contains(event.target);
if (!isClickInside) {
document.getElementById('servicesDropdown').style.display = 'none';
}
});
</script>
</body>
</html>