page.tsx

page.tsx

基本信息

  • 类型: Next.js 页面 (Server Component)
  • 路径: ./src/app/page.tsx

功能描述

网站首页(着陆页),展示平台的核心价值主张、功能特性、成就展示和推荐内容。支持两种品牌模式:默认模式和克隆品牌模式(用于自托管实例)。

路由

  • 路径: /
  • 参数: 无

依赖导入

  • next/link - Next.js 链接组件
  • next/image - Next.js 图片组件
  • next-intl/server - 服务端国际化翻译
  • lucide-react - 图标库
  • @/lib/auth - 认证模块
  • @/lib/config - 配置管理
  • @/components/ui/button - UI 按钮组件
  • @/components/prompts/discovery-prompts - 发现提示组件
  • @/components/prompts/hero-categories - 首页分类组件
  • @/components/layout/cli-command - CLI 命令组件
  • @/components/layout/extension-link - 扩展链接组件
  • @/components/layout/animated-text - 动画文字组件
  • @/components/layout/sponsor-link - 赞助商链接组件

主要功能

  • 展示 Hero 区域,包含动态标题和描述
  • 根据品牌配置切换显示模式(原版/克隆品牌)
  • 动态获取 GitHub Stars 数量
  • 展示成就和媒体报道(Forbes、Harvard、Columbia 等)
  • 展示用户推荐和名人评价(OpenAI 创始人、GitHub CEO 等)
  • 显示赞助商信息和构建工具信息
  • 集成 Prompt 发现组件展示热门内容
  • 响应式布局适配移动端和桌面端
  • 多语言国际化支持

SEO

  • title: prompts.chat - AI Prompts Community
  • description: Discover, collect, and share the best AI prompts for ChatGPT, Claude, Gemini, and more.
← 返回目录