Skip to content

Commit

Permalink
add nav
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Nov 17, 2024
1 parent 384bf4a commit 153a390
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ const primaryDark = COLORS.warm.lighter,
/>
</head>
<body>
<slot />
<nav>
<a href="/">Next</a>
<a href="/archive">Archive</a>
</nav>
<slot />
</body>
</html>

Expand Down Expand Up @@ -107,4 +111,19 @@ const primaryDark = COLORS.warm.lighter,
Courier New,
monospace;
}

nav {
padding: 1rem;
display: flex;
gap: 1rem;
justify-content: center;
}

nav a {
text-decoration: none;
}

nav a:hover {
text-decoration: underline;
}
</style>

0 comments on commit 153a390

Please sign in to comment.