mirror of
https://github.com/valentineus/popov.link.git
synced 2025-07-03 16:10:26 +03:00
refactor: simplify Header component by removing site title and navigation wrapper
- Removed the site title and navigation links wrapper from the Header component for a cleaner structure. - Updated styles to reflect these changes, streamlining the component's layout.
This commit is contained in:
@ -1,24 +1,4 @@
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@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 {
|
a {
|
||||||
margin-right: 1.5rem;
|
margin-right: 1.5rem;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
@ -30,9 +10,6 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<a class="site-title" href="/">{import.meta.env.DEFAULT_TITLE}</a>
|
|
||||||
<div class="nav-links">
|
|
||||||
<a href="/">Home</a>
|
<a href="/">Home</a>
|
||||||
<a href="/blog/">Blog</a>
|
<a href="/blog/">Blog</a>
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
|
Reference in New Issue
Block a user