初始化 M0:Astro SSR + node:sqlite 脚手架与只读页面
This commit is contained in:
1 parent
97440b4120
commit
8430e5304d
39 files changed
+6398
-1
No files matched your search
@@ -0,0 +1,47 @@
|
||||
---
|
||||
import '../styles/global.css';
|
||||
|
||||
interface Props {
|
||||
title?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
const {
|
||||
title = 'LFSpecs',
|
||||
description = '公开硬件规格库:收录手机、芯片等设备的详细参数,支持横向对比。',
|
||||
} = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<meta name="description" content={description} />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<body class="min-h-dvh">
|
||||
<header class="border-b border-border/60">
|
||||
<div class="mx-auto flex h-14 max-w-6xl items-center gap-6 px-5">
|
||||
<a href="/" class="text-sm font-semibold tracking-tight">LFSpecs</a>
|
||||
<nav class="flex items-center gap-1 text-sm text-muted-foreground">
|
||||
<a href="/devices" class="rounded-md px-2.5 py-1.5 transition-colors hover:bg-accent hover:text-foreground">手机</a>
|
||||
<a href="/chips" class="rounded-md px-2.5 py-1.5 transition-colors hover:bg-accent hover:text-foreground">芯片</a>
|
||||
<a href="/poc" class="rounded-md px-2.5 py-1.5 transition-colors hover:bg-accent hover:text-foreground">组件自检</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="mx-auto max-w-6xl px-5 py-10">
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<footer class="mt-16 border-t border-border/60 py-8">
|
||||
<div class="mx-auto max-w-6xl px-5 text-xs text-muted-foreground">
|
||||
<p>数据由人工与 AI 辅助整理,仅供参考。</p>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user