refactor: update pages and assets example
Diff
public/404.html | 17 +++++++++++++++++
public/50x.html | 17 +++++++++++++++++
public/assets/main.css | 14 ++++++++++++--
public/assets/main.js | 2 +-
public/index.html | 8 +++++---
5 files changed, 52 insertions(+), 6 deletions(-)
@@ -6,6 +6,23 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>404 Not Found</title>
<style>
body {
font-family: sans-serif;
color: black;
text-align: center;
font-size: 1.25rem;
}
h1 a {
text-decoration: none;
color: black;
}
a {
color: #0366d6;
}
</style>
</head>
<body>
@@ -6,6 +6,23 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>50x Service Unavailable</title>
<style>
body {
font-family: sans-serif;
color: black;
text-align: center;
font-size: 1.25rem;
}
h1 a {
text-decoration: none;
color: black;
}
a {
color: #0366d6;
}
</style>
</head>
<body>
@@ -1,5 +1,15 @@
body {
font-family: Arial, Helvetica, sans-serif;
color: slategray;
font-family: sans-serif;
color: black;
text-align: center;
font-size: 1.2rem;
}
h1 a {
text-decoration: none;
color: black;
}
a {
color: #0366d6;
}
@@ -1 +1 @@
(() => console.log("Hello world!"))()
(() => console.log("Static Web Server running!"))()
@@ -5,14 +5,16 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>My awesome static web page!</title>
<title>Static Web Server - A blazing fast static files-serving web server powered by Rust Iron.</title>
<link rel="stylesheet" href="/assets/main.css">
<link rel="shortcut icon" href="/assets/favicon.ico">
</head>
<body>
<p>My awesome static web page!</p>
<h1>Static Web Server</h1>
<p>A blazing fast static files-serving web server powered by <a href="https://github.com/iron/iron"
target="_blank">Rust Iron</a>.</p>
<p><a href="https://github.com/joseluisq/static-web-server/" target="_blank">View on GitHub</a></p>
<script src="/assets/main.js"></script>
</body>