-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.html
More file actions
451 lines (421 loc) · 21 KB
/
blog.html
File metadata and controls
451 lines (421 loc) · 21 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
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Same head as index.html -->
<title>Blog | TheGreatTech</title>
<meta name="description" content="Latest articles on web development, technology trends, and business insights from TheGreatTech team.">
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="assets/images/greattech_logo.svg">
<!-- Bootstrap 5 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- AOS Animation -->
<!-- <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet"> -->
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="assets/css/animations.css">
</head>
<body>
<!-- Same preloader and navigation as index.html -->
<div class="preloader">
<div class="loader">
<img src="assets/images/greattech_logo.svg" alt="TheGreatTech Logo">
<div class="loading-bar"></div>
</div>
</div>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="index.html">
<img src="assets/images/greattech_logo_white.svg" alt="TheGreatTech Logo" height="30">
<!-- <span>TheGreatTech</span> -->
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link " href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link" href="about.html">About</a></li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="servicesDropdown"
data-bs-toggle="dropdown" aria-expanded="false">Services<i
class="fas fa-chevron-down small ms-1 "></i></a>
<div class="dropdown-menu ">
<a class="dropdown-item" href="services.html#web">Web Development</a>
<a class="dropdown-item" href="services.html#mobile">Mobile Apps</a>
<a class="dropdown-item" href="services.html#cloud">Cloud Solutions</a>
<a class="dropdown-item" href="services.html#ai">AI Integration</a>
</div>
</li>
<li class="nav-item"><a class="nav-link" href="portfolio.html">Portfolio</a></li>
<li class="nav-item"><a class="nav-link active" href="blog.html">Blog</a></li>
<li class="nav-item"><a class="nav-link" href="careers.html">Careers</a></li>
<li class="nav-item"><a class="nav-link" href="contact.html">Contact</a></li>
<li class="nav-item"><a class="nav-link btn btn-primary" href="contact.html#quote">Get Quote</a></li>
</ul>
</div>
</div>
</nav>
<!-- Blog Hero -->
<header class="page-hero blog-hero">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-8 mx-auto text-center" data-aos="fade-up">
<h1>TheGreatTech Blog</h1>
<p class="lead">Insights, tutorials, and industry news from our team of experts</p>
<div class="blog-search">
<form id="blog-search-form">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search articles...">
<button class="btn btn-primary" type="submit"><i class="fas fa-search"></i></button>
</div>
</form>
</div>
</div>
</div>
</div>
</header>
<!-- Blog Content -->
<section class="section blog-content">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="blog-posts" id="blog-posts-container">
<!-- Blog posts loaded via AJAX from blog-posts.json -->
</div>
<div class="blog-pagination" data-aos="fade-up">
<nav aria-label="Blog pagination">
<ul class="pagination justify-content-center">
<li class="page-item disabled">
<a class="page-link" href="#" tabindex="-1">Previous</a>
</li>
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
<a class="page-link" href="#">Next</a>
</li>
</ul>
</nav>
</div>
</div>
<div class="col-lg-4">
<div class="blog-sidebar" data-aos="fade-left">
<!-- About Widget -->
<div class="sidebar-widget">
<h3>About The Blog</h3>
<p>Our blog features articles on web development, technology trends, business strategies, and insights from our team of experts.</p>
<a href="about.html" class="btn btn-sm btn-outline-primary">About Our Company</a>
</div>
<!-- Categories Widget -->
<div class="sidebar-widget">
<h3>Categories</h3>
<ul class="category-list" id="blog-categories">
<!-- Loaded from JSON -->
</ul>
</div>
<!-- Popular Posts -->
<div class="sidebar-widget">
<h3>Popular Articles</h3>
<div class="popular-posts" id="popular-posts">
<!-- Loaded from JSON -->
</div>
</div>
<!-- Tags Widget -->
<div class="sidebar-widget">
<h3>Tags</h3>
<div class="tag-cloud" id="tag-cloud">
<!-- Loaded from JSON -->
</div>
</div>
<!-- Newsletter Widget -->
<div class="sidebar-widget">
<h3>Subscribe</h3>
<p>Get the latest articles delivered to your inbox.</p>
<form action="index.html#subsc" class="sidebar-newsletter">
<!-- <div class="form-group">
<input type="email" class="form-control" placeholder="Your email" required>
</div> -->
<button class="btn btn-primary btn-block">Subscribe</button>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Same CTA and footer as index.html -->
<!-- CTA Section -->
<section class="section cta">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-8" data-aos="fade-right">
<h2>Ready to Transform Your Business?</h2>
<p class="mb-0">Get started with a free consultation and quote for your project.</p>
</div>
<div class="col-lg-4 text-lg-end" data-aos="fade-left">
<a href="contact.html#quote" class="btn btn-light btn-lg">Get Free Quote</a>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-lg-4 footer-about">
<img src="assets/images/greattech_logo_white.svg" alt="TheGreatTech Logo" height="40">
<p>Providing affordable, high-quality digital solutions since 2023. Helping businesses establish and
grow their online presence.</p>
<div class="social-links">
<!-- <a href="https://wa.me/917889528326"><i class="fab fa-facebook-f"></i></a> -->
<a href="https://wa.me/917889528326"><i class="fab fa-whatsapp"></i></a>
<!-- <a href="https://wa.me/917889528326"><i class="fab fa-linkedin-in"></i></a> -->
<!-- <a href="https://wa.me/917889528326"><i class="fab fa-instagram"></i></a> -->
<a href="https://github.com/TheGreatTech"><i class="fab fa-github"></i></a>
</div>
</div>
<div class="col-lg-2 footer-links">
<h3>Quick Links</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a href="blog.html">Blog</a></li>
</ul>
</div>
<div class="col-lg-3 footer-links">
<h3>Services</h3>
<ul>
<li><a href="services.html#web">Web Development</a></li>
<li><a href="services.html#mobile">Mobile Applications</a></li>
<li><a href="services.html#cloud">Cloud Solutions</a></li>
<li><a href="services.html#ai">AI Integration</a></li>
<li><a href="services.html#support">Support & Maintenance</a></li>
</ul>
</div>
<div class="col-lg-3 footer-contact">
<h3>Contact Us</h3>
<ul>
<li><i class="fas fa-map-marker-alt"></i> BEERWAH BUDGAM J&K</li>
<li><i class="fas fa-phone"></i> +91 7889528326</li>
<li><i class="fas fa-envelope"></i> thegreattechofficial@gmail.com</li>
</ul>
<a href="contact.html" class="btn btn-outline-light">Contact Form</a>
</div>
</div>
<hr>
<div class="footer-bottom">
<div class="row">
<div class="col-md-6">
<p>© 2023 TheGreatTech. All rights reserved.</p>
</div>
<div class="col-md-6 text-md-end">
<a href="privacy.html">Privacy Policy</a> |
<a href="terms.html">Terms of Service</a> |
<a href="cookies.html">Cookie Policy</a>
</div>
</div>
</div>
</div>
</footer>
<!-- Back to Top -->
<a href="#" class="back-to-top"><i class="fas fa-arrow-up"></i></a>
<!-- Scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/form-handler.js"></script>
<script src="assets/js/blog-loader.js"></script>
<script>
// Initialize AOS animation
// AOS.init({
// duration: 800,
// easing: 'ease-in-out',
// once: true
// });
// Load services data
$(document).ready(function() {
$.getJSON('data/services.json', function(data) {
let servicesHtml = '';
data.slice(0, 3).forEach(service => {
servicesHtml += `
<div class="col-md-4" data-aos="fade-up" data-aos-delay="${service.id * 100}">
<div class="service-card">
<div class="service-icon">
<i class="${service.icon}"></i>
</div>
<h3>${service.title}</h3>
<p>${service.description}</p>
<a href="services.html#${service.id}" class="read-more">Learn more <i class="fas fa-arrow-right"></i></a>
</div>
</div>
`;
});
$('#services-container').html(servicesHtml);
});
// Load testimonials
$.getJSON('data/testimonials.json', function(data) {
let testimonialsHtml = '';
data.forEach(testimonial => {
testimonialsHtml += `
<div class="col-md-4" data-aos="fade-up" data-aos-delay="${testimonial.id * 100}">
<div class="testimonial-card">
<div class="testimonial-content">
<p>"${testimonial.content}"</p>
</div>
<div class="testimonial-author">
<img src="${testimonial.avatar}" alt="${testimonial.name}">
<div>
<h4>${testimonial.name}</h4>
<span>${testimonial.position}, ${testimonial.company}</span>
</div>
</div>
</div>
</div>
`;
});
$('#testimonials-container').html(testimonialsHtml);
});
// Load blog preview
$.getJSON('data/blog-posts.json', function(data) {
let blogHtml = '';
data.slice(0, 3).forEach(post => {
blogHtml += `
<div class="col-md-4" data-aos="fade-up" data-aos-delay="${post.id * 100}">
<div class="blog-card">
<div class="blog-image">
<img src="${post.image}" alt="${post.title}" class="img-fluid">
<div class="blog-date">${post.date}</div>
</div>
<div class="blog-content">
<h3><a href="blog-single.html?id=${post.id}">${post.title}</a></h3>
<p>${post.excerpt}</p>
<a href="blog-single.html?id=${post.id}" class="read-more">Read More <i class="fas fa-arrow-right"></i></a>
</div>
</div>
</div>
`;
});
$('#blog-preview-container').html(blogHtml);
});
});
</script>
<!-- Additional script for blog loading -->
<script src="assets/js/blog-loader.js"></script>
<script>
$(document).ready(function() {
// Store all blog posts for filtering
let allBlogPosts = [];
// Load blog posts
$.getJSON('data/blog-posts.json', function(data) {
allBlogPosts = data;
renderBlogPosts(data);
// Load categories
let categories = [...new Set(data.map(post => post.category))];
let categoriesHtml = '';
categories.forEach(category => {
categoriesHtml += `<li><a href="#" data-category="${category.toLowerCase()}" class="category-filter">${category}</a></li>`;
});
$('#blog-categories').html(categoriesHtml);
// Load popular posts (most commented)
let popularPosts = [...data].sort((a, b) => b.comments - a.comments).slice(0, 3);
let popularHtml = '';
popularPosts.forEach(post => {
popularHtml += `
<div class="popular-post">
<img src="${post.image}" alt="${post.title}">
<div>
<h4><a href="blog-single.html?id=${post.id}">${post.title}</a></h4>
<span>${post.date}</span>
</div>
</div>
`;
});
$('#popular-posts').html(popularHtml);
// Load tags
let allTags = [];
data.forEach(post => {
allTags = [...allTags, ...post.tags];
});
let uniqueTags = [...new Set(allTags)];
let tagsHtml = '';
uniqueTags.forEach(tag => {
tagsHtml += `<a href="#" data-tag="${tag.toLowerCase()}" class="tag-filter">${tag}</a>`;
});
$('#tag-cloud').html(tagsHtml);
});
// Function to render blog posts
function renderBlogPosts(posts) {
let blogHtml = '';
if (posts.length > 0) {
posts.forEach(post => {
blogHtml += `
<div class="blog-post" data-aos="fade-up">
<div class="post-image">
<img src="${post.image}" alt="${post.title}" class="img-fluid">
<div class="post-date">${post.date}</div>
</div>
<div class="post-content">
<div class="post-meta">
<span><i class="fas fa-folder"></i> ${post.category}</span>
<span><i class="fas fa-user"></i> By ${post.author}</span>
<span><i class="fas fa-comments"></i> ${post.comments} Comments</span>
</div>
<h2><a href="blog-single.html?id=${post.id}">${post.title}</a></h2>
<p>${post.excerpt}</p>
<a href="blog-single.html?id=${post.id}" class="read-more">Read More <i class="fas fa-arrow-right"></i></a>
</div>
</div>
`;
});
} else {
blogHtml = '<div class="no-results"><p>No articles found matching your criteria.</p></div>';
}
$('#blog-posts-container').html(blogHtml);
}
// Handle search
$('#blog-search-form').submit(function(e) {
e.preventDefault();
const query = $(this).find('input').val().trim().toLowerCase();
if (query === '') {
renderBlogPosts(allBlogPosts);
return;
}
const results = allBlogPosts.filter(post =>
post.title.toLowerCase().includes(query) ||
post.content.toLowerCase().includes(query) ||
post.excerpt.toLowerCase().includes(query) ||
post.tags.some(tag => tag.toLowerCase().includes(query)) ||
post.category.toLowerCase().includes(query)
);
renderBlogPosts(results);
});
// Handle category filter
$(document).on('click', '.category-filter', function(e) {
e.preventDefault();
const category = $(this).data('category');
const results = allBlogPosts.filter(post =>
post.category.toLowerCase() === category
);
renderBlogPosts(results);
});
// Handle tag filter
$(document).on('click', '.tag-filter', function(e) {
e.preventDefault();
const tag = $(this).data('tag');
const results = allBlogPosts.filter(post =>
post.tags.some(postTag => postTag.toLowerCase() === tag)
);
renderBlogPosts(results);
});
});
</script>
</body>
</html>