mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-06 12:45:18 +02:00
🔬 test(spa): temporary removes spa
This commit is contained in:
27
index.html
27
index.html
@@ -50,33 +50,6 @@
|
|||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<title>Snigdha OS - Advanced Penetration Testing Distribution</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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@@ -1,24 +1,70 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="UTF-8">
|
||||||
<title>Snigdha OS</title>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<script type="text/javascript">
|
<meta name="description" content="Oops! The page you're looking for cannot be found.">
|
||||||
// Single Page Apps for GitHub Pages
|
<title>404 - Page Not Found | Snigdha OS</title>
|
||||||
// MIT License
|
<!-- Google Fonts -->
|
||||||
// https://github.com/rafgraph/spa-github-pages
|
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;600&display=swap" rel="stylesheet">
|
||||||
var pathSegmentsToKeep = 1;
|
<!-- Styles -->
|
||||||
|
<style>
|
||||||
var l = window.location;
|
body {
|
||||||
l.replace(
|
margin: 0;
|
||||||
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
|
padding: 0;
|
||||||
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
|
font-family: 'Fira Sans', sans-serif;
|
||||||
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
|
display: flex;
|
||||||
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
|
align-items: center;
|
||||||
l.hash
|
justify-content: center;
|
||||||
);
|
height: 100vh;
|
||||||
</script>
|
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>
|
</head>
|
||||||
<body>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
Reference in New Issue
Block a user