Files
ai-directory-platform/sites/the-ai-ledger/src/site/brand.tsx
T
AI Directory Platform 14af0aaa3a feat: 四项体验修复(字号/品牌登录模板/第三方登录/免邮箱验证)
① 全局字号提升一档:body 基准 16.8px,14 个核心组件 99 处 text-xs/text-sm 放大
② 五站五套登录模板:FormShell 品牌分栏布局(左品牌色侧栏+右表单),
   每站独立 accent(近黑/橙红/纸墨棕/终端绿/紫),站点字标替换 Toolso.AI Logo;
   AuthLayout 简化为容器,布局职责下沉 FormShell
③ 第三方登录按钮:未配置 OAuth 凭据时显示 Google/GitHub 按钮,
   走 /api/auth/mock-social 一键创建演示 session(生产配置凭据后自动 403 切真实流程);
   按钮重设计为全宽方形(替换胶囊 Button)
④ 开发阶段免邮箱验证:better-auth databaseHooks 注册即 emailVerified=true,
   sendOnSignUp 仅生产开启;注册成功直接回跳原页面(跳过 check-email)

回归验证:字号 16.8px / 五站品牌色各异 / mock 登录闭环(投票→登录→回原页)/
注册免验证直接进站(emailVerified=t + 跳首页)全部 PASS
2026-09-09 06:02:16 +00:00

105 lines
2.3 KiB
TypeScript

import type { SiteConfig } from "@/kit/types";
// The AI Ledger —— 独立站点的全部品牌/导航/页脚配置
export const siteConfig: SiteConfig = {
"accent": "36 70% 40%",
"port": 3003,
"brand": {
"name": "The AI Ledger",
"tagline": "Independent journalism on AI tools, with a community-ranked directory.",
"headline": "AI tools, reviewed and ranked",
"subheadline": "Guides, comparisons and a community-powered directory of the best AI tools."
},
"navItems": [
{
"label": "Stories",
"href": "/blog"
},
{
"label": "Guides",
"href": "/ai-tools-for"
},
{
"label": "Best Picks",
"href": "/best"
},
{
"label": "Directory",
"href": "/tools"
},
{
"label": "Rankings",
"href": "/rankings"
},
{
"label": "Submit",
"href": "/submit"
}
],
"footerGroups": [
{
"title": "Read",
"links": [
{
"label": "Latest Stories",
"href": "/blog"
},
{
"label": "Buying Guides",
"href": "/best"
},
{
"label": "Use Case Guides",
"href": "/ai-tools-for"
}
]
},
{
"title": "Directory",
"links": [
{
"label": "All Tools",
"href": "/tools"
},
{
"label": "Community Rankings",
"href": "/rankings"
},
{
"label": "Submit a Tool",
"href": "/submit"
}
]
},
{
"title": "Company",
"links": [
{
"label": "Contact",
"href": "/contact"
},
{
"label": "Terms",
"href": "/terms"
},
{
"label": "Privacy",
"href": "/privacy"
}
]
}
],
"searchPlaceholder": "Search the directory...",
"seo": {
"en": {
"title": "The AI Ledger — AI Tools, Reviewed and Ranked",
"description": "Independent journalism on AI: buying guides, comparisons and a community-ranked directory of the best AI tools."
},
"zh": {
"title": "The AI Ledger — AI 工具评测与排名",
"description": "独立 AI 媒体:深度指南、横向对比,以及由社区排名的 AI 工具目录。"
}
},
"id": "the-ai-ledger"
};