diff --git a/Cargo.toml b/Cargo.toml index 8a96b54..f0483af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,9 +1,10 @@ [package] name = "http-server" -version = "0.6.0" +version = "0.7.0" authors = ["Damjan Georgievski "] license = "MIT" readme = "README.md" +homepage = "https://github.com/gdamjan/http-server-rs" [dependencies] actix-web = "0.7" diff --git a/src/style.css b/src/style.css index 640ffb5..ba79082 100644 --- a/src/style.css +++ b/src/style.css @@ -1,4 +1,6 @@ -body {background-color: white} +body {background-color: #282f34; color: #aeb9a6; font-family:monospace; font-size:10.5pt;} +a { color: #adad9d; } +footer a {color: darkgray; text-decoration: none;} h1 {margin-bottom: 0} table td:nth-child(2) {text-align:right} table { @@ -7,6 +9,6 @@ table { padding: 0.5em 0; border-top: 1px; border-bottom: 1px; - border-color: #aaa; + border-color: #444; border-style: solid none; } diff --git a/src/web.rs b/src/web.rs index 5ffb4bb..5929cf5 100644 --- a/src/web.rs +++ b/src/web.rs @@ -60,6 +60,8 @@ fn handle_directory<'a, 'b>( writeln!(body, "").unwrap(); } writeln!(body, "").unwrap(); + writeln!(body, r#""#, + env!("CARGO_PKG_HOMEPAGE"), env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")).unwrap(); let mut html = String::new(); writeln!(html, "").unwrap();