-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathBlog.html
436 lines (384 loc) · 16.3 KB
/
Blog.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
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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="DSA Blog - DSA Problem Solutions" />
<meta property="og:image" content="/img/logo2.png" />
<meta property="og:url" content="https://priyeshsingh24.github.io/DSA_SOLUTION_PLATFORM/blog.html" />
<meta property="og:type" content="website" />
<title>DSA Blog</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
/* General Body Styling */
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #f5f5f5;
}
/* Navbar Styling */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #fff;
padding: 15px 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.navbar .logo img {
height: 40px;
}
.navbar .nav-links {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
.navbar .nav-links li {
margin-right: 20px;
}
.navbar .nav-links li a {
text-decoration: none;
color: #333;
font-weight: 600;
}
.navbar .nav-links li a.active {
color: #19be50;
}
/* Blog Header Styling */
.blog-header {
background-color: #19be50;
color: #fff;
padding: 60px 20px;
text-align: center;
}
.blog-header h1 {
margin-bottom: 10px;
font-size: 36px;
}
.blog-header p {
font-size: 18px;
}
/* Blog Categories Styling */
.blog-categories {
background-color: #fff;
padding: 40px 20px;
}
.blog-categories h2 {
text-align: center;
margin-bottom: 20px;
font-size: 28px;
}
.blog-categories .categories {
list-style: none;
display: flex;
justify-content: center;
gap: 15px;
}
.blog-categories .categories li a {
text-decoration: none;
color: #333;
padding: 10px 20px;
background-color: #f1f1f1;
border-radius: 30px;
transition: background-color 0.3s ease;
}
.blog-categories .categories li a:hover {
background-color: #19be50;
color: #fff;
}
/* Blog Posts Styling */
.blog-posts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
padding: 40px 20px;
background-color: #fff;
}
.blog-post {
background-color: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
}
.blog-post img {
width: 100%;
height: 180px;
object-fit: cover;
border-bottom: 1px solid #e0e0e0;
}
.blog-details {
padding: 20px;
}
.blog-details h2 {
margin-bottom: 10px;
font-size: 22px;
color: #333;
}
.blog-details .blog-author {
margin-bottom: 10px;
color: #555;
}
.blog-details p {
margin-bottom: 15px;
color: #666;
}
.social-share a {
margin-right: 10px;
font-size: 18px;
color: #666;
transition: color 0.3s ease;
}
.social-share a:hover {
color: #19be50;
}
.read-more {
display: inline-block;
margin-top: 10px;
color: #19be50;
font-weight: 600;
text-decoration: none;
}
.read-more:hover {
color: #14a240;
}
/* Pagination Styling */
.pagination {
display: flex;
justify-content: center;
padding: 40px 20px;
}
.pagination a {
padding: 10px 15px;
color: #333;
text-decoration: none;
border: 1px solid #ccc;
margin: 0 5px;
}
</style>
</head>
<body>
<header>
<nav class="navbar">
<div class="logo">
<img src="./img/logo2.png" alt="Logo">
</div>
<button class="mobile-menu-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="black">
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</button>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="#platforms">Platforms</a></li>
<li><a href="about.html">About</a></li>
<li><a href="blog.html" class="active">Blog</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<!-- Blog Header -->
<section class="blog-header">
<div class="container">
<h1 class="blog-title">DSA Insights & Updates</h1>
<p class="blog-subtitle">Stay updated with the latest DSA trends, tips, and coding challenges.</p>
<div class="search-bar">
<input type="text" placeholder="Search blog posts..." id="searchInput">
<button onclick="searchBlog()"><i class="fas fa-search"></i> Search</button>
</div>
</div>
</section>
<!-- Blog Categories -->
<section class="blog-categories">
<div class="container">
<h2>Categories</h2>
<ul class="categories">
<li><a href="#beginner">Beginner</a></li>
<li><a href="#intermediate">Intermediate</a></li>
<li><a href="#advanced">Advanced</a></li>
<li><a href="#interview-tips">Interview Tips</a></li>
</ul>
</div>
</section>
<!-- Blog Posts Section -->
<section class="blog-posts container">
<article class="blog-post">
<img src="img44.jpg" alt="Blog Post 1">
<div class="blog-details">
<h2 class="blog-post-title">Top 10 DSA Problems for Beginners</h2>
<p class="blog-author">By <span>John Doe</span> | <span>January 10, 2025</span></p>
<p class="blog-post-excerpt">Explore essential problems that every beginner should solve to build a strong foundation in Data Structures and Algorithms.</p>
<div class="social-share">
<a href="#" title="Share on Twitter"><i class="fab fa-twitter"></i></a>
<a href="#" title="Share on LinkedIn"><i class="fab fa-linkedin"></i></a>
<a href="#" title="Share on Facebook"><i class="fab fa-facebook"></i></a>
</div>
<a href="blog-post-1.html" class="read-more">Read More</a>
</div>
</article>
<article class="blog-post">
<img src="img5.jpg" alt="Blog Post 2">
<div class="blog-details">
<h2 class="blog-post-title">Mastering Sorting Algorithms</h2>
<p class="blog-author">By <span>Alia Smith</span> | <span>January 8, 2025</span></p>
<p class="blog-post-excerpt">Sorting algorithms are key in DSA. Learn about different types and how to optimize their performance in real-world applications.</p>
<div class="social-share">
<a href="#" title="Share on Twitter"><i class="fab fa-twitter"></i></a>
<a href="#" title="Share on LinkedIn"><i class="fab fa-linkedin"></i></a>
<a href="#" title="Share on Facebook"><i class="fab fa-facebook"></i></a>
</div>
<a href="blog-post-2.html" class="read-more">Read More</a>
</div>
</article>
<article class="blog-post">
<img src="img3.png" alt="Blog Post 3">
<div class="blog-details">
<h2 class="blog-post-title">Coding Interview Preparation Tips</h2>
<p class="blog-author">By <span>Tracy Brown</span> | <span>January 5, 2025</span></p>
<p class="blog-post-excerpt">Crack your coding interviews with these expert tips and must-solve problems from leading platforms.</p>
<div class="social-share">
<a href="#" title="Share on Twitter"><i class="fab fa-twitter"></i></a>
<a href="#" title="Share on LinkedIn"><i class="fab fa-linkedin"></i></a>
<a href="#" title="Share on Facebook"><i class="fab fa-facebook"></i></a>
</div>
<a href="blog-post-3.html" class="read-more">Read More</a>
</div>
</article>
</section>
<!-- Pagination -->
<div class="pagination container">
<a href="#prev" class="prev-page">« Previous</a>
<a href="#page1" class="active">1</a>
<a href="#page2">2</a>
<a href="#page3">3</a>
<a href="#next" class="next-page">Next »</a>
</div>
<footer style="background: linear-gradient(to right, #11cb2a, #19be50);; color: #ffffff; padding: 40px 20px; font-family: 'Arial', sans-serif; overflow: hidden;">
<!-- Footer Container -->
<div class="footer-container" style="max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px;">
<!-- Left Section (Logo and Description) -->
<div class="footer-left" style="flex: 2; min-width: 300px;">
<!-- Logo -->
<div class="footer-logo" style="margin-bottom: 20px; animation: fadeInLeft 1s;">
<div style="background-color: #8cc152; padding: 20px; border-radius: 8px; display: inline-block;">
<h1 style="margin: 0; font-size: 36px; font-weight: bold;">DSA</h1>
</div>
</div>
<!-- Description -->
<p style="font-size: 16px; line-height: 1.6; animation: fadeInLeft 1.5s;">
DSA problem solutions involve step-by-step methods to solve data structure and algorithm challenges efficiently.
They include understanding the problem, selecting the right approach, implementing optimized code, and analyzing
time and space complexity for performance.
</p>
</div>
<!-- Quick Links Section -->
</div>
<div class="footer-section services" >
<h2 style="font-size: 18px;
margin-bottom: 10px;
transition: color 0.3s ease;" onmouseover="this.style.color='#e67e22'" onmouseout="this.style.color='white'">DSA Problem Solutions</h2>
<ul style="list-style: none; padding: 0;">
<li><a href="about.html" style="color: white; text-decoration: none; transition: all 0.3s ease;"
onmouseover="this.style.color='green'; this.style.paddingLeft='10px'"
onmouseout="this.style.color='white'; this.style.paddingLeft='0'">Who We Are</a></li>
<li><a href="Blog.html" style="color: white; text-decoration: none; transition: all 0.3s ease;"
onmouseover="this.style.color='green'; this.style.paddingLeft='10px'"
onmouseout="this.style.color='white'; this.style.paddingLeft='0'">Blog</a></li>
<li><a href="#" style="color: white; text-decoration: none; transition: all 0.3s ease;"
onmouseover="this.style.color='green'; this.style.paddingLeft='10px'"
onmouseout="this.style.color='white'; this.style.paddingLeft='0'">Work With Us</a></li>
<li><a href="#" style="color: white; text-decoration: none; transition: all 0.3s ease;"
onmouseover="this.style.color='green'; this.style.paddingLeft='10px'"
onmouseout="this.style.color='white'; this.style.paddingLeft='0'">Investor Relations</a></li>
<li><a href="contact.html" style="color: white; text-decoration: none; transition: all 0.3s ease;"
onmouseover="this.style.color='green'; this.style.paddingLeft='10px'"
onmouseout="this.style.color='white'; this.style.paddingLeft='0'">Contact Us</a></li>
</ul>
</div>
<!-- Learn More Section -->
<div class="footer-section services" >
<h2 style="font-size: 18px;
margin-bottom: 10px;
transition: color 0.3s ease;" onmouseover="this.style.color='#e67e22'" onmouseout="this.style.color='white'">Learn More</h2>
<ul style="list-style: none; padding: 0;">
<li><a href="privacy.html" style="color: white; text-decoration: none; transition: all 0.3s ease;"
onmouseover="this.style.color='green'; this.style.paddingLeft='10px'"
onmouseout="this.style.color='white'; this.style.paddingLeft='0'">Privacy Policy</a></li>
<li><a href="security.html" style="color: white; text-decoration: none; transition: all 0.3s ease;"
onmouseover="this.style.color='green'; this.style.paddingLeft='10px'"
onmouseout="this.style.color='white'; this.style.paddingLeft='0'">Security</a></li>
<li><a href="terms.html" style="color: white; text-decoration: none; transition: all 0.3s ease;"
onmouseover="this.style.color='green'; this.style.paddingLeft='10px'"
onmouseout="this.style.color='white'; this.style.paddingLeft='0'">Terms of Service</a></li>
<li><a href="contributors.html" style="color: white; text-decoration: none; transition: all 0.3s ease;"
onmouseover="this.style.color='green'; this.style.paddingLeft='10px'"
onmouseout="this.style.color='white'; this.style.paddingLeft='0'">Our Contributors</a></li>
</ul>
</div>
</div>
<!-- Stay Updated Section -->
<div class="footer-section.newsletter" style="background: rgba(255, 255, 255, 0.2); border-radius: 20px; backdrop-filter: blur(10px); padding: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease;">
<h3 style="font-size: 18px; margin-bottom: 20px; text-align: center; color: #ffffff;">Stay Updated</h3>
<p style="text-align: center; font-size: 14px; line-height: 1.8; margin-bottom: 20px;">
Subscribe to our newsletter for the latest updates and tips on mastering data structures and algorithms.
</p>
<form action="#" method="POST" style="max-width: 600px; margin: 0 auto; display: flex; gap: 10px;">
<input type="email" placeholder="Your Email Address" required style="flex: 1; padding: 10px; font-size: 14px; border: 1px solid #dee2e6; border-radius: 4px;">
<button type="submit" style="padding: 10px 20px; font-size: 14px; background-color: #6c757d; color: #ffffff; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s;">
Subscribe
</button>
</form>
</div>
<!-- Social Links -->
<div class="social-links" style="text-align: center; margin-top: 40px; animation: fadeInUp 2.5s;">
<ul style="list-style: none; padding: 0; display: flex; justify-content: center; gap: 20px;">
<li><a href="#" style="color: #ffffff; font-size: 20px; transition: color 0.3s;" onmouseover="this.style.color='#8cc152';" onmouseout="this.style.color='#ffffff';"><i class="fab fa-facebook"></i></a></li>
<li><a href="#" style="color: #ffffff; font-size: 20px; transition: color 0.3s;" onmouseover="this.style.color='#8cc152';" onmouseout="this.style.color='#ffffff';"><i class="fab fa-twitter"></i></a></li>
<li><a href="#" style="color: #ffffff; font-size: 20px; transition: color 0.3s;" onmouseover="this.style.color='#8cc152';" onmouseout="this.style.color='#ffffff';"><i class="fab fa-linkedin"></i></a></li>
<li><a href="#" style="color: #ffffff; font-size: 20px; transition: color 0.3s;" onmouseover="this.style.color='#8cc152';" onmouseout="this.style.color='#ffffff';"><i class="fab fa-youtube"></i></a></li>
</ul>
</div>
<!-- Footer Bottom -->
<div class="footer-bottom" style="text-align: center; margin-top: 20px; padding-top: 20px; background: none; color: #ffffff; animation: fadeInUp 3s;">
<p style="margin: 0; font-size: 14px;">© 2025 DSA Problem Solutions. All rights reserved.</p>
</div>
</footer>
<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 src="//code.tidio.co/5w3m6cpl10rvqjkkmhv1nx8p0fqloyq6.js" async></script>
<script src="scrollscript.js"></script>
<script src="audio.js"></script>
<script>
document.querySelector('.mobile-menu-btn').addEventListener('click', function() {
document.querySelector('.nav-links').classList.toggle('active');
});
// Get the button element
const scrollBtn = document.getElementById('scrollBtn');
// Show the button when the user scrolls down 100px from the top
window.onscroll = function () {
if (document.body.scrollTop > 30 || document.documentElement.scrollTop > 30) {
scrollBtn.style.display = "block";
} else {
scrollBtn.style.display = "none";
}
};
// Scroll to the top of the page when the button is clicked
scrollBtn.onclick = function () {
window.scrollTo({
top: 0,
behavior: "smooth"
});
};
</script>
</body>
</html>