summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2024-10-26 17:22:49 +0200
committerWriterV2 <primary-v2@protonmail.com>2024-10-26 17:27:31 +0200
commit2a15bc0bf15d845371c00e07d9ab35b96c669e92 (patch)
tree45f3e8b451efa9560c8ce737e037e90c09256c32 /src/main.rs
parent2d518ce40f663efa09dfe3a1be30924002251112 (diff)
Style: Update colors to paper-feeling
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs18
1 files changed, 10 insertions, 8 deletions
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<impl IntoResponse, AppError> {
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 {