forked from PamudaUposath/Creators-Space-GroupProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
190 lines (170 loc) · 7.5 KB
/
blog.html
File metadata and controls
190 lines (170 loc) · 7.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Blog | Creators-Space</title>
<link rel="stylesheet" href="./src/css/style.css" />
<link rel="stylesheet" href="./src/css/utils.css">
<link rel="stylesheet" href="./src/css/responsive.css" />
<link rel="stylesheet" href="./src/css/blog.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css" integrity="sha512-DxV+EoADOkOygM4IR9yXP8Sb2qwgidEmeqAEmDKIOfPRQZOWbXCzLC6vjbZyy0vPisbH2SyW27+ddLVCN+OMzQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</head>
<body id="main-body" class="overflow-x-hidden">
<!-- Navbar -->
<div class="navbar">
<h1><a href="./">
<img id="navbar-logo" width="80px" src="./assets/images/logo-nav-light.png" alt="logo Creators-Space">
<br>Creators-Space</a></h1>
<div class="nav-links align-items-center">
<a href="index.html">Home</a>
<a href="about.html">About Us</a>
<a href="courses.html">Courses</a>
<a href="services.html" class="active">Services</a>
<a href="internship.html">Internship</a>
<a href="campus-ambassador.html">Campus Ambassador</a>
<a href="blog.html">Blog</a>
<a href="bookmarked.html">BookMarks</a>
<a href="projects.html">Projects</a>
<!-- Navbar -->
<div id="authSection">
<a href="./login.html" class="btn login">Log In</a>
<a href="./signup.html" class="btn signup">Sign Up</a>
</div>
<div id="userSection" style="display: none; align-items: center; gap: 10px;">
<button id="logoutBtn" class="btn login">Logout</button>
<a href="profile.html" title="Your Profile">
<img id="profileImg" src="https://cdn-icons-png.flaticon.com/512/847/847969.png" alt="Profile" width="30"
style="border-radius: 50%;" />
</a>
</div>
</div>
<div class="nav-toggle align-items-center justify-content-center" onclick="toggleNav()">
<svg viewBox="0 0 18 18" id="navbar-barger-logo" class="">
<polyline id="globalnav-menutrigger-bread-bottom" fill="none" stroke="currentColor" stroke-width="1.2"
stroke-linecap="round" stroke-linejoin="round" points="2 12, 16 12"
class="globalnav-menutrigger-bread globalnav-menutrigger-bread-bottom"></polyline>
<polyline id="globalnav-menutrigger-bread-top" fill="none" stroke="currentColor" stroke-width="1.2"
stroke-linecap="round" stroke-linejoin="round" points="2 5, 16 5"
class="globalnav-menutrigger-bread globalnav-menutrigger-bread-top"></polyline>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" id="navbar-x-logo" class="bi bi-x-lg d-none"
viewBox="0 0 16 16">
<path
d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z" />
</svg>
</div>
</div>
<!--Dark mode switch -->
<div class="toggle-switch">
<label class="switch-label">
<input type="checkbox" class="checkbox" id="dark-mode-toggle" />
<span class="slider"></span>
</label>
</div>
<div class="blog-header">
<h1>Explore Our Latest Blogs</h1>
<input type="text" id="blog-search" placeholder="Search blog titles...">
</div>
<section class="blog-container">
<div class="blog-card">
<img src="assets/images/blogpage/jsin30days.png" alt="Blog thumbnail" />
<div class="blog-content">
<span class="blog-category">JavaScript</span>
<div class="blog-title">Mastering JavaScript in 30 Days</div>
<div class="blog-meta">By Anurag | April 10, 2025</div>
<div class="blog-excerpt">Learn how to go from beginner to advanced in JavaScript with practical tips, projects,
and daily challenges.</div>
</div>
</div>
<div class="blog-card">
<img src="assets/images/blogpage/ui-ux.jpeg" alt="Blog thumbnail" />
<div class="blog-content">
<span class="blog-category">UI/UX</span>
<div class="blog-title">UI/UX Trends to Watch in 2025</div>
<div class="blog-meta">By Sneha | March 28, 2025</div>
<div class="blog-excerpt">Explore emerging UI/UX design trends shaping the future of user experience across
digital platforms.</div>
</div>
</div>
<div class="blog-card">
<img src="assets/images/blogpage/techstartup.jpeg" alt="Blog thumbnail" />
<div class="blog-content">
<span class="blog-category">StartUp</span>
<div class="blog-title">How to Launch Your Tech Startup</div>
<div class="blog-meta">By Raghav | March 15, 2025</div>
<div class="blog-excerpt">Step-by-step guide to launching your startup — from ideation to product-market fit and
fundraising.</div>
</div>
</div>
</section>
<footer class="footer">
<div class="social">
<h1><img width="80px" src="./assets/images/logo.png" alt="logo Anurag Vishwakarma's Creators-Space">
<br>Creators-Space
</h1>
<h3>Social Media</h3>
<div class="all-social-links">
<!-- social links -->
</div>
</div>
<div class="contact">
<h3>Contact Us</h3>
<p><a href="mailto:21brac0401@polygwalior.ac.in"><i class="fa-solid fa-envelope" id="envelope-icon"></i>21brac0401@polygwalior.ac.in</a></p>
<br>
<p><a href="tel:+9188xxxxxx89"><i class="fa-solid fa-phone" id="call-icon"></i>+91 88xxxxxx89</a></p>
</div>
<div class="form">
<h3>Get In Touch</h3>
<input type="text" placeholder="Your name">
<input type="email" placeholder="Your email">
<textarea type="text" placeholder="Your message"></textarea>
<button>Send</button>
</div>
<div class="copy">
<p>Copyright © 2024 - 2025 Creators-Space. All rights reserved.</p>
</div>
</footer>
<script src="./src/js/navbar.js"></script>
<script src="./src/js/auth.js"></script>
<script src="./src/js/utils.js"></script>
<!-- Dark mode + logo switch -->
<script>
const toggle = document.getElementById('dark-mode-toggle');
const body = document.body;
const logo = document.getElementById('navbar-logo');
function updateLogo() {
if (body.classList.contains('dark')) {
logo.src = './assets/images/logo-nav-dark.png';
} else {
logo.src = './assets/images/logo-nav-light.png';
}
}
toggle.addEventListener('change', () => {
body.classList.toggle('dark');
updateLogo();
});
document.addEventListener('DOMContentLoaded', () => {
updateLogo();
});
</script>
<!-- Blog search -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const searchInput = document.getElementById("blog-search");
const blogCards = document.querySelectorAll(".blog-card");
searchInput.addEventListener("input", function () {
const query = this.value.toLowerCase().trim();
blogCards.forEach(card => {
const title = card.querySelector(".blog-title").textContent.toLowerCase();
const category = card.querySelector(".blog-category").textContent.toLowerCase();
const excerpt = card.querySelector(".blog-excerpt").textContent.toLowerCase();
const matches = title.includes(query) || category.includes(query) || excerpt.includes(query);
card.style.display = matches ? "block" : "none";
});
});
});
</script>
</body>
</html>