Skip to content

Commit ab7e479

Browse files
authored
Merge pull request #4 from shenghuo2/main
fix: remove unused image prop and loading animation bug
2 parents a6a6bf1 + 1087621 commit ab7e479

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/layouts/MainLayout.astro

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ interface Props {
77
title: string;
88
description?: string;
99
pageType?: 'index' | 'members' | 'honors';
10-
image?: string;
1110
keywords?: string;
1211
}
1312
1413
const {
1514
title,
1615
description = "Official website of N0wayBack Team",
1716
pageType = 'index',
18-
image = logo.src,
1917
keywords = "N0wayBack, CTF, Cybersecurity, Hacking, Security Research"
2018
} = Astro.props as Props;
2119
@@ -100,8 +98,8 @@ const siteUrl = "https://n0wayback.net";
10098
</script>
10199
</head>
102100
<body class="bg-primary-light dark:bg-primary-dark text-light-light dark:text-light-dark min-h-screen terminal-boot flex flex-col">
103-
<!-- Loading animation - hidden initially for SEO, shown by JavaScript -->
104-
<div id="loading-screen" class="loading-screen" style="display: none;">
101+
<!-- Loading animation - initially hidden for SEO -->
102+
<div id="loading-screen" class="loading-screen seo-hidden">
105103
<div class="loading-container">
106104
<div class="loading-logo">N0wayBack</div>
107105
<div class="loading-bar-container">
@@ -161,7 +159,7 @@ const siteUrl = "https://n0wayback.net";
161159
// Show loading screen for human visitors only
162160
const loadingScreen = document.getElementById('loading-screen');
163161
if (loadingScreen) {
164-
loadingScreen.style.display = 'block';
162+
loadingScreen.classList.remove('seo-hidden');
165163
}
166164

167165
// Enhanced terminal boot effect
@@ -354,4 +352,8 @@ const siteUrl = "https://n0wayback.net";
354352
opacity: 0;
355353
pointer-events: none;
356354
}
355+
356+
.seo-hidden {
357+
display: none;
358+
}
357359
</style>

0 commit comments

Comments
 (0)