Skip to content

Commit a97684e

Browse files
committed
enhance: made some ui enhancements
1 parent 04046e8 commit a97684e

File tree

5 files changed

+58
-30
lines changed

5 files changed

+58
-30
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ languageCode = 'en-us'
33
title = 'OMAR.A'
44

55

6-
paginate = 4
6+
paginate = 10
77

88
[params]
99
description = "My Tech Blog"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a href="{{ .Destination | safeURL }}" class="lightbox-image current gallery">
1+
<a href="{{ .Destination | safeURL }}" class="lightbox-image current gallery md-img__a">
22
<img class='md-img' src="{{ .Destination | safeURL }}" {{- with .Text }} alt="{{ . }}" {{ end -}} {{- with .Title }}
33
title="{{ . }}" {{ end -}}>
44
</a>

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap"
1212
rel="stylesheet">
1313
<link rel="stylesheet" href="/styles/style.css">
14-
<link rel="icon" href="/images/favicon.png" />
14+
<link rel="icon" href="/images/avatar.webp" />
1515
<title>{{ .Title }}</title>
1616
</head>
1717

layouts/partials/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</div>
77

88
<div class="social">
9-
<a href="{{ .Site.Params.social.linkedin }}" title="LinkedIn">
9+
<a href="{{ .Site.Params.social.linkedin }}" title="LinkedIn" target="_blank">
1010
<svg height="20" width="20" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"
1111
version="1.1" viewBox="0 0 512 512" width="100%" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
1212
xmlns:serif="http://www.serif.com/" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -27,7 +27,7 @@
2727
</svg>
2828
</a>
2929

30-
<a href="{{ .Site.Params.social.github }}" title="GitHub">
30+
<a href="{{ .Site.Params.social.github }}" title="GitHub" target="_blank">
3131
<svg enable-background="new -1163 1657.697 56.693 56.693" height="20" width="20" id="Layer_1" version="1.1"
3232
viewBox="-1163 1657.697 56.693 56.693" width="56.693px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"
3333
xmlns:xlink="http://www.w3.org/1999/xlink">

static/styles/style.css

Lines changed: 53 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ body {
1717
font-size: 16px;
1818
}
1919

20-
body.light{
20+
body.light {
2121
--bg: #dee4eb;
2222
--text: #1a2237;
2323
}
@@ -55,6 +55,7 @@ a {
5555
position: sticky;
5656
top: 0;
5757
background-color: var(--bg);
58+
flex-wrap: wrap;
5859
}
5960

6061
.logo {
@@ -165,7 +166,7 @@ a {
165166
font-size: 14px;
166167
}
167168

168-
.pagination{
169+
.pagination {
169170
display: flex;
170171
gap: 10px;
171172
list-style: none;
@@ -176,7 +177,7 @@ a {
176177
margin-bottom: 30px;
177178
}
178179

179-
.page-item{
180+
.page-item {
180181
border: 1px solid gray;
181182
width: 30px;
182183
height: 30px;
@@ -186,11 +187,12 @@ a {
186187
border-radius: 5px;
187188
}
188189

189-
.page-item.active{
190+
.page-item.active {
190191
background-color: var(--text);
191192
color: var(--bg);
192193
}
193-
.page-item.disabled{
194+
195+
.page-item.disabled {
194196
background-color: #313845;
195197
cursor: not-allowed;
196198
}
@@ -226,6 +228,7 @@ a {
226228
display: flex;
227229
align-items: center;
228230
gap: 20px;
231+
flex-wrap: wrap;
229232
}
230233

231234
.single-avatar {
@@ -251,9 +254,10 @@ a {
251254

252255
.single-bottom {
253256
display: flex;
254-
justify-content: space-between;
257+
justify-content: center;
255258
gap: 50px;
256259
margin-top: 50px;
260+
max-width: 1136px !important;
257261
}
258262

259263
.single-content {
@@ -269,11 +273,6 @@ a {
269273
margin: 20px 0px;
270274
}
271275

272-
.single-content img {
273-
width: 100%;
274-
object-fit: cover;
275-
}
276-
277276
.single-content pre {
278277
width: 100%;
279278
overflow-x: scroll;
@@ -282,21 +281,47 @@ a {
282281

283282
/* SINGLE END */
284283

284+
285+
/* Markdown Styles START */
286+
287+
.md-img__a {
288+
display: flex;
289+
justify-content: center;
290+
}
291+
292+
.md-img {
293+
display: block;
294+
width: 100%;
295+
border-radius: 15px;
296+
box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
297+
border: 1px solid rgba(0, 0, 0, .5);
298+
max-width: 850px;
299+
height: auto;
300+
box-sizing: border-box;
301+
}
302+
303+
304+
/* Markdown Styles END */
305+
306+
285307
@media (max-width: 1536px) {
286308
.container {
287309
max-width: 1366px;
288310
}
289311
}
312+
290313
@media (max-width: 1366px) {
291314
.container {
292315
max-width: 1280px;
293316
}
294317
}
318+
295319
@media (max-width: 1280px) {
296320
.container {
297321
max-width: 1024px;
298322
}
299323
}
324+
300325
@media (max-width: 1024px) {
301326
.container {
302327
max-width: 768px;
@@ -312,33 +337,36 @@ a {
312337
flex-direction: column-reverse;
313338
}
314339
}
340+
315341
@media (max-width: 768px) {
316342
.container {
317343
max-width: 640px;
318344
}
345+
319346
.links {
320347
font-size: 14px;
321348
}
322349

323350
.list-Item__image {
324351
display: none;
325352
}
326-
}
327-
@media (max-width: 640px) {
328-
.container {
329-
max-width: 475px;
330-
}
331-
}
332353

354+
.links a {
355+
display: none;
356+
}
333357

334-
/* Markdown Styles START */
358+
.md-img {
359+
max-width: 100%;
360+
width: auto;
361+
}
335362

336-
.md-img {
337-
display: block;
338-
max-width: 100%;
339-
box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
340-
border: 1px solid rgba(0, 0, 0, .5);
341-
border-radius: 15px;
363+
.single-head__title {
364+
font-size: 20px;
365+
}
342366
}
343367

344-
/* Markdown Styles END */
368+
@media (max-width: 640px) {
369+
.container {
370+
max-width: 475px;
371+
}
372+
}

0 commit comments

Comments
 (0)