2021-05-17 22:45:41 +00:00
|
|
|
|
---
|
2021-06-24 22:48:24 +00:00
|
|
|
|
export interface Props {
|
|
|
|
|
title: string;
|
|
|
|
|
}
|
|
|
|
|
const { title } = Astro.props;
|
2021-05-17 22:45:41 +00:00
|
|
|
|
---
|
|
|
|
|
|
2021-04-06 21:54:55 +00:00
|
|
|
|
<style lang="scss">
|
|
|
|
|
.header {
|
2021-05-28 16:06:22 +00:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
@media (min-width: 600px) {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 2rem;
|
|
|
|
|
}
|
2021-04-06 21:54:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
margin: 0;
|
2021-05-17 22:45:41 +00:00
|
|
|
|
font-size: 1.2em;
|
|
|
|
|
letter-spacing: -0.03em;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
margin-right: 1em;
|
2021-04-06 21:54:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.nav {
|
2021-05-28 16:06:22 +00:00
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
@media (min-width: 600px) {
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
2021-04-06 21:54:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
list-style: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
li {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
display: block;
|
2021-05-17 22:45:41 +00:00
|
|
|
|
font-size: 1.2em;
|
|
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
margin-left: 0.75em;
|
|
|
|
|
margin-right: 0.75em;
|
2021-04-06 21:54:55 +00:00
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<nav class="header">
|
2021-05-17 22:45:41 +00:00
|
|
|
|
<h1 class="title">Don’s Blog</h1>
|
2021-04-06 21:54:55 +00:00
|
|
|
|
<ul class="nav">
|
2021-06-16 21:19:23 +00:00
|
|
|
|
<li><a href="/">Home</a></li>
|
2021-05-28 16:06:22 +00:00
|
|
|
|
<li><a href="/posts">All Posts</a></li>
|
2021-05-17 22:45:41 +00:00
|
|
|
|
<li><a href="/author/don">Author: Don</a></li>
|
|
|
|
|
<li><a href="/author/sancho">Author: Sancho</a></li>
|
2021-04-06 21:54:55 +00:00
|
|
|
|
<li><a href="/about">About</a></li>
|
|
|
|
|
</ul>
|
2021-06-24 22:48:24 +00:00
|
|
|
|
</nav>
|