diff --git a/src/public/mod.rs b/src/public/mod.rs index 210f9b1..3ddcc23 100644 --- a/src/public/mod.rs +++ b/src/public/mod.rs @@ -15,7 +15,8 @@ pub(crate) async fn start_actix(config: &Config, database: Database) -> anyhow:: App::new() .app_data(actix_web::web::Data::new(database.clone())) .route("/", web::get().to(routes::index)) // index.html - .service(actix_fs::Files::new("/static", "./static").index_file("index.html")) // static directoryh + .service(actix_fs::Files::new("/static", "./static").index_file("index.html")) // static directory + .service(web::redirect("/favicon.ico", "/static/favicon.ico")) //? special redirect for favicon }) .bind(bindip)? diff --git a/static/css/global.css b/static/css/global.css new file mode 100644 index 0000000..45ec267 --- /dev/null +++ b/static/css/global.css @@ -0,0 +1,23 @@ + +/* fonts here */ + +:root { + /* global vars like colors here */ +} + + +#nav { + +} + +.nav-logo { + +} + +.nav-btn { + +} + +.nav-btn-active { + +} diff --git a/static/css/index.css b/static/css/index.css new file mode 100644 index 0000000..b28b04f --- /dev/null +++ b/static/css/index.css @@ -0,0 +1,3 @@ + + + diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..7b9036f Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/logo.svg b/static/logo.svg new file mode 100644 index 0000000..c7cd885 --- /dev/null +++ b/static/logo.svg @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + MCo + + + + + + + + diff --git a/templates/index.html b/templates/index.html index 0ce8856..427bb6e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,14 +1,20 @@ - - - - placeholder - - - - -

{{placeholder}}

- - + + + Document + + + + + + + + \ No newline at end of file