Footer 组件

Footer 组件

页脚组件,显示版权信息、相关链接和网站信息。

功能概述

  • 版权信息: 显示 CC0 许可证和当前年份
  • 相关链接: DeepWiki、文档、隐私政策、使用条款等
  • GitHub 链接: 项目开源仓库
  • 品牌信息: 网站 Logo 和名称

Props 接口

无 Props,使用 branding provider 获取品牌信息。

链接列表

克隆版隐藏链接

branding.useCloneBranding 为 true 时,以下链接不显示:

  • DeepWiki
  • 如何编写 Prompt
  • 文档
  • API 文档
  • 隐私政策
  • 使用条款
  • 支持
  • 关于

始终显示的链接

  • GitHub 仓库链接

依赖

  • next-intl - 国际化
  • @/components/providers/branding-provider - 品牌配置
  • @/lib/analytics - 分析追踪

使用示例

import { Footer } from "@/components/layout/footer";

<Footer />

样式说明

  • 底部边框 (border-t)
  • 响应式布局:移动端垂直堆叠,桌面端水平排列
  • 字体大小: 12px (text-xs)
  • 文本颜色: text-muted-foreground

翻译键

{
  "footer": {
    "howTo": "如何编写",
    "docs": "文档",
    "api": "API",
    "privacy": "隐私",
    "terms": "条款",
    "support": "支持",
    "about": "关于"
  }
}
← 返回目录