|
| 1 | +import React from 'react'; |
| 2 | +import clsx from 'clsx'; |
| 3 | +import Link from '@docusaurus/Link'; |
| 4 | +import styles from './HomepageFeatures.module.css'; |
| 5 | + |
| 6 | +const FeatureList = [ |
| 7 | + { |
| 8 | + title: 'Schedule Commands', |
| 9 | + icon: '\u23F0', |
| 10 | + description: 'Set up commands to run on intervals, at specific times of day, or on specific dates. Full control over when and how your commands execute.', |
| 11 | + link: '/docs/configuration/commands', |
| 12 | + }, |
| 13 | + { |
| 14 | + title: 'Powerful Conditions', |
| 15 | + icon: '\u2699\uFE0F', |
| 16 | + description: 'Execute commands only when specific conditions are met. Filter by player count, time of day, weather, permissions, and more.', |
| 17 | + link: '/docs/configuration/conditions', |
| 18 | + }, |
| 19 | + { |
| 20 | + title: 'Task Management', |
| 21 | + icon: '\uD83D\uDCCB', |
| 22 | + description: 'Organize commands into tasks with their own schedules and settings. Manage everything through an intuitive in-game GUI.', |
| 23 | + link: '/docs/configuration/commands', |
| 24 | + }, |
| 25 | + { |
| 26 | + title: 'Extensible', |
| 27 | + icon: '\uD83E\uDDE9', |
| 28 | + description: 'Extend functionality with custom extensions. Add new conditions, execution modes, and placeholders to fit your server needs.', |
| 29 | + link: '/docs/extensions/', |
| 30 | + }, |
| 31 | + { |
| 32 | + title: 'Placeholders', |
| 33 | + icon: '\uD83D\uDD04', |
| 34 | + description: 'Use dynamic placeholders in your commands. Supports PlaceholderAPI and built-in placeholders for flexible command templates.', |
| 35 | + link: '/docs/placeholders', |
| 36 | + }, |
| 37 | + { |
| 38 | + title: 'Developer API', |
| 39 | + icon: '\uD83D\uDEE0\uFE0F', |
| 40 | + description: 'Integrate CommandTimer into your own plugins with a clean API. Available through Maven and Gradle for easy setup.', |
| 41 | + link: '/docs/developers/', |
| 42 | + }, |
| 43 | +]; |
| 44 | + |
| 45 | +function Feature({ title, icon, description, link }) { |
| 46 | + return ( |
| 47 | + <div className={clsx('col col--4', styles.featureCol)}> |
| 48 | + <Link to={link} className={styles.featureCard}> |
| 49 | + <div className={styles.featureIcon}>{icon}</div> |
| 50 | + <h3 className={styles.featureTitle}>{title}</h3> |
| 51 | + <p className={styles.featureDescription}>{description}</p> |
| 52 | + </Link> |
| 53 | + </div> |
| 54 | + ); |
| 55 | +} |
| 56 | + |
| 57 | +export default function HomepageFeatures() { |
| 58 | + return ( |
| 59 | + <section className={styles.features}> |
| 60 | + <div className="container"> |
| 61 | + <div className={clsx('row', styles.featureRow)}> |
| 62 | + {FeatureList.map((props, idx) => ( |
| 63 | + <Feature key={idx} {...props} /> |
| 64 | + ))} |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + </section> |
| 68 | + ); |
| 69 | +} |
0 commit comments