Files
pages/src/lib/viewport/header.svelte

59 lines
1.2 KiB
Svelte
Raw Normal View History

2026-01-23 15:30:08 +01:00
{#snippet headerLinks()}
<a href="/">Home</a>
2025-12-30 20:33:09 +00:00
<a href="/projects">Projects</a>
<a href="/projects/projectn5">Project N5</a>
2026-01-05 12:35:16 +00:00
<a href="/blog">Blog</a>
<!-- <a href="/garden">Garden</a> -->
<a href="/meta/about">About</a>
2025-12-30 20:33:09 +00:00
{/snippet}
2025-07-14 12:12:30 +02:00
<div class="header-content">
2026-01-23 15:30:08 +01:00
<div class="header-links">
{@render headerLinks()}
</div>
</div>
2025-12-30 20:33:09 +00:00
<style>
2026-01-23 15:30:08 +01:00
.header-links {
2025-12-30 20:33:09 +00:00
box-sizing: border-box;
width: 100%;
max-width: var(--page-width);
/* min-height: 72px; */
2025-03-31 23:07:29 +02:00
display: flex;
2025-07-14 12:12:30 +02:00
flex-direction: row;
justify-content: flex-start;
gap: 16px;
2025-03-31 23:07:29 +02:00
align-items: center;
padding: 0 var(--margin-content-side);
margin: 0 auto;
2025-07-14 12:12:30 +02:00
}
a {
2026-01-23 15:30:08 +01:00
font-family: var(--font-);
2025-12-30 20:33:09 +00:00
font-size: 1rem;
font-weight: bold;
2025-07-14 12:12:30 +02:00
text-decoration: none;
}
a:link {
color: var(--color-text);
}
/* visited link */
a:visited {
color: var(--color-text);
}
/* mouse over link */
a:hover {
2025-12-30 20:33:09 +00:00
color: var(--color-highlight);
2025-03-31 23:07:29 +02:00
}
2026-01-23 15:30:08 +01:00
@media screen and (max-width: 500px) {
.header-links {
justify-content: center;
}
a {
font-size: 0.8rem;
}
}
2025-03-31 23:07:29 +02:00
</style>