From c55d6d37e25dae92140de9cb774f1baf0c9de27e Mon Sep 17 00:00:00 2001 From: MCorange99 Date: Wed, 27 Mar 2024 23:19:07 +0200 Subject: [PATCH] initial html changes --- src/public/mod.rs | 3 +- static/css/global.css | 23 ++++++ static/css/index.css | 3 + static/favicon.ico | Bin 0 -> 4286 bytes static/logo.svg | 188 ++++++++++++++++++++++++++++++++++++++++++ templates/index.html | 28 ++++--- 6 files changed, 233 insertions(+), 12 deletions(-) create mode 100644 static/css/global.css create mode 100644 static/css/index.css create mode 100644 static/favicon.ico create mode 100644 static/logo.svg 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 0000000000000000000000000000000000000000..7b9036fc266deaa9d839b2fe30db3bc5d1d080b4 GIT binary patch literal 4286 zcmeHL*>6-;7{B}n`r?bhR1FF70pf$2_+SL7L`jUX0yfbojm9lLD2c>GjGAaP$b%pf zQ&uU3($a;NjMSF4LQADU7qru5W@x7iv)5tf?)RLZ-#xQ*?l7eq$W#+f^Yxx@U(WY^ zO)5#t=%=JavVTj*?~$bYBuQFHKqTpD0-G)l@g824f)qiLaQFO&D!{>wBw*<`$Ha-J zCje$Tc_hmd(_nvj!PN-BSq`6clrXr>)8=yM3tTM?YS+gwCt7b3;A#|V+k3D=16iIG zxCHgrccC=B1f_Yi0R7^(6lYw-VY;gjZ`_1v)2mQh%3=CWXLSo+Oa;oRG8iMr1)C?P zz(Rw<7MFvNYuCY=J}-DIe3kH0=)GTq&3VA(5XlZf@7oC$p8ya1jkSw~mEs*!{=2D1WXLC< zhw;auTy4kQ?AeZU)!VRQR}A<57{y+<3H?k3jDfulIR}#QKUPP!4?;V?9hScX>MvVF zf5~<0DgPeovl!$PYhjKzI@EI!z5fR&t_lnUeW>?0LQaODG`v7M4Y^{@yY0Vu6O5|| zptin6zR!wzP+hOX9IL0CpCkY2{OdP}7@Y>@F%}($Lh)*Y-y<1ph1UBOl*Sjqle6?-p9xZ=X~Jz!0rgVz25+1dh) zdP(%MLpTqy`@eZ3l80AAzp^{aWRYP}@8scCS^q5Zr-(ij~le-9D9sVs&i_uLdRscw2r}>47_5 zMQ}6+Y`hA?SvW%X6ojoKF)JGZ!VZE+nV@nbl0 z?NR)EZMEnji|75Vztf2quoqA-qRwB6eV!8ZMQOL*qJIjg-!>_%4WVIb1Ag+{kM8iN zi_XPuJ4_p3+`#CKS{$8t42OJ=U|?=`Y_QLHd}!k=Tm_aW5!pAmCath$G_LA1gr+Pn*gT9sMkL@m6z3l{LGk_ERHB|34n53Onta@jP%eaZ_YVVTl QyG#sA@y+}nV5z=;19u@jx&QzG literal 0 HcmV?d00001 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