squiggle/packages/website/src/components/HomepageFeatures.js

56 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-04-10 23:15:46 +00:00
import React from "react";
import clsx from "clsx";
import styles from "./HomepageFeatures.module.css";
2022-02-06 18:40:28 +00:00
const FeatureList = [
{
2022-04-10 23:15:46 +00:00
title: "Probabilistic",
2022-02-06 18:40:28 +00:00
description: (
2022-04-10 23:15:46 +00:00
<>Squiggle makes working with probability distributions really easy.</>
2022-02-06 18:40:28 +00:00
),
},
{
2022-04-10 23:15:46 +00:00
title: "Portable",
2022-02-06 18:40:28 +00:00
description: (
<>
2022-04-10 23:15:46 +00:00
Squiggle is in a small Rescript / Javascript library. It can be used
wherever Rescript and Javascript are available.
2022-02-06 18:40:28 +00:00
</>
),
},
{
2022-04-10 23:15:46 +00:00
title: "Fast",
2022-02-06 18:40:28 +00:00
description: (
<>
2022-04-10 23:15:46 +00:00
Squiggle tries to get as far as it can without resorting to Monte Carlo
simulation, but does so when necessary.
2022-02-06 18:40:28 +00:00
</>
),
},
];
2022-04-10 23:15:46 +00:00
function Feature({ Svg, title, description }) {
2022-02-06 18:40:28 +00:00
return (
2022-04-10 23:15:46 +00:00
<div className={clsx("col col--4")}>
2022-02-06 18:40:28 +00:00
<div className="text--center padding-horiz--md">
<h3>{title}</h3>
<p>{description}</p>
</div>
</div>
);
}
export default function HomepageFeatures() {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}