From b2296ff4cab619b6d8fcc9add583b48d27d04aeb Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 2 Feb 2022 23:04:22 -0800 Subject: [PATCH] * Exposing page::default_map + Max width for login form --- api/src/page.rs | 2 +- api/static/css/style.css | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/api/src/page.rs b/api/src/page.rs index dd4891e..6b17fde 100644 --- a/api/src/page.rs +++ b/api/src/page.rs @@ -19,7 +19,7 @@ lazy_static! { }; } -fn default_map() -> HashMap<&'static str, String> { +pub fn default_map() -> HashMap<&'static str, String> { let mut h: HashMap<&'static str, String> = HashMap::new(); h.insert("sitetitle", SITENAME.clone()); h.insert("sitedesc", SITEDESC.clone()); diff --git a/api/static/css/style.css b/api/static/css/style.css index cc06873..540b179 100644 --- a/api/static/css/style.css +++ b/api/static/css/style.css @@ -75,3 +75,9 @@ video { .pure-img { border-radius: 0.5em; } + +/* TODO: put this behind some conditional compilation */ +.login-form { + max-width: 500px; + margin: 0 auto; +}