MVP: 按 07 风格重写前端 + Go 后端落地(长文/短文、编辑器、后台管理)

This commit is contained in:
Sakurasan
2026-09-20 20:56:03 +08:00
parent edee708802
commit 4d8f2de3a4
96 changed files with 6005 additions and 2602 deletions
+53
View File
@@ -0,0 +1,53 @@
<script setup>
import { site } from '../site'
</script>
<template>
<!-- 窄屏时左栏收起,导航回到顶部 -->
<header class="topbar">
<RouterLink to="/" class="brand">{{ site.site_title || 'ONE' }}</RouterLink>
<nav class="links">
<RouterLink to="/">首页</RouterLink>
<RouterLink to="/archive">归档</RouterLink>
<RouterLink to="/tags">标签</RouterLink>
<RouterLink to="/about">关于</RouterLink>
</nav>
</header>
</template>
<style scoped>
.topbar {
display: none;
}
@media (max-width: 780px) {
.topbar {
display: flex;
align-items: baseline;
gap: 14px;
position: sticky;
top: 0;
z-index: 20;
padding: 10px 18px;
background: rgba(250, 247, 241, 0.94);
backdrop-filter: blur(6px);
border-bottom: 1px solid var(--line);
}
.brand {
font-family: var(--serif);
font-size: 17px;
}
.links {
display: flex;
gap: 12px;
font-size: 13px;
color: var(--muted);
}
.links a.router-link-exact-active {
color: var(--accent);
}
}
</style>