mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 06:49:45 +03:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -1,14 +1,27 @@
 | 
				
			|||||||
<style lang="scss">
 | 
					<style lang="scss">
 | 
				
			||||||
        @use "../scss/variables" as *;
 | 
						@use "../scss/variables" as *;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	header {
 | 
						header {
 | 
				
			||||||
		padding-bottom: 1rem;
 | 
							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;
 | 
							text-align: right;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	a {
 | 
						a {
 | 
				
			||||||
		text-decoration: none;
 | 
					 | 
				
			||||||
		margin-right: 1.5rem;
 | 
							margin-right: 1.5rem;
 | 
				
			||||||
 | 
							text-decoration: none;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		&:last-child {
 | 
							&:last-child {
 | 
				
			||||||
			margin-right: 0;
 | 
								margin-right: 0;
 | 
				
			||||||
@@ -17,6 +30,9 @@
 | 
				
			|||||||
</style>
 | 
					</style>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<header>
 | 
					<header>
 | 
				
			||||||
	<a href="/">Home</a>
 | 
						<a class="site-title" href="/">{import.meta.env.DEFAULT_TITLE}</a>
 | 
				
			||||||
	<a href="/blog/">Blog</a>
 | 
						<div class="nav-links">
 | 
				
			||||||
 | 
							<a href="/">Home</a>
 | 
				
			||||||
 | 
							<a href="/blog/">Blog</a>
 | 
				
			||||||
 | 
						</div>
 | 
				
			||||||
</header>
 | 
					</header>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,7 +12,7 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style lang="scss">
 | 
					<style lang="scss">
 | 
				
			||||||
        @use "../scss/variables" as *;
 | 
						@use "../scss/variables" as *;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	small {
 | 
						small {
 | 
				
			||||||
		font-size: $fontSizeBase * 0.75;
 | 
							font-size: $fontSizeBase * 0.75;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,7 +12,7 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style lang="scss">
 | 
					<style lang="scss">
 | 
				
			||||||
        @use "../scss/variables" as *;
 | 
						@use "../scss/variables" as *;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	a {
 | 
						a {
 | 
				
			||||||
		color: $colorText;
 | 
							color: $colorText;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,7 @@ const formattedDate = dayjs(post.data.pubDate.toString()).format("MMMM DD, YYYY"
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style lang="scss">
 | 
					<style lang="scss">
 | 
				
			||||||
        @use "../../scss/variables" as *;
 | 
						@use "../../scss/variables" as *;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	p {
 | 
						p {
 | 
				
			||||||
		opacity: 0.5;
 | 
							opacity: 0.5;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user