forked from gyanshankar1708/GrowCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblogView.html
More file actions
430 lines (374 loc) · 13.3 KB
/
Copy pathblogView.html
File metadata and controls
430 lines (374 loc) · 13.3 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>View Blog | GrowCraft</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="Favicon.ico" type="image/x-icon" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" />
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<link rel="stylesheet" href="src/style.css" />
<link rel="stylesheet" href="src/blogs.css" />
<link rel="stylesheet" href="components/footer.css" />
<style>
/* Base styles */
body {
font-family: 'Segoe UI', sans-serif;
background-color: #f8f9fc;
color: #333;
transition: background-color 0.3s ease, color 0.3s ease;
min-height: 100vh;
margin: 0;
padding: 0;
}
/* Ensure html covers full viewport */
html {
background-color: #f8f9fc;
transition: background-color 0.3s ease;
min-height: 100vh;
}
/* Navbar styling - slightly darker than hero section */
.navbar.bg-body-tertiary {
background-color: #e9ecef !important;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
transition: background-color 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
/* Hero section (page background) - slightly lighter than navbar */
body {
background-color: #f4f6f8 !important;
}
/* Navbar text styling */
.navbar-brand,
.navbar-nav .nav-link {
transition: color 0.3s ease;
}
/* search bar */
.search-container {
display: flex;
align-items: center;
background-color: white;
border-radius: 25px;
padding: 5px 10px;
width: 100%;
max-width: 300px;
margin-left: auto;
margin-right: 20px;
}
.search-input {
border: none;
outline: none;
padding: 8px;
font-size: 16px;
flex: 1;
color: #333;
}
.search-input::placeholder {
color: #aaa;
}
.search-button {
background: none;
border: none;
cursor: pointer;
color: #555;
font-size: 18px;
}
@media screen and (max-width: 600px) {
.search-container {
max-width: 200px;
}
.search-input {
font-size: 14px;
}
}
/* Dark mode html - Force override with highest specificity */
html[data-bs-theme="dark"],
html.dark,
html.dark-mode {
background-color: #0f1419 !important;
background: #0f1419 !important;
}
/* Dark mode navbar - slightly darker than hero section */
html[data-bs-theme="dark"] .navbar.bg-body-tertiary,
html.dark .navbar.bg-body-tertiary,
html.dark-mode .navbar.bg-body-tertiary {
background-color: #0a0e12 !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}
/* Dark mode navbar text */
html[data-bs-theme="dark"] .navbar-brand,
html[data-bs-theme="dark"] .navbar-nav .nav-link,
html.dark .navbar-brand,
html.dark .navbar-nav .nav-link,
html.dark-mode .navbar-brand,
html.dark-mode .navbar-nav .nav-link {
color: #ffffff !important;
}
/* Dark mode body - Force override with highest specificity */
html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] body.dark-mode,
html.dark body,
html.dark body.dark-mode,
.dark-mode body,
.dark body,
body.dark-mode {
background-color: #121822 !important;
background: #121822 !important;
color: #ffffff !important;
min-height: 100vh !important;
}
/* Dark mode container override */
.dark-mode .container,
.dark .container,
body.dark-mode .container,
html.dark .container,
html[data-bs-theme="dark"] .container {
background-color: transparent !important;
}
/* Force entire viewport to be dark */
html[data-bs-theme="dark"],
html.dark,
html.dark-mode {
background: #121822 !important;
}
/* Override any potential Bootstrap or external CSS */
html[data-bs-theme="dark"] *:not(.blog-section):not(.professional-footer):not(.navbar),
html.dark *:not(.blog-section):not(.professional-footer):not(.navbar),
.dark-mode *:not(.blog-section):not(.professional-footer):not(.navbar) {
background-color: inherit !important;
}
/* Force specific Bootstrap utility overrides in dark mode */
html[data-bs-theme="dark"] .bg-light,
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-body,
html[data-bs-theme="dark"] .bg-body-secondary,
html[data-bs-theme="dark"] .bg-body-tertiary:not(.navbar) {
background-color: #121822 !important;
}
/* Ensure main content area is dark */
html[data-bs-theme="dark"] .container,
html[data-bs-theme="dark"] main,
html[data-bs-theme="dark"] section {
background-color: transparent !important;
}
/* Dark mode logo switching */
[data-bs-theme="dark"] .navbar-brand img {
content: url('images/logo-transparent-dark-mode.png');
}
.blog-section {
background-color: #ffffff;
margin: 40px auto;
padding: 40px;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
/* Ensure the footer background is correct in dark mode */
html[data-bs-theme="dark"] .professional-footer,
html.dark .professional-footer,
html.dark-mode .professional-footer {
background-color: #1a1d29 !important;
}
/* Dark mode blog section */
.dark-mode .blog-section,
.dark .blog-section,
body.dark-mode .blog-section,
html.dark .blog-section,
html[data-bs-theme="dark"] .blog-section {
background-color: #1a1a2e !important;
color: #ffffff !important;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}
/* Dark mode blog content text */
html[data-bs-theme="dark"] .blog-section h2,
html[data-bs-theme="dark"] .blog-section small,
html[data-bs-theme="dark"] .blog-section div,
html[data-bs-theme="dark"] #full-blog-content h2,
html[data-bs-theme="dark"] #full-blog-content small,
html[data-bs-theme="dark"] #full-blog-content div,
html[data-bs-theme="dark"] .blog-title,
html[data-bs-theme="dark"] .blog-meta,
html[data-bs-theme="dark"] .blog-content {
color: #ffffff !important;
}
.back-btn {
display: inline-block;
padding: 10px 20px;
font-weight: 500;
background-color: #e3eaf5;
color: #273055;
border-radius: 8px;
text-decoration: none;
margin-bottom: 25px;
transition: all 0.2s ease;
}
.back-btn:hover {
background-color: #d4e2f4;
transform: translateY(-2px);
text-decoration: none;
color: #273055;
}
/* Dark mode back button */
.dark-mode .back-btn,
.dark .back-btn,
body.dark-mode .back-btn,
html.dark .back-btn {
background-color: #4a5568 !important;
color: #ffffff !important;
}
.dark-mode .back-btn:hover,
.dark .back-btn:hover,
body.dark-mode .back-btn:hover,
html.dark .back-btn:hover {
background-color: #2d3748 !important;
color: #ffffff !important;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid d-flex justify-content-between align-items-center px-3 px-sm-5">
<a class="navbar-brand" href="index.html">
<img src="images/logo_bg_transparent.png" alt="GrowCraft" width="180" id="logo" />
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse mt-2 mt-lg-0 nav-nav" id="navbarNav">
<ul class="navbar-nav ms-auto align-items-center gap-2">
<li class="nav-item"><a class="nav-link active" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link active" href="./index.html#services">Services</a></li>
<li class="nav-item"><a class="nav-link active" href="blogListing.html">Blogs</a></li>
<li class="nav-item"><a class="nav-link active" href="./index.html#about">About Us</a></li>
<li class="nav-item"><a class="nav-link active" href="./index.html#work">Our Work</a></li>
<li class="nav-item"><a class="nav-link active" href="src/contact.html">Contact Us</a></li>
</ul>
</div>
<div class="search-container">
<input type="text" placeholder="Search..." class="search-input">
<button class="search-button">
<i class="fas fa-search"></i> </button>
</div>
</div>
</nav>
<div class="container">
<div class="blog-section" id="full-blog-section" style="max-width: 800px;" data-aos="fade-up">
<a href="blogListing.html" class="back-btn"><i class="fas fa-arrow-left me-2"></i>Back to Blogs</a>
<div id="full-blog-content">
</div>
</div>
</div>
<footer class="professional-footer" data-aos="fade-up" data-aos-anchor-placement="top-bottom">
<div class="container">
<div class="row g-4 py-4">
<div class="col-lg-4 col-md-12">
<div class="footer-brand">
<img src="images/Logo.png" alt="GrowCraft Logo" class="footer-logo">
<h4 class="brand-name">GrowCraft</h4>
<p class="brand-description">Empowering businesses with innovative digital solutions and creative excellence.</p>
<div class="quick-stats">
<div class="stat-item">
<span class="stat-number">500+</span>
<span class="stat-label">PROJECTS</span>
</div>
<div class="stat-item">
<span class="stat-number">150+</span>
<span class="stat-label">CLIENTS</span>
</div>
<div class="stat-item">
<span class="stat-number">5+</span>
<span class="stat-label">YEARS</span>
</div>
</div>
</div>
</div>
<div class="col-lg-2 col-md-4 col-6">
<h5 class="footer-title">
<i class="fas fa-tools" style="margin-right: 8px;"></i>Services
</h5>
<ul class="footer-links">
<li><a href="learn/webdev.html"><i class="fas fa-code"></i> Web Development</a></li>
<li><a href="learn/graphic.html"><i class="fas fa-paint-brush"></i> Graphic Design</a></li>
<li><a href="learn/marketing.html"><i class="fas fa-bullhorn"></i> Digital Marketing</a></li>
<li><a href="learn/contentwriting.html"><i class="fas fa-pen-nib"></i> Content Writing</a></li>
<li><a href="learn/socialmedia.html"><i class="fas fa-hashtag"></i> Social Media</a></li>
<li><a href="learn/cyberanalyst.html"><i class="fas fa-shield-alt"></i> Cyber Analyst</a></li>
</ul>
</div>
<div class="col-lg-2 col-md-4 col-6">
<h5 class="footer-title">
<i class="fas fa-link" style="margin-right: 8px;"></i>Quick Links
</h5>
<ul class="footer-links">
<li><a href="index.html">Home</a></li>
<li><a href="index.html#about">About Us</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="index.html#work">Portfolio</a></li>
<li><a href="src/contact.html">Contact</a></li>
<li><a href="#careers">Careers</a></li>
<li><a href="blogListing.html">Blog</a></li>
</ul>
</div>
<div class="col-lg-4 col-md-4">
<h5 class="footer-title">
<i class="fas fa-envelope" style="margin-right: 8px;"></i>Get In Touch
</h5>
<div class="contact-info">
<div class="contact-item">
<i class="fas fa-envelope"></i>
<a href="mailto:info@growcraft.com">info@growcraft.com</a>
</div>
<div class="contact-item">
<i class="fas fa-phone"></i>
<a href="tel:+919999999999">+91 999 999 999</a>
</div>
<div class="contact-item">
<i class="fas fa-map-marker-alt"></i>
<span>ABC Street, XYZ City, India</span>
</div>
</div>
</div>
</div>
</div>
<div class="footer-bottom">
<div class="container">
<div class="row align-items-center py-3">
<div class="col-md-6">
<p class="copyright">© 2024 <strong>GrowCraft</strong>. All rights reserved.</p>
</div>
<div class="col-md-6">
<div class="footer-nav">
<a href="#privacy">Privacy</a>
<a href="#terms">Terms</a>
<a href="#sitemap">Sitemap</a>
</div>
</div>
</div>
</div>
</div>
</footer>
<div id="footer-placeholder"></div>
<script>
fetch('src/components/footer.html')
.then(response => response.text())
.then(data => {
document.getElementById('footer-placeholder').innerHTML = data;
});
</script>
<script src="src/blogView.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="src/darkMode.js"></script>
<script src="components/footer.js"></script>
<script>
// ✅ 2. INITIALIZED AOS
AOS.init({
duration: 800,
once: true,
offset: 50,
});
</script>
</body>
</html>