diff options
| author | houston[bot] <astrobot-houston@users.noreply.github.com> | 2023-07-22 12:57:20 -0700 |
|---|---|---|
| committer | Pinapelz <donaldshan1@outlook.com> | 2023-07-22 12:57:20 -0700 |
| commit | 338bcf12e0b7bbd6e587ec992e62860642856e80 (patch) | |
| tree | 280c106666221697a40c13603a91ee4c696e0bfb /src/components/Header.astro | |
Initial commit from Astro
Diffstat (limited to 'src/components/Header.astro')
| -rw-r--r-- | src/components/Header.astro | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/Header.astro b/src/components/Header.astro new file mode 100644 index 0000000..4d3da1f --- /dev/null +++ b/src/components/Header.astro @@ -0,0 +1,25 @@ +--- +import HeaderLink from './HeaderLink.astro'; +import { SITE_TITLE } from '../consts'; +--- + +<header> + <h2> + {SITE_TITLE} + </h2> + <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> + </nav> +</header> +<style> + header { + margin: 0em 0 2em; + } + h2 { + margin: 0.5em 0; + } +</style> |
