feat: 归档页面
This commit is contained in:
46
src/layouts/PageHeader.astro
Normal file
46
src/layouts/PageHeader.astro
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
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>
|
||||
Reference in New Issue
Block a user