Skip to content

Commit

Permalink
feat: Add default 404 and 500 pages
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsmith committed Oct 11, 2024
1 parent 530852a commit dec7e95
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
58 changes: 58 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Page Not Found | Pushup</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
main {
text-align: center;
background-color: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
max-width: 600px;
}
h1 {
color: #e74c3c;
font-size: 4rem;
margin-bottom: 0;
}
p {
color: #333;
font-size: 1.2rem;
}
.info {
margin-top: 2rem;
font-size: 0.9rem;
color: #666;
}
a {
color: #e74c3c;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<main>
<h1>404</h1>
<p>Oops! The page you're looking for doesn't exist.</p>
<p class="info">
Powered by <a href="https://pushup.adhoc.dev/">Pushup</a><br>
To use a custom 404 page, create a '404.up' or '404.html' file in your project's root directory.
</p>
</main>
</body>
</html>
58 changes: 58 additions & 0 deletions 500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>500 - Internal Server Error | Pushup</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
main {
text-align: center;
background-color: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
max-width: 600px;
}
h1 {
color: #3498db;
font-size: 4rem;
margin-bottom: 0;
}
p {
color: #333;
font-size: 1.2rem;
}
.info {
margin-top: 2rem;
font-size: 0.9rem;
color: #666;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<main>
<h1>500</h1>
<p>Oops! Something went wrong on our end.</p>
<p class="info">
Powered by <a href="https://pushup.adhoc.dev/">Pushup</a><br>
To use a custom 500 page, create a '500.up' or '500.html' file in your project's root directory.
</p>
</main>
</body>
</html>

0 comments on commit dec7e95

Please sign in to comment.