From cd6cb485f2305c2d67bfd51a0511569d503726f8 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 30 Oct 2020 17:01:03 +0100 Subject: [PATCH] serve: add footer --- ticker-serve/src/index.rs | 8 ++++++++ ticker-serve/static/style.css | 15 ++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/ticker-serve/src/index.rs b/ticker-serve/src/index.rs index 42279be..faaa1fd 100644 --- a/ticker-serve/src/index.rs +++ b/ticker-serve/src/index.rs @@ -122,6 +122,14 @@ fn render_index(app_state: &AppState) -> String { )) } ) }) } + ); diff --git a/ticker-serve/static/style.css b/ticker-serve/static/style.css index 564acb9..4a1cea8 100644 --- a/ticker-serve/static/style.css +++ b/ticker-serve/static/style.css @@ -1,7 +1,7 @@ body { font-family: sans-serif; margin: 0 auto; - padding: 1rem 0; + padding: 1rem 0 0 0.5rem; background-color: #373737; color: #e7e7e7; max-width: 40rem; @@ -78,3 +78,16 @@ h3 a { line-height: 1.1em; display: inline; } + +footer { + text-align: center; +} +footer p { + margin: 1rem 0 0; +} +footer a { + color: #F7F7F7; + text-decoration: none; + font-size: 85%; + font-weight: 500; +}