diff --git a/assets/logo-x64.png b/assets/logo-x64.png new file mode 100644 index 0000000..7cf8ad1 Binary files /dev/null and b/assets/logo-x64.png differ diff --git a/assets/logo.svg b/assets/logo.svg new file mode 100644 index 0000000..a9ed500 --- /dev/null +++ b/assets/logo.svg @@ -0,0 +1,28 @@ + + + +Gractwo Main Logo + + + + + + diff --git a/src/website/mod.rs b/src/website/mod.rs index 9ce8fd6..2116067 100644 --- a/src/website/mod.rs +++ b/src/website/mod.rs @@ -11,6 +11,8 @@ use crate::website::pages::index::page_index; mod pages; const STYLES_CSS: &str = include_str!("../../web/styles.css"); +const FAVICON_SVG: &str = include_str!("../../assets/logo.svg"); +const FAVICON_X64: &[u8] = include_bytes!("../../assets/logo-x64.png"); pub async fn website_service(req: Request) -> Result { let path = req.uri().path().trim_start_matches("/"); @@ -18,6 +20,8 @@ pub async fn website_service(req: Request) -> Result Ok(match path { "" | "index" | "index.html" | "index.htm" => page_index().await, "styles.css" => ([(header::CONTENT_TYPE, "text/css")], STYLES_CSS).into_response(), + "favicon.svg" => ([(header::CONTENT_TYPE, "image/svg+xml")], FAVICON_SVG).into_response(), + "favicon-x64.png" => ([(header::CONTENT_TYPE, "image/png")], FAVICON_X64).into_response(), _ => StatusCode::NOT_FOUND.into_response(), }) } diff --git a/web/index.html b/web/index.html index 6ef0139..b2b9102 100644 --- a/web/index.html +++ b/web/index.html @@ -5,6 +5,13 @@ gractwo.pl | Witamy! + +