-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.tsx
More file actions
67 lines (63 loc) · 1.66 KB
/
index.tsx
File metadata and controls
67 lines (63 loc) · 1.66 KB
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
66
67
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: React.ReactNode;
};
const FeatureList: FeatureItem[] = [
{
title: "Written in Rust",
Svg: new_logo_black,
description: (
<>
Boa brings Rust's memory safety guarantees to the world of JS engines.
</>
),
},
{
title: "Aims for ECMAScript Conformance",
Svg: new_logo_yellow,
description: (
<>Boa passes more than 90% of ECMAScripts test262 test suite.</>
),
},
{
title: "Free and 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(): React.ReactNode {
return (
<section className={styles.features}>
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<Feature key={idx} {...props} />
))}
</div>
</div>
</section>
);
}