/
index.tsx
65 lines (61 loc) · 1.64 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import clsx from "clsx";
import React from "react";
import styles from "./styles.module.css";
import new_logo_black from "@site/static/img/new_logo_black.svg";
import new_logo_yellow from "@site/static/img/new_logo_yellow.svg";
import new_logo_blue from "@site/static/img/new_logo_blue.svg";
import Heading from "@theme/Heading";
type FeatureItem = {
title: string;
Svg: React.ComponentType<React.ComponentProps<"svg">>;
description: JSX.Element;
};
const FeatureList: FeatureItem[] = [
{
title: "Written in Rust",
Svg: new_logo_black,
description: (
<>Boa hopes to bring Rust safety garuantees to the world of JS engines.</>
),
},
{
title: "Aims for ECMAScript Conformance",
Svg: new_logo_yellow,
description: (
<>Boa currently passes more than 75% of ECMAScripts test262 test suite.</>
),
},
{
title: "Open Source",
Svg: new_logo_blue,
description: (
<>
Boa is an open source project and hosted on GitHub. Contributions are
always welcome!
</>
),
},
];
function Feature({ title, description }: FeatureItem) {
return (
<div className={clsx("col col--4")}>
<div className="text--center padding-horiz--md padding-vert--xl">
<Heading as="h3">{title}</Heading>
<p>{description}</p>
</div>
</div>
);
}
export default function HomepageFeatures(): JSX.Element {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}