mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
init
This commit is contained in:
30
src/components/header/header.astro
Normal file
30
src/components/header/header.astro
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
import { data } from '@/data/data';
|
||||
|
||||
const { basics } = data.profile;
|
||||
---
|
||||
|
||||
<nav>
|
||||
<a href="/">{basics.name}</a>
|
||||
<div>{basics.tagline}</div>
|
||||
</nav>
|
||||
|
||||
<style>
|
||||
nav {
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
max-width: var(--content-width);
|
||||
text-align: center;
|
||||
padding: var(--space-lg) var(--space-lg);
|
||||
}
|
||||
|
||||
a {
|
||||
font-size: var(--font-xl);
|
||||
}
|
||||
|
||||
div {
|
||||
font-size: var(--font-md);
|
||||
color: var(--color-text-light);
|
||||
font-weight: 300;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user