Skip to content

Commit

Permalink
Merge pull request #1296 from Shriharsh-Deshmukh/patch-1
Browse files Browse the repository at this point in the history
Fix: Blog Page is not working #1285
  • Loading branch information
sanjay-kv authored Dec 16, 2024
2 parents 8cbea3b + fd7a1ab commit 2c69db2
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 32 deletions.
81 changes: 52 additions & 29 deletions pages/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<div class="loader"></div>
</div>
</div>

<style>
#preloader {
position: fixed;
Expand All @@ -35,55 +36,77 @@
align-items: center;
z-index: 9999;
}

/* Loader and Logo Wrapper */
/* Wrapper */
.loader-wrapper {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}

/* Logo styling */
/* Logo */
.logo {
width: 100px;
/* Adjust the size to your preference */
width: 100px; /* Size */
height: auto;
z-index: 2;
/* Ensure the logo appears above the spinner */
z-index: 2; /* Above */
animation: fadeIn 2s ease forwards;
}

/* Fixed Diamond-shaped spinner with rotating color */
/* Spinner */
.loader {
width: 120px;
height: 120px;
background-color: transparent;
border: 10px solid transparent;
/* Transparent border for all sides */
border-top: 10px solid #b0b0b0;
/* Lighter gray border */
border-right: 10px solid #404040;
/* Darker gray (black) border */
border-top: 10px solid #b0b0b0; /* Light */
border-right: 10px solid #404040; /* Dark */
border-radius: 10px;
position: absolute;
transform: rotate(45deg);
/* Rotate the square to create a diamond shape */
animation: spinColor 1.5s linear infinite;
/* Only color will spin */
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
/* Subtle shadow for depth */
transform: rotate(45deg); /* Diamond */
animation: spinColor 1.5s linear infinite; /* Spin */
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); /* Shadow */
}
/* @media(max-width: 500px){
.ways-content h1{
font-size: 0.5rem !important;

/* Fade */
@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(-20px);
}
.footer-section{
margin: 0 !important;
100% {
opacity: 1;
transform: translateY(0);
}
} */


}

/* Spin Color */
@keyframes spinColor {
0% {
border-top-color: #b0b0b0;
border-right-color: #404040;
}
50% {
border-top-color: #404040;
border-right-color: #b0b0b0;
}
100% {
border-top-color: #b0b0b0;
border-right-color: #404040;
}
}
</style>

<script>
// Load
window.addEventListener('load', function () {
// Timeout
setTimeout(function () {
document.getElementById('preloader').style.display = 'none';
}, 2000); // 2 seconds
});
</script>

<div id="progressBarContainer">
<div id="progressBar"></div>
</div>
Expand Down
8 changes: 5 additions & 3 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -682,10 +682,12 @@ body.dark-mode .navbar-link:hover {
}

.footer-logo {
width: 275px;
height: 130px;

width: auto;
height: 73px;
cursor: pointer;
padding-left: 20px;
padding-top: 40px;
}

.footer-section {
Expand Down

0 comments on commit 2c69db2

Please sign in to comment.