@asafarim/simple-md-viewer
Version:
A professional markdown viewer with file tree navigation, directory content browsing, and advanced YAML front matter support
92 lines (91 loc) • 2.48 kB
HTML
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>Page Not Found</title>
<script>
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
(function(l) {
if (l.search[1] === '/' ) {
var decoded = l.search.slice(1).split('&').map(function(s) {
return s.replace(/~and~/g, '&')
}).join('?');
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location))
</script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: #f8f9fa;
color: #333;
text-align: center;
padding: 40px 20px;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
}
.container {
max-width: 600px;
background-color: white;
border-radius: 8px;
padding: 30px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
h1 {
color: #4a6cf7;
margin-top: 0;
}
.message {
font-size: 18px;
line-height: 1.6;
margin: 20px 0;
}
.home-link {
display: inline-block;
background-color: #4a6cf7;
color: white;
text-decoration: none;
padding: 12px 24px;
border-radius: 4px;
font-weight: 500;
margin-top: 20px;
transition: background-color 0.2s ease;
}
.home-link:hover {
background-color: #3a5cd7;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #1e1e1e;
color: #e0e0e0;
}
.container {
background-color: #252526;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.home-link:hover {
background-color: #5a6ce7;
}
}
</style>
</head>
<body>
<div class="container">
<h1>404 - Page Not Found</h1>
<div class="message">
The page or file you were looking for could not be found. It might have been moved, renamed, or deleted.
</div>
<a href="./" class="home-link">Go to Homepage</a>
</div>
</body>
</html>