Skip to content

Commit 2c69db2

Browse files
authored
Merge pull request #1296 from Shriharsh-Deshmukh/patch-1
Fix: Blog Page is not working #1285
2 parents 8cbea3b + fd7a1ab commit 2c69db2

File tree

2 files changed

+57
-32
lines changed

2 files changed

+57
-32
lines changed

pages/blog.html

Lines changed: 52 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<div class="loader"></div>
2323
</div>
2424
</div>
25+
2526
<style>
2627
#preloader {
2728
position: fixed;
@@ -35,55 +36,77 @@
3536
align-items: center;
3637
z-index: 9999;
3738
}
38-
39-
/* Loader and Logo Wrapper */
39+
40+
/* Wrapper */
4041
.loader-wrapper {
4142
position: relative;
4243
display: flex;
4344
justify-content: center;
4445
align-items: center;
4546
}
46-
47-
/* Logo styling */
47+
48+
/* Logo */
4849
.logo {
49-
width: 100px;
50-
/* Adjust the size to your preference */
50+
width: 100px; /* Size */
5151
height: auto;
52-
z-index: 2;
53-
/* Ensure the logo appears above the spinner */
52+
z-index: 2; /* Above */
5453
animation: fadeIn 2s ease forwards;
5554
}
56-
57-
/* Fixed Diamond-shaped spinner with rotating color */
55+
56+
/* Spinner */
5857
.loader {
5958
width: 120px;
6059
height: 120px;
6160
background-color: transparent;
6261
border: 10px solid transparent;
63-
/* Transparent border for all sides */
64-
border-top: 10px solid #b0b0b0;
65-
/* Lighter gray border */
66-
border-right: 10px solid #404040;
67-
/* Darker gray (black) border */
62+
border-top: 10px solid #b0b0b0; /* Light */
63+
border-right: 10px solid #404040; /* Dark */
6864
border-radius: 10px;
6965
position: absolute;
70-
transform: rotate(45deg);
71-
/* Rotate the square to create a diamond shape */
72-
animation: spinColor 1.5s linear infinite;
73-
/* Only color will spin */
74-
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
75-
/* Subtle shadow for depth */
66+
transform: rotate(45deg); /* Diamond */
67+
animation: spinColor 1.5s linear infinite; /* Spin */
68+
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); /* Shadow */
7669
}
77-
/* @media(max-width: 500px){
78-
.ways-content h1{
79-
font-size: 0.5rem !important;
70+
71+
/* Fade */
72+
@keyframes fadeIn {
73+
0% {
74+
opacity: 0;
75+
transform: translateY(-20px);
8076
}
81-
.footer-section{
82-
margin: 0 !important;
77+
100% {
78+
opacity: 1;
79+
transform: translateY(0);
8380
}
84-
} */
85-
86-
81+
}
82+
83+
/* Spin Color */
84+
@keyframes spinColor {
85+
0% {
86+
border-top-color: #b0b0b0;
87+
border-right-color: #404040;
88+
}
89+
50% {
90+
border-top-color: #404040;
91+
border-right-color: #b0b0b0;
92+
}
93+
100% {
94+
border-top-color: #b0b0b0;
95+
border-right-color: #404040;
96+
}
97+
}
98+
</style>
99+
100+
<script>
101+
// Load
102+
window.addEventListener('load', function () {
103+
// Timeout
104+
setTimeout(function () {
105+
document.getElementById('preloader').style.display = 'none';
106+
}, 2000); // 2 seconds
107+
});
108+
</script>
109+
87110
<div id="progressBarContainer">
88111
<div id="progressBar"></div>
89112
</div>

styles/styles.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,10 +682,12 @@ body.dark-mode .navbar-link:hover {
682682
}
683683

684684
.footer-logo {
685-
width: 275px;
686-
height: 130px;
687-
685+
width: auto;
686+
height: 73px;
687+
688688
cursor: pointer;
689+
padding-left: 20px;
690+
padding-top: 40px;
689691
}
690692

691693
.footer-section {

0 commit comments

Comments
 (0)