🔬 test(spa): temporary removes spa

This commit is contained in:
eshanized
2024-12-25 10:52:18 +05:30
parent 95405bb061
commit 9f15a800fa
2 changed files with 65 additions and 46 deletions

View File

@@ -50,33 +50,6 @@
<!-- Title -->
<title>Snigdha OS - Advanced Penetration Testing Distribution</title>
<!-- Single Page Apps for GitHub Pages (SPA) Script -->
<script type="text/javascript">
(function(l) {
if (l.search && l.search.startsWith('/')) {
// Extract the search string and remove the leading slash
const originalQuery = l.search.slice(1);
// Split by '&' and process each part
const decodedParts = originalQuery
.split('&')
.filter(Boolean) // Remove empty parts
.map(part => part.replace(/~and~/g, '&')); // Replace "~and~" with "&"
// Join the parts back into a valid query string
const decodedQuery = decodedParts.join('&');
// Avoid applying the replacement if the query string is unchanged
const newUrl = `${l.pathname.slice(0, -1)}${decodedQuery ? `?${decodedQuery}` : ''}${l.hash}`;
if (newUrl !== l.href) {
window.history.replaceState(null, '', newUrl);
}
}
})(window.location);
</script>
</head>
<body>

View File

@@ -1,24 +1,70 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Snigdha OS</title>
<script type="text/javascript">
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
var pathSegmentsToKeep = 1;
var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
l.hash
);
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Oops! The page you're looking for cannot be found.">
<title>404 - Page Not Found | Snigdha OS</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;600&display=swap" rel="stylesheet">
<!-- Styles -->
<style>
body {
margin: 0;
padding: 0;
font-family: 'Fira Sans', sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #1e1e2f;
color: #ffffff;
text-align: center;
}
.container {
max-width: 600px;
}
h1 {
font-size: 5rem;
margin: 0;
color: #ff616f;
}
p {
font-size: 1.2rem;
margin: 1rem 0 2rem;
color: #d1d1e0;
}
a {
display: inline-block;
padding: 0.8rem 1.5rem;
font-size: 1rem;
font-weight: 600;
color: #ffffff;
background-color: #ff616f;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
}
a:hover {
background-color: #e0505e;
}
.logo {
margin-bottom: 2rem;
}
.logo img {
max-width: 120px;
height: auto;
}
</style>
</head>
<body>
<div class="container">
<div class="logo">
<img src="/snigdhaos-logo.png" alt="Snigdha OS Logo">
</div>
<h1>404</h1>
<p>Oops! The page you're looking for doesn't exist or has been moved.</p>
<a href="/">Go to Homepage</a>
</div>
</body>
</html>