|
| 1 | +import Link from '@docusaurus/Link'; |
| 2 | +import { |
| 3 | + BarChart3, |
| 4 | + Brain, |
| 5 | + Calendar, |
| 6 | + Code2, |
| 7 | + Database, |
| 8 | + Globe, |
| 9 | + Server, |
| 10 | + Wrench, |
| 11 | +} from 'lucide-react'; |
| 12 | +import React from 'react'; |
| 13 | + |
| 14 | +const plugins = [ |
| 15 | + { |
| 16 | + icon: Brain, |
| 17 | + name: '@commandkit/ai', |
| 18 | + description: |
| 19 | + 'Execute bot commands using large language models with natural language processing.', |
| 20 | + color: 'purple', |
| 21 | + docUrl: '/docs/guide/official-plugins/commandkit-ai', |
| 22 | + }, |
| 23 | + { |
| 24 | + icon: BarChart3, |
| 25 | + name: '@commandkit/analytics', |
| 26 | + description: |
| 27 | + 'Track bot usage, command performance, and user engagement with Posthog and Umami.', |
| 28 | + color: 'blue', |
| 29 | + docUrl: '/docs/guide/official-plugins/commandkit-analytics', |
| 30 | + }, |
| 31 | + { |
| 32 | + icon: Database, |
| 33 | + name: '@commandkit/cache', |
| 34 | + description: |
| 35 | + 'High-performance caching system for speedy data storage and retrieval.', |
| 36 | + color: 'green', |
| 37 | + docUrl: '/docs/guide/official-plugins/commandkit-cache', |
| 38 | + }, |
| 39 | + { |
| 40 | + icon: Wrench, |
| 41 | + name: '@commandkit/devtools', |
| 42 | + description: |
| 43 | + 'Comprehensive development tools with web interface for debugging and monitoring.', |
| 44 | + color: 'orange', |
| 45 | + docUrl: '/docs/guide/official-plugins/commandkit-devtools', |
| 46 | + }, |
| 47 | + { |
| 48 | + icon: Globe, |
| 49 | + name: '@commandkit/i18n', |
| 50 | + description: |
| 51 | + 'Complete internationalization support for building global Discord applications.', |
| 52 | + color: 'indigo', |
| 53 | + docUrl: '/docs/guide/official-plugins/commandkit-i18n', |
| 54 | + }, |
| 55 | + { |
| 56 | + icon: Code2, |
| 57 | + name: '@commandkit/legacy', |
| 58 | + description: 'Support for migrating from CommandKit v0 to CommandKit v1.', |
| 59 | + color: 'gray', |
| 60 | + docUrl: '/docs/guide/official-plugins/commandkit-legacy', |
| 61 | + }, |
| 62 | + { |
| 63 | + icon: Server, |
| 64 | + name: '@commandkit/redis', |
| 65 | + description: |
| 66 | + 'Redis integration for distributed caching and data persistence across bot instances.', |
| 67 | + color: 'red', |
| 68 | + docUrl: '/docs/guide/official-plugins/commandkit-redis', |
| 69 | + }, |
| 70 | + { |
| 71 | + icon: Calendar, |
| 72 | + name: '@commandkit/tasks', |
| 73 | + description: |
| 74 | + 'Scheduled task management and cron job system for automated bot operations.', |
| 75 | + color: 'pink', |
| 76 | + docUrl: '/docs/guide/official-plugins/commandkit-tasks', |
| 77 | + }, |
| 78 | +]; |
| 79 | + |
| 80 | +const iconColors = { |
| 81 | + purple: 'from-purple-500 to-purple-600', |
| 82 | + blue: 'from-blue-500 to-blue-600', |
| 83 | + green: 'from-green-500 to-green-600', |
| 84 | + orange: 'from-orange-500 to-orange-600', |
| 85 | + indigo: 'from-indigo-500 to-indigo-600', |
| 86 | + pink: 'from-pink-500 to-pink-600', |
| 87 | + cyan: 'from-cyan-500 to-cyan-600', |
| 88 | + gray: 'from-gray-500 to-gray-600', |
| 89 | + yellow: 'from-yellow-500 to-yellow-600', |
| 90 | + red: 'from-red-500 to-red-600', |
| 91 | +}; |
| 92 | + |
| 93 | +export default function PluginsSection(): React.JSX.Element { |
| 94 | + return ( |
| 95 | + <section className="relative z-10 py-20 bg-gray-50/50 dark:bg-gray-900/20"> |
| 96 | + <div className="max-w-6xl mx-auto px-4"> |
| 97 | + <div className="text-center mb-12"> |
| 98 | + <h2 className="text-3xl font-bold mb-4">Powerful Plugin Ecosystem</h2> |
| 99 | + <p className="text-lg text-gray-600 dark:text-gray-400 max-w-3xl mx-auto"> |
| 100 | + Extend CommandKit with plugins that add specialized functionality to |
| 101 | + your Discord bots. From AI integration to analytics, CommandKiti has |
| 102 | + you covered. |
| 103 | + </p> |
| 104 | + </div> |
| 105 | + |
| 106 | + <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> |
| 107 | + {plugins.map((plugin, index) => { |
| 108 | + const IconComponent = plugin.icon; |
| 109 | + return ( |
| 110 | + <Link |
| 111 | + key={index} |
| 112 | + to={plugin.docUrl} |
| 113 | + className="bg-white dark:bg-gray-800 rounded-xl p-6 shadow-sm hover:shadow-lg border border-gray-200/50 dark:border-gray-700/50 group no-underline hover:no-underline block" |
| 114 | + > |
| 115 | + <div className="mb-4"> |
| 116 | + <div |
| 117 | + className={`w-12 h-12 bg-gradient-to-r ${iconColors[plugin.color]} rounded-lg flex items-center justify-center`} |
| 118 | + > |
| 119 | + <IconComponent className="w-6 h-6 text-white" /> |
| 120 | + </div> |
| 121 | + </div> |
| 122 | + |
| 123 | + <h3 className="text-lg font-semibold mb-2 font-mono text-gray-900 dark:text-white group-hover:text-purple-600 dark:group-hover:text-purple-400"> |
| 124 | + {plugin.name} |
| 125 | + </h3> |
| 126 | + <p className="text-sm text-gray-600 dark:text-gray-400 leading-relaxed"> |
| 127 | + {plugin.description} |
| 128 | + </p> |
| 129 | + </Link> |
| 130 | + ); |
| 131 | + })} |
| 132 | + </div> |
| 133 | + |
| 134 | + <div className="text-center mt-12"> |
| 135 | + <div className="inline-flex items-center gap-2 px-6 py-3 bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700"> |
| 136 | + <Code2 className="w-5 h-5 text-gray-500" /> |
| 137 | + <span className="text-sm text-gray-600 dark:text-gray-400"> |
| 138 | + Build your own custom plugins! |
| 139 | + <a |
| 140 | + href="/docs/guide/creating-plugins/creating-runtime-plugin" |
| 141 | + className="ml-1 text-purple-600 hover:text-purple-700 dark:text-purple-400" |
| 142 | + > |
| 143 | + Learn how to create plugins |
| 144 | + </a> |
| 145 | + </span> |
| 146 | + </div> |
| 147 | + </div> |
| 148 | + </div> |
| 149 | + </section> |
| 150 | + ); |
| 151 | +} |
0 commit comments