2022-05-20 11:29:08 +08:00
|
|
|
|
import React from 'react';
|
|
|
|
|
import clsx from 'clsx';
|
|
|
|
|
import styles from './styles.module.css';
|
|
|
|
|
|
|
|
|
|
type FeatureItem = {
|
|
|
|
|
title: string;
|
|
|
|
|
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
|
|
|
|
|
description: JSX.Element;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const FeatureList: FeatureItem[] = [
|
|
|
|
|
{
|
2022-07-05 18:10:58 +08:00
|
|
|
|
title: '性能提升',
|
2022-05-20 11:29:08 +08:00
|
|
|
|
description: (
|
|
|
|
|
<>
|
2022-07-05 18:10:58 +08:00
|
|
|
|
众多特性让你无需任何改动即可让项目的性能得到提升,并且能通过手动优化达到更好的效果。
|
2022-05-20 11:29:08 +08:00
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-05 18:10:58 +08:00
|
|
|
|
title: '完全开源',
|
2022-05-20 11:29:08 +08:00
|
|
|
|
description: (
|
|
|
|
|
<>
|
2022-07-11 12:10:40 +08:00
|
|
|
|
增强包是完全开源的项目,包括对原生引擎、JavaScript 引擎的改动都附有详细的原理文档。
|
2022-05-20 11:29:08 +08:00
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-05 18:10:58 +08:00
|
|
|
|
title: '原生体验',
|
2022-05-20 11:29:08 +08:00
|
|
|
|
description: (
|
|
|
|
|
<>
|
2022-07-05 18:10:58 +08:00
|
|
|
|
所有特性都通过自定义引擎实现,这种深度整合能带来其他方式所没有的 “原生” 的使用体验。
|
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '增强特性',
|
|
|
|
|
description: (
|
|
|
|
|
<>
|
|
|
|
|
文本高 DPI 渲染、Spine 换装等实用特性的加入,让你的游戏开发更加省时省力省心。
|
2022-05-20 11:29:08 +08:00
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
function Feature({title, Svg, description}: FeatureItem) {
|
|
|
|
|
return (
|
2022-07-05 18:10:58 +08:00
|
|
|
|
<div className={clsx('col col--3')}>
|
|
|
|
|
{/* <div className="text--center">
|
2022-05-20 11:29:08 +08:00
|
|
|
|
<Svg className={styles.featureSvg} role="img" />
|
2022-07-05 18:10:58 +08:00
|
|
|
|
</div> */}
|
2022-05-20 11:29:08 +08:00
|
|
|
|
<div className="text--center padding-horiz--md">
|
|
|
|
|
<h3>{title}</h3>
|
|
|
|
|
<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>
|
|
|
|
|
);
|
|
|
|
|
}
|