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
This commit is contained in:
AI Directory Platform
2026-09-09 06:02:16 +00:00
parent 3a2adbec76
commit 14af0aaa3a
54 changed files with 537 additions and 247 deletions
+11
View File
@@ -23,6 +23,7 @@ const SITES_ROOT = path.join(REPO_ROOT, "sites");
// ====================================================================
const SITES = {
"ai-stack": {
accent: "222 47% 11%", // 近黑(专业)
port: 3001,
theme: "classic",
brand: {
@@ -81,6 +82,7 @@ const SITES = {
},
},
launchai: {
accent: "16 85% 55%", // 橙红(产品社区)
port: 3002,
theme: "product",
brand: {
@@ -137,6 +139,7 @@ const SITES = {
},
},
"the-ai-ledger": {
accent: "36 70% 40%", // 纸墨棕(编辑部)
port: 3003,
theme: "editorial",
brand: {
@@ -194,6 +197,7 @@ const SITES = {
},
},
"devai-tools": {
accent: "150 60% 30%", // 终端绿(开发者)
port: 3004,
theme: "niche",
brand: {
@@ -249,6 +253,7 @@ const SITES = {
},
},
findai: {
accent: "260 70% 52%", // 紫(极简搜索)
port: 3005,
theme: "minimal",
brand: {
@@ -684,6 +689,12 @@ RESEND_API_KEY=""
RESEND_FROM_EMAIL="${site.brand.name} <noreply@localhost>"
NEXT_PUBLIC_APP_URL="http://localhost:${site.port}"
NEXT_PUBLIC_APP_NAME="${site.brand.name}"
# 登录页品牌模板(分栏侧栏颜色与标语)
NEXT_PUBLIC_AUTH_ACCENT="${site.accent}"
NEXT_PUBLIC_AUTH_BRAND_TAGLINE="${site.brand.tagline}"
# 开发阶段免邮箱验证(生产置 false 发送真实验证邮件)
DEV_SKIP_EMAIL_VERIFY="true"
NEXT_PUBLIC_DEV_SKIP_EMAIL_VERIFY="true"
`
);