Files
blog/src/layouts/PageHeader.astro
2026-08-15 22:23:32 +08:00

47 lines
751 B
Plaintext

---
import {siteConfig} from "@/consts.ts";
const {siteTitle,git} = siteConfig;
---
<header>
<a href="/"><h1>{siteTitle}</h1></a>
<nav>
<a href="/archive">归档</a>
<a target="_blank" href={git}>git</a>
</nav>
</header>
<style>
header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: var(--border-primary);
margin-top: 32px;
padding-bottom: 24px;
}
nav {
display: flex;
gap: 12px;
font-size: 14px;
color: var(--text-secondary);
}
nav a:hover {
color: var(--text-primary);
}
h1 {
font-size: 24px;
font-weight: 600;
}
@media (max-width: 640px) {
header {
margin-top: 12px;
margin-bottom: 0;
}
}
</style>