Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

125 wiersze
4.0 KiB

  1. /*
  2. Copyright (C) 2025 QuantumNous
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <https://www.gnu.org/licenses/>.
  13. For commercial licensing, please contact support@quantumnous.com
  14. */
  15. import React from 'react';
  16. import { useTranslation } from 'react-i18next';
  17. import { IconChevronRight } from '@douyinfe/semi-icons';
  18. const ToolCard = ({ icon, brand, brandColor, title, description, link, glowClass }) => {
  19. const brandColorClasses = {
  20. amber: 'text-amber-400 hover-glow-amber',
  21. blue: 'text-blue-400 hover-glow-blue',
  22. purple: 'text-purple-400 hover-glow-purple',
  23. };
  24. return (
  25. <div className="group cursor-pointer h-full">
  26. <div
  27. className={`h-full rounded-2xl sm:rounded-[2rem] border bg-white border-black/5 p-8 sm:p-10 lg:p-12 shadow-sm transition-all duration-500 hover:shadow-2xl ${brandColorClasses[glowClass]}`}
  28. >
  29. {/* Logo + Title */}
  30. <div className="mb-3 sm:mb-4 flex items-center gap-3 sm:gap-4">
  31. <img
  32. src={icon}
  33. alt={title}
  34. className="h-8 w-8 object-contain"
  35. />
  36. <h3 className="text-xl sm:text-2xl font-bold tracking-tight line-clamp-1">
  37. {title}
  38. </h3>
  39. </div>
  40. {/* Description */}
  41. <p className="mb-6 sm:mb-8 text-sm sm:text-base font-light leading-relaxed opacity-40 line-clamp-3">
  42. {description}
  43. </p>
  44. {/* Link */}
  45. <a
  46. href={link}
  47. target="_top"
  48. className="flex items-center gap-2 text-[10px] font-bold opacity-0 transition-opacity group-hover:opacity-100"
  49. >
  50. LEARN CONFIG
  51. <IconChevronRight size={14} />
  52. </a>
  53. </div>
  54. </div>
  55. );
  56. };
  57. const ToolsSection = () => {
  58. const { t } = useTranslation();
  59. const tools = [
  60. {
  61. icon: '/images/Anthropic.png',
  62. brand: 'Anthropic',
  63. brandColor: 'amber',
  64. title: 'AI编程',
  65. description: '无缝支持AI编程工具,涵盖顶级模型。',
  66. link: '/pricing',
  67. glowClass: 'amber',
  68. },
  69. {
  70. icon: '/images/create.png',
  71. brand: ' ',
  72. brandColor: 'blue',
  73. title: '创作',
  74. description: '顶级多模态模型,统一API使用。',
  75. link: '/pricing',
  76. glowClass: 'blue',
  77. },
  78. {
  79. icon: '/images/openclaw-3.jpg',
  80. brand: 'OpenClaw',
  81. brandColor: 'purple',
  82. title: '龙虾',
  83. description: '无缝接入龙虾,顶级模型构建聪明大脑。',
  84. link: '/pricing',
  85. glowClass: 'purple',
  86. },
  87. ];
  88. return (
  89. <section className="home-snap-section bg-[var(--semi-color-bg-0)]">
  90. <div className="mx-auto w-full max-w-6xl px-5 py-16 md:px-6 lg:px-8">
  91. {/* Header */}
  92. <div className="mb-16 flex flex-col items-start justify-between gap-4 sm:mb-20 sm:flex-row sm:items-end sm:gap-6 lg:mb-24">
  93. <h2 className="whitespace-pre-line text-[clamp(1.75rem,5vw,3.5rem)] font-black tracking-[-0.03em]">
  94. {t('原生支持\n极致工具链')}
  95. </h2>
  96. <p className="max-w-xs text-xs font-light opacity-40 sm:text-sm">
  97. {t('深度优化 API 路由,确保在 CLI 环境下依然拥有流畅的流式交互体验。')}
  98. </p>
  99. </div>
  100. {/* Cards Grid */}
  101. <div className="grid grid-cols-1 gap-4 sm:gap-6 md:grid-cols-3 items-stretch">
  102. {tools.map((tool, index) => (
  103. <ToolCard key={index} {...tool} />
  104. ))}
  105. </div>
  106. </div>
  107. </section>
  108. );
  109. };
  110. export default ToolsSection;