|
| 1 | +import clsx from 'clsx'; |
| 2 | +import Heading from '@theme/Heading'; |
| 3 | +import styles from './styles.module.css'; |
| 4 | + |
| 5 | + |
| 6 | +const FeatureList = [ |
| 7 | + { |
| 8 | + title: 'Accessible by design', |
| 9 | + Svg: require('@site/static/images/HomePage/Accessibility-tier-4.svg').default, |
| 10 | + description: ( |
| 11 | + <> |
| 12 | + Built so everyone can engage with visual code — helping developers create experiences that are inclusive by default. |
| 13 | + </> |
| 14 | + ), |
| 15 | + }, |
| 16 | + { |
| 17 | + title: 'Built for flexibility', |
| 18 | + Svg: require('@site/static/images/HomePage/Explore-tier-4.svg').default, |
| 19 | + description: ( |
| 20 | + <> |
| 21 | + An open-source library that adapts to your needs. With APIs, generators, and integrations, Blockly fits into most platforms, and environments. |
| 22 | + </> |
| 23 | + ), |
| 24 | + }, |
| 25 | + { |
| 26 | + title: 'Driven by community', |
| 27 | + Svg: require('@site/static/images/HomePage/Connect-tier-4.svg').default, |
| 28 | + description: ( |
| 29 | + <> |
| 30 | + A global community of passionate developers and educators helps Blockly stay open, innovative, and ready for what’s next. |
| 31 | + </> |
| 32 | + ), |
| 33 | + }, |
| 34 | +]; |
| 35 | + |
| 36 | +function Feature({Svg, title, description}) { |
| 37 | + return ( |
| 38 | + <div className={clsx('col col--4')}> |
| 39 | + <div className="text--center"> |
| 40 | + <Svg className={styles.featureSvg} role="img" /> |
| 41 | + </div> |
| 42 | + <div className="text--center padding-horiz--md"> |
| 43 | + <Heading as="h2">{title}</Heading> |
| 44 | + <p>{description}</p> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + ); |
| 48 | +} |
| 49 | + |
| 50 | +export default function HomepageFeatures() { |
| 51 | + return ( |
| 52 | + <section className={styles.features}> |
| 53 | + <div className="container"> |
| 54 | + <div className="row"> |
| 55 | + {FeatureList.map((props, idx) => ( |
| 56 | + <Feature key={idx} {...props} /> |
| 57 | + ))} |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + </section> |
| 61 | + ); |
| 62 | +} |
0 commit comments