This PR contains the work done to support the static files serving for the **Website** service, and also included the essential boilerplate assets from the **HTML5 boilerplate** project. To provide further details about the work done: * Serving: Added the `FileMiddleware` middlewqare to the router; `path`, `server name`, and `log level` now read from config with defaults. * Library: Added the `StaticFile` enumeration with a `contentType` property, plus typed config-key/value constants and the `Configuration` dependency on WebsiteCore. * Assets: Added the **HTML5 boilerplate** (HTML, CSS, JS, icons, manifest, robots) to the *Resources/Static* folder. * Docker: Stage the Resources directory as read-only. * Tests: Added a test plan, and a shared Xcode scheme. Reviewed-on: rock-n-code/loud-amsterdam#3 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
63 lines
1.0 KiB
HTML
63 lines
1.0 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Page Not Found</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<style>
|
|
* {
|
|
line-height: 1.2;
|
|
margin: 0;
|
|
}
|
|
|
|
html {
|
|
color: #888;
|
|
display: table;
|
|
font-family: sans-serif;
|
|
height: 100%;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
|
|
body {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
margin: 2em auto;
|
|
}
|
|
|
|
h1 {
|
|
color: #555;
|
|
font-size: 2em;
|
|
font-weight: 400;
|
|
}
|
|
|
|
p {
|
|
margin: 0 auto;
|
|
width: 280px;
|
|
}
|
|
|
|
@media only screen and (max-width: 280px) {
|
|
|
|
body,
|
|
p {
|
|
width: 95%;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.5em;
|
|
margin: 0 0 0.3em;
|
|
}
|
|
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<h1>Page Not Found</h1>
|
|
<p>Sorry, but the page you were trying to view does not exist.</p>
|
|
</body>
|
|
|
|
</html>
|
|
<!-- IE needs 512+ bytes: https://docs.microsoft.com/archive/blogs/ieinternals/friendly-http-error-pages -->
|