SharedCourses/src/components/HomepageFeatures/index.js

62 lines
2.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
const FeatureList = [
{
title: '这是什么?',
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
description: (
<>
课栈是一群 ECNU 学生自发组织与构建的课程资料共享项目为的是收集与整合学校各专业课程的学习资料以帮助后来的学生更好地度过学校生活
</>
),
},
{
title: '怎么使用?',
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
description: (
<>
使用左上角查阅目录寻找自己希望查询的课程以浏览或者右上角直接搜索课程专业名称或关键字如果缺少想要的资料还请等待后续更新或者将自己的资料上传上来敬请期待
</>
),
},
{
title: '我也有资料想要贡献!',
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
description: (
<>
如果您会使用Github的话可以在我们的仓库中新建issue与PR提交文件可存放在个人网盘(如百度网盘)等地方如果不便使用还可以联系zy1834576129@outlook.com课栈资料贡献[学院][专业][课程]的格式作为主题发送邮件我们自己整理上传
</>
),
},
];
function Feature({Svg, title, description}) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div>
<div className="text--center padding-horiz--md">
<Heading as="h3">{title}</Heading>
<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>
);
}