From 3809e7c9ddce32d6ab6067577a20570d3b75ec12 Mon Sep 17 00:00:00 2001 From: lew Date: Fri, 27 Mar 2026 19:37:53 +0000 Subject: [PATCH] refactor: header alignment --- www/src/layouts/Layout.astro | 4 ++-- www/src/styles/global.css | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/www/src/layouts/Layout.astro b/www/src/layouts/Layout.astro index 4f59fe1..5cea85d 100644 --- a/www/src/layouts/Layout.astro +++ b/www/src/layouts/Layout.astro @@ -9,7 +9,7 @@ interface Props { urls?: string[]; } -const { title, description = 'personal website of lewis m.w.', showHeader = true, isHome = false, urls = [] } = Astro.props; +const { title, description = 'personal website of ' + title, showHeader = true, isHome = false, urls = [] } = Astro.props; --- @@ -28,7 +28,7 @@ const { title, description = 'personal website of lewis m.w.', showHeader = true {showHeader && (
-
{isHome ? lewis m.w.lewis m.w. : lewis m.w.} mail gh rss sitemap random newest
+ {isHome ? {title}{title} : lewis m.w.}mail gh rss sitemap random newest
)} diff --git a/www/src/styles/global.css b/www/src/styles/global.css index 3a9212b..1da1ddc 100644 --- a/www/src/styles/global.css +++ b/www/src/styles/global.css @@ -98,6 +98,22 @@ html[data-has] .guestbook-form { display: none; } +header { + display: flex; + justify-content: space-between; + align-items: baseline; + gap: 2ch; + font-family: monospace; +} + +.header-name { + white-space: nowrap; +} + +.header-links { + text-align: right; +} + section pre { margin: 0; }