-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (70 loc) · 2.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vakbond tegen onvoldoendes</title>
<link rel="stylesheet" href="style.css">
<script src="./script.js" defer></script>
<script>document.addEventListener("DOMContentLoaded", function () {
const menuToggle = document.querySelector(".menu-toggle");
const navbar = document.querySelector(".navbar");
menuToggle.addEventListener("click", function () {
navbar.classList.toggle("active");
});
});</script>
</head>
<body>
<header class="header" id="home">
<a href="#" class="logo"><img src="./Logo.png" alt="" width="100" height="100" /></div></a>
<div class="menu-toggle">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
<nav class="navbar">
<a href="#">Home</a>
<a href="#about">Over ons</a>
<a href="./aanmelden">Inschrijven</a>
<a href="./login">Login</a>
</nav>
</a>
<script>
// Smooth scrolling when clicking on navigation links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const targetId = this.getAttribute('href').substring(1);
const target = document.getElementById(targetId);
if (target) {
const targetPosition = target.getBoundingClientRect().top + window.scrollY;
window.scrollTo({
top: targetPosition - 50, // Adjust scroll position as needed
behavior: 'smooth'
});
}
});
});
</script>
</a>
</header>
<section class="home" id="">
<div class="home-content">
<h1>Hey! Welkom</h1>
<h3>Vakbond</h3>
<p>Hoi, welkom bij de website van de Vakbond Tegen Onvoldoendes. <br> Hier helpen wij mensen tegen hun onvoldoendes.</p>
<div class="btn-box">
<a href="#pricing">Over ons</a>
<a href="mailto:s00071@student.pleysier.nl">Let's talk!</a>
</div>
</div>
</section>
<div class="aboutme">
<div class="h3"> <h3>About Us!</h3>
</div>
<div class="p">
<p>Wij zijn de vakbond tegen onvoldoendes, wij geven bijlessen gratis aan leerlingen met moeite. <br> Wij zijn een klein groepje jongeren die helpen met betere cijfers krijgen</p>
</div>
</div>
</body>
</html>