-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
179 lines (153 loc) · 6.37 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PrepZen</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="favicon.png">
</head>
<body>
<!-- Navbar -->
<nav class="navbar">
<div class="container nav-container">
<div class="logo">
<h1>PrepZen</h1>
</div>
<div id="nav-div">
<div class="hamburger">☰</div>
<ul class="nav-links" id="nav-menu">
<li><a href="courses.html">Courses</a></li>
<li><a href="document.html">Documents</a></li>
<li><a href="notes.html">Handwritten Notes</a></li>
<li><a href="pyq.html">PYQ </a></li>
<li><a href="https://roadmap.sh/" target="_blank">Roadmaps</a></li>
<li><a href="contributor.html">Contributors</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="hero-section">
<div class="container">
<div class="content">
<h1>Stop Searching, <br>
Start <span id="dynamic-text" class="highlight"></span></h1>
<p>Elevate your academic journey with PrepZen. <br>
Access curated notes, past papers, and essential tools for success.</p>
<br>
<a href="courses.html" class="btn">Get Started</a>
</div>
<div class="image-container">
<img src="student.png" alt="Student Illustration">
</div>
</div>
</section>
<!-- Mode Toggle -->
<div class="mode-toggle">
<button id="mode-button">Switch Theme </button>
</div>
<!-- Disclaimer Section -->
<section class="disclaimer">
<div class="container">
<p>
<strong>Disclaimer:</strong> PrepZen is a platform that aims to provide educational resources and guidance. <br>
While we strive to ensure the accuracy of the materials shared, PrepZen is not responsible for any errors, omissions, or outcomes resulting from the use of the provided content.
Always verify critical information independently.
</p>
</div>
</section>
<!-- Footer -->
<footer>
<div class="social-links">
<a href="https://www.instagram.com/_shashwatology" target="_blank">
<img src="instagram.png" alt="Instagram" class="social-icon">
</a>
<a href="https://www.linkedin.com/in/shashwatupadhyay" target="_blank">
<img src="linkedin.png" alt="LinkedIn" class="social-icon">
</a>
<a href="https://github.com/shashwatology" target="_blank">
<img src="github.png" alt="GitHub" class="social-icon">
</a>
</div>
<div class="container footer-container">
<p>© 2024 PrepZen</p>
<div class="footer-links">
<a href="about.html">About Us</a>
<a href="contact.html">Contact Us</a>
<a href="contributor.html">Contribute</a>
</div>
</div>
</footer>
<!-- Scripts -->
<script>
// Navbar Toggle
const navDiv = document.getElementById('nav-div');
const navMenu = document.getElementById('nav-menu');
navDiv.addEventListener('click', () => {
navMenu.classList.toggle('show');
});
navDiv.addEventListener('mouseleave', () => {
navMenu.classList.remove('show');
});
// Dynamic Typing Effect
const words = ["Studying!", "Exploring!", "Connecting!", "Developing!"];
let wordIndex = 0;
let charIndex = 0;
const dynamicText = document.getElementById('dynamic-text');
function typeEffect() {
if (charIndex < words[wordIndex].length) {
dynamicText.textContent += words[wordIndex].charAt(charIndex);
charIndex++;
setTimeout(typeEffect, 100);
} else {
setTimeout(eraseEffect, 1000);
}
}
function eraseEffect() {
if (charIndex > 0) {
dynamicText.textContent = words[wordIndex].substring(0, charIndex - 1);
charIndex--;
setTimeout(eraseEffect, 100);
} else {
wordIndex = (wordIndex + 1) % words.length;
setTimeout(typeEffect, 500);
}
}
typeEffect();
// Mode Toggle
const modeButton = document.getElementById('mode-button');
let mode = "light";
modeButton.addEventListener("click", () => {
const body = document.body;
if (mode === "light") {
body.classList.remove("light-mode");
body.classList.add("dark-mode");
mode = "dark";
} else if (mode === "dark") {
body.classList.remove("dark-mode");
body.classList.add("gradient-mode");
mode = "gradient";
} else {
body.classList.remove("gradient-mode");
body.classList.add("light-mode");
mode = "light";
}
});
// Anylatics Update
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://prepzenvercelapp.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://cdn.matomo.cloud/prepzenvercelapp.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
</body>
</html>