aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header.astro
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2025-06-10 21:38:58 +0300
committerGitHub <noreply@github.com>2025-06-10 21:38:58 +0300
commit34ce9f6162ae4ff2d0278760cce28227d82433ed (patch)
tree1c365b4615ba0bf43942f776cfe0860eb12de3e4 /src/components/Header.astro
parentf3cc07e92c8497347157b050a8e4b41d83e1fa9c (diff)
downloadpopov.link-34ce9f6162ae4ff2d0278760cce28227d82433ed.tar.xz
popov.link-34ce9f6162ae4ff2d0278760cce28227d82433ed.zip
style: enhance Header component and update SCSS imports (#50)
- Improved the Header component by adding a site title with styling. - Wrapped navigation links in a div for better structure. - Updated SCSS imports across multiple components for consistency.
Diffstat (limited to 'src/components/Header.astro')
-rw-r--r--src/components/Header.astro24
1 files changed, 20 insertions, 4 deletions
diff --git a/src/components/Header.astro b/src/components/Header.astro
index c2edf19..52c0ca8 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -1,14 +1,27 @@
<style lang="scss">
- @use "../scss/variables" as *;
+ @use "../scss/variables" as *;
header {
padding-bottom: 1rem;
+ position: relative;
+ }
+
+ .site-title {
+ color: $colorText;
+ font-weight: bold;
+ left: 0;
+ position: absolute;
+ text-decoration: none;
+ top: 0;
+ }
+
+ .nav-links {
text-align: right;
}
a {
- text-decoration: none;
margin-right: 1.5rem;
+ text-decoration: none;
&:last-child {
margin-right: 0;
@@ -17,6 +30,9 @@
</style>
<header>
- <a href="/">Home</a>
- <a href="/blog/">Blog</a>
+ <a class="site-title" href="/">{import.meta.env.DEFAULT_TITLE}</a>
+ <div class="nav-links">
+ <a href="/">Home</a>
+ <a href="/blog/">Blog</a>
+ </div>
</header>