💄 fixing Header & Footer components
This commit is contained in:
		
							parent
							
								
									185f93df73
								
							
						
					
					
						commit
						cf180f2eb9
					
				
					 3 changed files with 10 additions and 20 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,7 @@ const today = new Date();
 | 
			
		|||
---
 | 
			
		||||
 | 
			
		||||
<footer>
 | 
			
		||||
	© {today.getFullYear()} YOUR NAME HERE. All rights reserved.
 | 
			
		||||
	{today.getFullYear()} © Sindre Kjelsrud.
 | 
			
		||||
</footer>
 | 
			
		||||
<style>
 | 
			
		||||
	footer {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,23 +3,14 @@ import HeaderLink from './HeaderLink.astro';
 | 
			
		|||
import { SITE_TITLE } from '../consts';
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<header>
 | 
			
		||||
	<h2>
 | 
			
		||||
<header class="flex justify-center gap-24 mb-12">
 | 
			
		||||
	<a class="font-bold" href="/">
 | 
			
		||||
		{SITE_TITLE}
 | 
			
		||||
	</h2>
 | 
			
		||||
	</a>
 | 
			
		||||
	<nav>
 | 
			
		||||
		<HeaderLink href="/">Home</HeaderLink>
 | 
			
		||||
		<HeaderLink href="/blog">Blog</HeaderLink>
 | 
			
		||||
		<HeaderLink href="/about">About</HeaderLink>
 | 
			
		||||
		<HeaderLink href="https://twitter.com/astrodotbuild" target="_blank">Twitter</HeaderLink>
 | 
			
		||||
		<HeaderLink href="https://github.com/withastro/astro" target="_blank">GitHub</HeaderLink>
 | 
			
		||||
		<HeaderLink href="/about">about</HeaderLink>
 | 
			
		||||
		<HeaderLink href="/projects">projects</HeaderLink>
 | 
			
		||||
		<HeaderLink href="/resume">resume</HeaderLink>
 | 
			
		||||
		<HeaderLink href="/blog">blog</HeaderLink>
 | 
			
		||||
	</nav>
 | 
			
		||||
</header>
 | 
			
		||||
<style>
 | 
			
		||||
	header {
 | 
			
		||||
		margin: 0em 0 2em;
 | 
			
		||||
	}
 | 
			
		||||
	h2 {
 | 
			
		||||
		margin: 0.5em 0;
 | 
			
		||||
	}
 | 
			
		||||
</style>
 | 
			
		||||
</header>
 | 
			
		||||
| 
						 | 
				
			
			@ -1,5 +1,4 @@
 | 
			
		|||
// Place any global data in this file.
 | 
			
		||||
// You can import this data from anywhere in your site by using the `import` keyword.
 | 
			
		||||
 | 
			
		||||
export const SITE_TITLE = 'My personal website.';
 | 
			
		||||
export const SITE_DESCRIPTION = 'Welcome to my website!';
 | 
			
		||||
export const SITE_TITLE = 'kjelsrud.dev';
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue