From 2a15bc0bf15d845371c00e07d9ab35b96c669e92 Mon Sep 17 00:00:00 2001 From: WriterV2 Date: Sat, 26 Oct 2024 17:22:49 +0200 Subject: Style: Update colors to paper-feeling --- src/main.rs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index e4701e6..335649c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,21 +42,23 @@ async fn main() { async fn home() -> Result { Ok(html!({ (head("Home")) - body class="bg-neutral-50 text-neutral-950 dark:bg-neutral-950 dark:text-neutral-50 font-sans text-base tracking-wide" { + body class="bg-[#eae3d2] text-[#333] dark:bg-[#333] dark:text-[#eae3d2] font-mono text-base tracking-wide" { (header_with_navbar()) } })) } fn header_with_navbar() -> Markup { - html!({ header { - navbar class="p-3 text-sm bg-neutral-100 dark:bg-neutral-900 flex flex-row flex-wrap content-center justify-around decoration-purple-500 border-b-2 border-neutral-200 dark:border-neutral-800" { - a class="hover:underline" href="/" { "Home" } - a class="hover:underline" href="/" { "Stories" } - a class="hover:underline" href="/" { "Tools" } - a class="hover:underline" href="/" { "Games" } + html!({ + header { + navbar class="p-3 text-sm flex flex-row flex-wrap content-center justify-around decoration-purple-500 shadow" { + a class="hover:underline" href="/" { "Home" } + a class="hover:underline" href="/" { "Stories" } + a class="hover:underline" href="/" { "Tools" } + a class="hover:underline" href="/" { "Games" } + } } - } }) + }) } fn head(page_title: &str) -> Markup { -- cgit v1.2.3