forked from aditya-bhaumik/Pathsphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faqs.html
233 lines (216 loc) · 9.46 KB
/
faqs.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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PathSphere | FAQs</title>
<!-- Added a favicon -->
<link rel="icon" type="image/x-icon" href="images\pathsphere.png" />
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="faqs.css" />
</head>
<body>
<header>
<nav>
<a href="index.html" class="logo">
<!-- <img src="/P (1).png" /> Removed Image from the FAQ Navbar-->
PathSphere</a>
<ul>
<li class="tab"><a href="index.html">Home</a></li>
<li class="tab"><a href="scholarships.html">Scholarships</a></li>
<li class="tab"><a href="jobs.html">Jobs</a></li>
<li class="tab"><a href="forum.html">Forum</a></li>
<li class="tab"><a href="about.html">About Us</a></li>
<li class="tab"><a href="faqs.html">FAQs</a></li>
<li class="tab"><a href="blog.html">Blog</a></li>
</ul>
<img src="images/dark.png" id="icon" alt="" />
</nav>
</header>
<!-- Not needed Fixed the multiple Nav-List issue#112 -->
<!-- <main> (Not needed) -->
<!-- <div class="logo">PathSphere</div>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="scholarships.html">Scholarships</a></li>
<li><a href="jobs.html">Jobs</a></li>
<li><a href="forum.html">Forum</a></li>
<li><a href="faqs.html">FAQs</a></li>
</ul> -->
<!-- </nav> (Not needed)-->
<!-- </header> (Not needed)-->
<main>
<section class="process">
<div class="process__container">
<div class="process__intro intro">
<h2 class="process__title title">Frequently Asked Questions</h2>
<!-- <div class="process__text text">
Step-by-Step Guide to Achieving Your Business Goals
</div> -->
</div>
<!-- This is the faq container, you can add more FAQs if you want in future. You just have to copy the whole <li> Change according to it.-->
<div class="process__accordions">
<ul class="accordions__list">
<li class="accordions__item">
<button class="accordions__control" aria-expanded="false">
<span class="accordions__number">01</span>
<span class="accordions__title">What is PathSphere?</span>
<span class="accordions__icon"></span>
</button>
<div class="accordions__content text" aria-hidden="true">
<p>
PathSphere is an online platform offering resources for students and professionals, including
scholarships, jobs, and a discussion forum.
</p>
</div>
</li>
<li class="accordions__item">
<button class="accordions__control" aria-expanded="false">
<span class="accordions__number">02</span>
<span class="accordions__title">How can I find scholarships on PathSphere?</span>
<span class="accordions__icon"></span>
</button>
<div class="accordions__content text" aria-hidden="true">
<p>
Visit the Scholarships page to browse and apply for <a href="scholarships.html">Scholarships</a>
tailored to your academic performance and needs.
</p>
</div>
</li>
<li class="accordions__item">
<button class="accordions__control" aria-expanded="false">
<span class="accordions__number">03</span>
<span class="accordions__title"> Are job listings available for all fields?</span>
<span class="accordions__icon"></span>
</button>
<div class="accordions__content text" aria-hidden="true">
<p>
PathSphere offers job listings primarily focused on education-related positions, but we are
continually expanding our database to include more opportunities.
</p>
</div>
</li>
<li class="accordions__item">
<button class="accordions__control" aria-expanded="false">
<span class="accordions__number">04</span>
<span class="accordions__title"> How can I join the forum?</span>
<span class="accordions__icon"></span>
</button>
<div class="accordions__content text" aria-hidden="true">
<p>
You can access the forum by clicking the <a href="forum.html">Forum</a> link in the navigation bar.
Sign up to participate in discussions and connect with others.
</p>
</div>
</li>
<li class="accordions__item">
<button class="accordions__control" aria-expanded="false">
<span class="accordions__number">05</span>
<span class="accordions__title"> How can I contact PathSphere for support?</span>
<span class="accordions__icon"></span>
</button>
<div class="accordions__content text" aria-hidden="true">
<p>
You can reach out to our support team by visiting the <a href="contact.html">Contact Us</a> page and
filling out the form, or by emailing us at [email protected].
</p>
</div>
</li>
</ul>
</div>
</div>
</section>
</main>
<div class="copyright">© 2024 PathSphere. All rights reserved.</div>
<button id="scroll-to-top" title="Scroll to top">
<i class="fas fa-chevron-up"></i>
</button>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"
integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="script.js"></script>
<script>
document.addEventListener("DOMContentLoaded", () => {
const accordions = document.querySelectorAll(".accordions__item");
accordions.forEach((el) => {
el.addEventListener("click", (e) => {
const self = e.currentTarget;
const control = self.querySelector(".accordions__control");
const content = self.querySelector(".accordions__content");
self.classList.toggle("open");
if (self.classList.contains("open")) {
control.setAttribute("aria-expanded", true);
content.setAttribute("aria-hidden", false);
content.style.maxHeight = content.scrollHeight + "px";
} else {
control.setAttribute("aria-expanded", false);
content.setAttribute("aria-hidden", true);
content.style.maxHeight = null;
}
});
});
});
// document.addEventListener("DOMContentLoaded", function () {
// const accordionsIcon = document.querySelector(".accordions__icon");
// accordionsIcon.addEventListener("click", function () {
// accordionsIcon.style.color = "white";
// });
// });
document.addEventListener("DOMContentLoaded", function () {
const accordionsIcons = document.querySelectorAll(".accordions__icon");
accordionsIcons.forEach((icon) => {
icon.addEventListener("click", function () {
const parentItem = icon.closest(".accordions__item");
const accordionsTitle =
parentItem.querySelector(".accordions__title");
const accordionsNumber = parentItem.querySelector(
".accordions__number"
);
if (parentItem.classList.contains("open")) {
icon.style.color = "white";
if (accordionsTitle) {
accordionsTitle.style.color = "white";
}
if (accordionsNumber) {
accordionsNumber.style.color = "white";
}
} else {
icon.style.color = "black";
if (accordionsTitle) {
accordionsTitle.style.color = "black";
}
if (accordionsNumber) {
accordionsNumber.style.color = "black";
}
}
});
});
const accordionsItems = document.querySelectorAll(".accordions__item");
accordionsItems.forEach((item) => {
item.addEventListener("click", function () {
const icon = item.querySelector(".accordions__icon");
const accordionsTitle = item.querySelector(".accordions__title");
const accordionsNumber = item.querySelector(".accordions__number");
if (item.classList.contains("open")) {
icon.style.color = "white";
if (accordionsTitle) {
accordionsTitle.style.color = "white";
}
if (accordionsNumber) {
accordionsNumber.style.color = "white";
}
} else {
icon.style.color = "black";
if (accordionsTitle) {
accordionsTitle.style.color = "black";
}
if (accordionsNumber) {
accordionsNumber.style.color = "black";
}
}
});
});
});
</script>
</body>
</html>