Passed
Pull Request — master (#174)
by
unknown
03:57
created

HomepageFeatures.js ➔ HomepageFeatures   A

Complexity

Conditions 1

Size

Total Lines 12
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 12
c 0
b 0
f 0
rs 9.85
cc 1
1
import React from 'react';
2
import clsx from 'clsx';
3
import styles from './HomepageFeatures.module.css';
4
5
const FeatureList = [
6
  {
7
    title: 'Beginner Friendly',
8
    Svg: require('../../static/img/undraw_docusaurus_mountain.svg').default,
9
    description: (
10
      <>
11
        A beginner friendly way for editing and creating mailables and editing templates inside a Laravel application.
12
      </>
13
    ),
14
  },
15
  {
16
    title: 'Focus on What Matters',
17
    Svg: require('../../static/img/undraw_docusaurus_tree.svg').default,
18
    description: (
19
      <>
20
        Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
21
        ahead and move your docs into the <code>docs</code> directory.
22
      </>
23
    ),
24
  },
25
  {
26
    title: 'Powered by React',
27
    Svg: require('../../static/img/undraw_docusaurus_react.svg').default,
28
    description: (
29
      <>
30
        Extend or customize your website layout by reusing React. Docusaurus can
31
        be extended while reusing the same header and footer.
32
      </>
33
    ),
34
  },
35
];
36
37
function Feature({Svg, title, description}) {
38
  return (
39
    <div className={clsx('col col--4')}>
40
      <div className="text--center">
41
        <Svg className={styles.featureSvg} alt={title} />
42
      </div>
43
      <div className="text--center padding-horiz--md">
44
        <h3>{title}</h3>
45
        <p>{description}</p>
46
      </div>
47
    </div>
48
  );
49
}
50
51
export default function HomepageFeatures() {
52
  return (
53
    <section className={styles.features}>
54
      <div className="container">
55
        <div className="row">
56
          {FeatureList.map((props, idx) => (
57
            <Feature key={idx} {...props} />
58
          ))}
59
        </div>
60
      </div>
61
    </section>
62
  );
63
}
64