Footer.tsx 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. "use client";
  2. import Link from "next/link";
  3. import { Github, Mail, MessageSquare } from "lucide-react";
  4. import { websiteConfig } from "@/lib/website-config";
  5. /**
  6. * 官网底部页脚
  7. * 包含公司信息、友情链接、联系方式等
  8. */
  9. export function Footer() {
  10. return (
  11. <footer className="border-t bg-muted/30">
  12. <div className="container mx-auto px-4 py-12">
  13. <div className="grid grid-cols-1 md:grid-cols-4 gap-8">
  14. {/* 关于产品 */}
  15. <div>
  16. <div className="flex items-center space-x-2 mb-4">
  17. <div className="w-8 h-8 rounded-lg bg-primary flex items-center justify-center">
  18. <span className="text-primary-foreground font-bold text-lg">AI</span>
  19. </div>
  20. <span className="text-lg font-bold">AI-CS</span>
  21. </div>
  22. <p className="text-sm text-muted-foreground mb-4">
  23. AI-CS 是一款 AI 驱动的智能客服系统,融合 AI 技术与人工客服,为企业提供高效、智能的客户服务解决方案。
  24. </p>
  25. <div className="flex items-center space-x-4">
  26. <a
  27. href={websiteConfig.github.repo}
  28. target="_blank"
  29. rel="noopener noreferrer"
  30. className="text-muted-foreground hover:text-foreground transition-colors"
  31. aria-label="GitHub"
  32. >
  33. <Github className="w-5 h-5" />
  34. </a>
  35. </div>
  36. </div>
  37. {/* 产品链接 */}
  38. <div>
  39. <h3 className="font-semibold mb-4">产品</h3>
  40. <ul className="space-y-2 text-sm">
  41. <li>
  42. <Link
  43. href="#features"
  44. className="text-muted-foreground hover:text-foreground transition-colors"
  45. >
  46. 核心能力
  47. </Link>
  48. </li>
  49. <li>
  50. <Link
  51. href="#screenshots"
  52. className="text-muted-foreground hover:text-foreground transition-colors"
  53. >
  54. 界面展示
  55. </Link>
  56. </li>
  57. <li>
  58. <Link
  59. href="#quick-start"
  60. className="text-muted-foreground hover:text-foreground transition-colors"
  61. >
  62. 快速接入
  63. </Link>
  64. </li>
  65. <li>
  66. <Link
  67. href="/agent/login"
  68. target="_blank"
  69. rel="noopener noreferrer"
  70. className="text-muted-foreground hover:text-foreground transition-colors"
  71. >
  72. 客服登录
  73. </Link>
  74. </li>
  75. </ul>
  76. </div>
  77. {/* 友情链接 */}
  78. <div>
  79. <h3 className="font-semibold mb-4">友情链接</h3>
  80. <ul className="space-y-2 text-sm">
  81. {websiteConfig.friendLinks.length > 0 ? (
  82. websiteConfig.friendLinks.map((link, index) => (
  83. <li key={index}>
  84. <a
  85. href={link.url}
  86. target="_blank"
  87. rel="noopener noreferrer"
  88. className="text-muted-foreground hover:text-foreground transition-colors"
  89. >
  90. {link.name}
  91. </a>
  92. </li>
  93. ))
  94. ) : (
  95. <li className="text-muted-foreground text-xs">
  96. 暂无友情链接
  97. </li>
  98. )}
  99. </ul>
  100. </div>
  101. {/* 联系我们 */}
  102. <div>
  103. <h3 className="font-semibold mb-4">联系我们</h3>
  104. <ul className="space-y-3 text-sm">
  105. <li className="flex items-center space-x-2 text-muted-foreground">
  106. <Github className="w-4 h-4" />
  107. <a
  108. href={websiteConfig.github.repo}
  109. target="_blank"
  110. rel="noopener noreferrer"
  111. className="hover:text-foreground transition-colors"
  112. >
  113. GitHub
  114. </a>
  115. </li>
  116. <li className="flex items-center space-x-2 text-muted-foreground">
  117. <MessageSquare className="w-4 h-4" />
  118. <Link
  119. href="/chat"
  120. className="hover:text-foreground transition-colors"
  121. >
  122. 在线客服
  123. </Link>
  124. </li>
  125. </ul>
  126. </div>
  127. </div>
  128. {/* 版权信息 */}
  129. <div className="mt-8 pt-8 border-t text-center text-sm text-muted-foreground">
  130. <p className="mb-2">
  131. © {websiteConfig.copyright.year} {websiteConfig.copyright.company}. All rights reserved.
  132. </p>
  133. <p>
  134. Powered by Next.js & Go |
  135. <a
  136. href={websiteConfig.github.repo}
  137. target="_blank"
  138. rel="noopener noreferrer"
  139. className="ml-1 hover:text-foreground transition-colors"
  140. >
  141. 开源协议
  142. </a>
  143. </p>
  144. </div>
  145. </div>
  146. </footer>
  147. );
  148. }