Merged server and client code into single repo

This commit is contained in:
Blboun3
2024-01-16 09:56:01 +01:00
parent 6884c6cee1
commit 2c96daefbc
13 changed files with 868 additions and 0 deletions

61
server/public/404.html Normal file
View File

@ -0,0 +1,61 @@
<!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>

16
server/public/index.html Normal file
View File

@ -0,0 +1,16 @@
<!doctype html>
<html lang="">
<head>
<meta charset="utf-8">
<title>Pico HTTP server</title>
<meta name="description" content="This is a very simple HTTP server for Unix, using fork(). It's very easy to use.">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Hello world!</h1>
</body>
</html>

5
server/public/robots.txt Normal file
View File

@ -0,0 +1,5 @@
# www.robotstxt.org/
# Allow crawling of all content
User-agent: *
Disallow: