-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathindex.html
More file actions
197 lines (175 loc) · 6.55 KB
/
index.html
File metadata and controls
197 lines (175 loc) · 6.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DevBlog | Home</title>
<!-- Bootstrap -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<!-- FontAwesome -->
<script
src="https://kit.fontawesome.com/6dc5a29a27.js"
crossorigin="anonymous"
></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/style/style.css" />
<!-- Scrollbar Styling -->
<style>
/* Webkit Browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background-color: #4a90e2; /* theme accent color */
border-radius: 4px;
border: 2px solid #f1f1f1;
}
::-webkit-scrollbar-thumb:hover {
background-color: #357ab7; /* darker on hover */
}
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #4a90e2 #f1f1f1;
}
</style>
</head>
<body>
<!-- Navbar placeholder -->
<div id="navbar-placeholder"></div>
<!-- Hero Section -->
<header class="hero-section text-center text-white">
<div class="container">
<h1 class="display-3 font-weight-bold">The Heaven for Bloggers</h1>
<p class="lead">
iBlog lets you submit articles. After approval, your content gets
published with good reach!
</p>
<a href="404.html" class="btn btn-lg btn-light">Start Writing</a>
</div>
</header>
<!-- Articles Section -->
<div class="container my-5">
<h2 class="text-center mb-5 featured">Featured Articles</h2>
<div class="row" id="articleList">
<!-- Article 1 -->
<div class="col-lg-3 col-md-6 mb-4 article-item">
<div class="card h-100 shadow-sm">
<img src="assets/img/1.png" class="card-img-top" alt="Kubernetes" />
<div class="card-body d-flex flex-column">
<h5 class="card-title">
<a href="blogpost.html">Migrate your Kubernetes (AKS → EKS)</a>
</h5>
<p class="card-text text-muted">Developer 101</p>
<p class="card-text"><small>07 Jan | 6 min read</small></p>
<a href="blogpost.html" class="btn btn-outline-primary mt-auto"
>Read More</a
>
</div>
</div>
</div>
<!-- Article 2 -->
<div class="col-lg-3 col-md-6 mb-4 article-item">
<div class="card h-100 shadow-sm">
<img src="assets/img/2.png" class="card-img-top" alt="Linux" />
<div class="card-body d-flex flex-column">
<h5 class="card-title"><a href="blogpost.html">Master Linux</a></h5>
<p class="card-text text-muted">Linux-King 123</p>
<p class="card-text"><small>08 Jan | 5 min read</small></p>
<a href="blogpost.html" class="btn btn-outline-primary mt-auto"
>Read More</a
>
</div>
</div>
</div>
<!-- Article 3 -->
<div class="col-lg-3 col-md-6 mb-4 article-item">
<div class="card h-100 shadow-sm">
<img src="assets/img/1.png" class="card-img-top" alt="CSS Centering" />
<div class="card-body d-flex flex-column">
<h5 class="card-title">
<a href="blogpost.html">Ultimate Guide to Center a Div</a>
</h5>
<p class="card-text text-muted">WebD68</p>
<p class="card-text"><small>10 Jan | 10 min read</small></p>
<a href="blogpost.html" class="btn btn-outline-primary mt-auto"
>Read More</a
>
</div>
</div>
</div>
<!-- Article 4 -->
<div class="col-lg-3 col-md-6 mb-4 article-item">
<div class="card h-100 shadow-sm">
<img src="assets/img/11.svg" class="card-img-top" alt="HTML" />
<div class="card-body d-flex flex-column">
<h5 class="card-title">
<a href="blogpost.html">Is HTML a Programming Language?</a>
</h5>
<p class="card-text text-muted">Developer MythBuster</p>
<p class="card-text"><small>10 Jan | 6 min read</small></p>
<a href="blogpost.html" class="btn btn-outline-primary mt-auto"
>Read More</a
>
</div>
</div>
</div>
</div>
<!-- No Results Message -->
<p id="noResults" class="text-center text-muted mt-4" style="display: none;">
No articles found.
</p>
</div>
<!-- Footer -->
<footer class="text-center mt-5 py-3 bg-light shadow-sm">
<p class="mb-0">© 2025 DevBlog. All rights reserved.</p>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<!-- Navbar + Search JS -->
<script>
fetch("templates/navbar.html")
.then((response) => response.text())
.then((data) => {
const navbar = document.getElementById("navbar-placeholder");
navbar.innerHTML = data;
const searchInput = document.getElementById("searchInput");
const noResults = document.getElementById("noResults");
if (searchInput) {
searchInput.addEventListener("keyup", function () {
const filter = this.value.toLowerCase();
const articles = document.querySelectorAll(".article-item");
let found = 0;
articles.forEach((article) => {
const text = article.textContent.toLowerCase();
if (text.includes(filter)) {
article.style.display = "";
found++;
} else {
article.style.display = "none";
}
});
noResults.style.display = found === 0 ? "block" : "none";
});
searchInput.addEventListener("keydown", (e) => {
if (e.key === "Escape") {
searchInput.value = "";
document
.querySelectorAll(".article-item")
.forEach((a) => (a.style.display = ""));
noResults.style.display = "none";
}
});
}
});
</script>
</body>
</html>