-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresourcelibrary.html
More file actions
378 lines (332 loc) · 16.4 KB
/
resourcelibrary.html
File metadata and controls
378 lines (332 loc) · 16.4 KB
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&family=Ubuntu&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Satisfy&display=swap" rel="stylesheet">
<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=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/resourcelibrary.css" />
</head>
<body>
<!-- header -->
<header class="header">
<nav class="nav">
<div class="logo">
<div class="img-div">
<img src="images/logo.png" alt="">
</div>
<div>
<h2>MindFullConnect</h2>
</div>
</div>
<div class="mobile-nav-btn">
<button onclick="openNav()">
<img src="images/Hamburger_icon.svg.png" alt="">
</button>
</div>
<div id="mobile-nav" class="mobile-nav">
<div class="cross-icon">
<button onclick="closeNav()">
<svg fill="#000000" height="20px" width="20px" version="1.1" id="Capa_1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 490 490" xml:space="preserve">
<polygon points="456.851,0 245,212.564 33.149,0 0.708,32.337 212.669,245.004 0.708,457.678 33.149,490 245,277.443 456.851,490
489.292,457.678 277.331,245.004 489.292,32.337 " />
</svg>
</button>
</div>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="resourcelibrary.html" class="active">Resources Library</a></li>
<li><a href="interactiveTools.html">Interactive Tools</a></li>
<li><a href="professionalTools.html">Professional Service</a></li>
<li><a href="emergencyService.html">Emergency Service</a></li>
</ul>
</div>
</nav>
</header>
<!--end of header -->
<!-- content section -->
<div class="content">
<!-- Filter Buttons -->
<div class="filter-buttons">
<button class="filter-btn active" data-keyword="anxiety">Anxiety</button>
<button class="filter-btn active" data-keyword="depression">Depression</button>
<button class="filter-btn active" data-keyword="ptsd">PTSD</button>
<button class="filter-btn active" data-keyword="mental-health">Mental Health</button>
<button class="filter-btn active" data-keyword="ocd">OCD</button>
</div>
<!-- Filtered Content Section -->
<div class="filtered-content">
<!-- Videos Section -->
<div class="videos-container">
<div class="main-title-div">
<h2 class="title main-title">Videos</h2>
</div>
<div class="container">
<!-- Video - Anxiety -->
<div class="content-card" data-keywords="anxiety mental-health">
<div class="img-div">
<video src="videos/Dear Anxiety __ Spoken Word.mp4" controls></video>
</div>
<h2 class="title">Dear Anxiety __ Spoken Word</h2>
</div>
<div class="content-card" data-keywords="anxiety depression">
<div class="img-div">
<video
src="videos/People With Anxiety & Depression Share Advice For Anyone Who s Struggling _ Soul Stories.mp4"
controls></video>
</div>
<h2 class="title">People With Anxiety & Depression Share Advice For Anyone Who's Struggling _
Soul Stories</h2>
</div>
<div class="content-card" data-keywords="anxiety">
<div class="img-div">
<video
src="videos/So, You re Having an Anxiety Attack (The Calm-Down Method for Stopping Anxiety Attacks).mp4"
controls></video>
</div>
<h2 class="title">So, You’re Having an Anxiety Attack (The Calm-Down Method for Stopping Anxiety
Attacks)</h2>
</div>
<!-- Video - Depression -->
<div class="content-card" data-keywords="depression mental-health">
<div class="img-div">
<video src="videos/Feeling Lost in Your 20s.mp4" controls></video>
</div>
<h2 class="title">Feeling Lost in Your 20s</h2>
</div>
<!-- Video - Mental Health -->
<div class="content-card" data-keywords="mental-health">
<div class="img-div">
<video src="videos/Mental Health Awareness.mp4" controls></video>
</div>
<h2 class="title">Mental Health Awareness</h2>
</div>
</div>
</div>
<!-- Articles Section -->
<div class="article-container">
<div class="main-title-div">
<h2 class="title main-title">Articles</h2>
</div>
<div class="container">
<!-- Article - Anxiety -->
<div class="content-card" data-keywords="anxiety mental-health">
<a href="articles/managing-anxiety.html">
<div class="img-div">
<img src="images/article/anxiety.webp" alt="">
</div>
<h2 class="title">Managing Anxiety: Practical Tips to Calm Your Mind</h2>
</a>
</div>
<!-- Article - Depression -->
<div class="content-card" data-keywords="depression">
<a href="articles/overcoming-depression.html">
<div class="img-div">
<img src="images/article/depression.webp" alt="">
</div>
<h2 class="title">Overcoming Depression: Steps to Reclaim Your Life</h2>
</a>
</div>
<!-- Article - PTSD -->
<div class="content-card" data-keywords="ptsd">
<a href="articles/understanding-ptsd.html">
<div class="img-div">
<img src="images/article/ptsd.webp" alt="">
</div>
<h2 class="title">Understanding PTSD: Pathways to Healing After Trauma</h2>
</a>
</div>
<!-- Article - OCD -->
<div class="content-card" data-keywords="ocd">
<a href="articles/living-with-ocd.html">
<div class="img-div">
<img src="images/article/ocd.webp" alt="">
</div>
<h2 class="title">Living with OCD: Understanding and Managing Obsessive-Compulsive Disorder
</h2>
</a>
</div>
<!-- Article - Mental Health -->
<div class="content-card" data-keywords="mental-health">
<a href="articles/managing-bipolar-disorder.html">
<div class="img-div">
<img src="images/article/bipolar.webp" alt="">
</div>
<h2 class="title">Managing Bipolar Disorder: Finding Balance in Mood Swings</h2>
</a>
</div>
</div>
</div>
<!-- Podcasts Section -->
<div class="podcast-container">
<div class="main-title-div">
<h2 class="title main-title">Podcasts</h2>
</div>
<div class="container">
<!-- Podcast - Depression -->
<div class="content-card" data-keywords="depression">
<a href="podcast/podcast.html?index=0">
<div class="img-div">
<img src="podcast/assets/images/1.webp" alt="">
</div>
<h2 class="title">Jordan Peterson’s Advice For People With Depression</h2>
</a>
</div>
<div class="content-card" data-keywords="depression anxiety">
<a href="podcast/podcast.html?index=1">
<div class="img-div">
<img src="podcast/assets/images/2.webp" alt="">
</div>
<h2 class="title">Kristen Bell on Living with Depression and Anxiety - Body Stories - SELF
</h2>
</a>
</div>
<div class="content-card" data-keywords="depression">
<a href="podcast/podcast.html?index=5">
<div class="img-div">
<img src="podcast/assets/images/6.webp" alt="">
</div>
<h2 class="title">What is Depression? - Helen M. Farrell</h2>
</a>
</div>
<!-- Podcast - PTSD -->
<div class="content-card" data-keywords="ptsd">
<a href="podcast/podcast.html?index=4">
<div class="img-div">
<img src="podcast/assets/images/5.webp" alt="">
</div>
<h2 class="title">Complex PTSD in 5 Minutes</h2>
</a>
</div>
<!-- Podcast - Mental Health -->
<div class="content-card" data-keywords="mental-health">
<a href="podcast/podcast.html?index=2">
<div class="img-div">
<img src="podcast/assets/images/3.webp" alt="">
</div>
<h2 class="title">Are You Okay?</h2>
</a>
</div>
<div class="content-card" data-keywords="mental-health">
<a href="podcast/podcast.html?index=3">
<div class="img-div">
<img src="podcast/assets/images/4.webp" alt="">
</div>
<h2 class="title">WHEN YOU FEEL LIKE QUITTING - Best Inspiring Speech on Mental Health</h2>
</a>
</div>
</div>
</div>
</div>
<!-- End of Filtered Content Section -->
</div>
<!--end of content section -->
<!-- footer section -->
<div class="footer-section">
<div class="container">
<div class="card">
<div class="first-section">
<div class="img-div">
<img src="images/logo.png" alt="">
</div>
<h2 class="title">MindFullConnect</h2>
</div>
</div>
<div class="card quick-links-section">
<div>
<h2 class="">QUICK LINKS</h2>
<ul>
<li><a href="index.html" class="active">Home</a></li>
<li><a href="resourcelibrary.html">Resources Library</a></li>
<li><a href="interactiveTools.html">Interactive Tools</a></li>
<li><a href="professionalTools.html">Professional Service</a></li>
<li><a href="emergencyService.html">Emergency Service</a></li>
</ul>
</div>
</div>
<div class="card social-media-section">
<div class="">
<h2 class="">Socials</h2>
<div class="social-medias">
<a href="https://www.facebook.com/profile.php?id=61567334764430" target="_blank">
<i class="fa-brands fa-facebook"></i>
</a>
<div class="instagram-icon">
<a href="https://www.instagram.com/mindfullconnect_45/" target="_blank">
<i class="fa-brands fa-instagram"></i>
</a>
</div>
<div class="twitter-icon">
<i class="fa-brands fa-twitter"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="bottom-footer">
<h2>Copyright © 2024 <span>MindFullConnect</span>. All Rights Reserved</h2>
</div>
<!--end of footer section -->
</body>
<script>
function closeNav() {
var mobileNav = document.getElementById("mobile-nav");
mobileNav.classList.remove("active");
}
function openNav() {
var mobileNav = document.getElementById("mobile-nav");
mobileNav.classList.add("active");
}
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const filterButtons = document.querySelectorAll('.filter-btn');
const cards = document.querySelectorAll('.content-card');
const sections = document.querySelectorAll('.videos-container, .article-container, .podcast-container');
filterButtons.forEach(button => {
button.addEventListener('click', () => {
button.classList.toggle('active');
button.classList.toggle('inactive');
filterContent();
});
});
function filterContent() {
const activeKeywords = Array.from(filterButtons)
.filter(btn => btn.classList.contains('active'))
.map(btn => btn.dataset.keyword);
// Filter the cards based on the selected keywords
cards.forEach(card => {
// Ensure data-keywords exists and is not empty before splitting
const cardKeywords = card.dataset.keywords ? card.dataset.keywords.split(' ') : [];
const isVisible = activeKeywords.some(keyword => cardKeywords.includes(keyword));
// Show or hide the card based on keyword match
card.style.display = isVisible ? 'block' : 'none';
});
// Check each section to see if it has any visible cards
sections.forEach(section => {
// Find all cards within the section that are visible
const visibleCards = Array.from(section.querySelectorAll('.content-card')).filter(
card => card.style.display !== 'none'
);
// Show the section if it has visible cards, otherwise hide it
section.style.display = visibleCards.length > 0 ? 'block' : 'none';
});
}
// Initial filter to show all content
filterContent();
});
</script>
</html>