diff --git a/src/web/mod.rs b/src/web/mod.rs index ed4b4d5..7ab6a68 100644 --- a/src/web/mod.rs +++ b/src/web/mod.rs @@ -65,6 +65,9 @@ impl Layout { } } body { + nav { + a href="/logout" { "logout of " (self.user.username) } + } main { (content) diff --git a/static/home.css b/static/home.css index 4becede..d434d38 100644 --- a/static/home.css +++ b/static/home.css @@ -34,7 +34,6 @@ main { width: 100%; - max-width: 600px; margin: auto; } diff --git a/static/index.css b/static/index.css index b8dbbf2..9c4bc7e 100644 --- a/static/index.css +++ b/static/index.css @@ -16,6 +16,8 @@ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abb body { width: 100%; + max-width: 600px; + margin: 0 auto; height: 100vh; display: flex; flex-direction: column; @@ -58,3 +60,12 @@ form label { display: flex; flex-direction: column; } + +nav { + display: flex; + flex-direction: row; + justify-content: flex-end; + gap: 1em; + width: 100%; + margin-bottom: 0.5em; +} diff --git a/static/login.css b/static/login.css index 8fb72d2..3da40f5 100644 --- a/static/login.css +++ b/static/login.css @@ -1,8 +1,6 @@ body { padding-top: 2em; font-family: sans-serif; - max-width: 600px; - margin: auto; } form {