Footer.tsx 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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="#faq"
  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. className="text-muted-foreground hover:text-foreground transition-colors"
  69. >
  70. 客服登录
  71. </Link>
  72. </li>
  73. </ul>
  74. </div>
  75. {/* 友情链接 */}
  76. <div>
  77. <h3 className="font-semibold mb-4">友情链接</h3>
  78. <ul className="space-y-2 text-sm">
  79. {websiteConfig.friendLinks.length > 0 ? (
  80. websiteConfig.friendLinks.map((link, index) => (
  81. <li key={index}>
  82. <a
  83. href={link.url}
  84. target="_blank"
  85. rel="noopener noreferrer"
  86. className="text-muted-foreground hover:text-foreground transition-colors"
  87. >
  88. {link.name}
  89. </a>
  90. </li>
  91. ))
  92. ) : (
  93. <li className="text-muted-foreground text-xs">
  94. 暂无友情链接
  95. </li>
  96. )}
  97. </ul>
  98. </div>
  99. {/* 联系我们 */}
  100. <div>
  101. <h3 className="font-semibold mb-4">联系我们</h3>
  102. <ul className="space-y-3 text-sm">
  103. <li className="flex items-center space-x-2 text-muted-foreground">
  104. <Github className="w-4 h-4" />
  105. <a
  106. href={websiteConfig.github.repo}
  107. target="_blank"
  108. rel="noopener noreferrer"
  109. className="hover:text-foreground transition-colors"
  110. >
  111. GitHub
  112. </a>
  113. </li>
  114. <li className="flex items-center space-x-2 text-muted-foreground">
  115. <MessageSquare className="w-4 h-4" />
  116. <Link
  117. href="/chat"
  118. className="hover:text-foreground transition-colors"
  119. >
  120. 在线客服
  121. </Link>
  122. </li>
  123. </ul>
  124. </div>
  125. </div>
  126. {/* 版权信息 */}
  127. <div className="mt-8 pt-8 border-t text-center text-sm text-muted-foreground">
  128. <p className="mb-2">
  129. © {websiteConfig.copyright.year} {websiteConfig.copyright.company}. All rights reserved.
  130. </p>
  131. <p>
  132. Powered by Next.js & Go |
  133. <a
  134. href={websiteConfig.github.repo}
  135. target="_blank"
  136. rel="noopener noreferrer"
  137. className="ml-1 hover:text-foreground transition-colors"
  138. >
  139. 开源协议
  140. </a>
  141. </p>
  142. </div>
  143. </div>
  144. </footer>
  145. );
  146. }