|
1 | 1 | import {FC} from "react"; |
2 | | -import {Row, Col, Descriptions} from '@douyinfe/semi-ui'; |
| 2 | +import {Avatar, Card, Col, Descriptions, Row, Space} from '@douyinfe/semi-ui'; |
3 | 3 | import styles from "./styles.module.scss"; |
4 | | -import Image from "next/image"; |
5 | | -import ContributorForQQ from '@/public/contributor_1.png'; |
6 | | -import ContributorForWechat from '@/public/contributor_2.png'; |
7 | 4 |
|
8 | 5 | export interface IContributorsProps { |
9 | 6 | } |
10 | 7 |
|
11 | 8 | const Contributors: FC<IContributorsProps> = ({}) => { |
| 9 | + const {Meta} = Card; |
| 10 | + const Comments = [{ |
| 11 | + avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg', |
| 12 | + name: 'Mengzhou', |
| 13 | + content: '接入简单易上手;API 丰富全面。' |
| 14 | + }, { |
| 15 | + avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg', |
| 16 | + name: 'Mengzhou', |
| 17 | + content: '有很多公司内的其他业务使用,有比较多的样例参考,参考其他业务平台的设计方案,统一平台的交付标准。', |
| 18 | + }, { |
| 19 | + avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg', |
| 20 | + name: 'Mengzhou', |
| 21 | + content: '接入简单易上手;API 丰富全面。' |
| 22 | + }, { |
| 23 | + avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg', |
| 24 | + name: 'Mengzhou', |
| 25 | + content: '接入简单易上手;API 丰富全面。' |
| 26 | + }, { |
| 27 | + avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg', |
| 28 | + name: 'Mengzhou', |
| 29 | + content: 'API 丰富全面。', |
| 30 | + style: { marginTop: '40px'}, |
| 31 | + }, { |
| 32 | + avatar: 'https://lf3-static.bytednsdoc.com/obj/eden-cn/ptlz_zlp/ljhwZthlaukjlkulzlp/card-meta-avatar-docs-demo.jpg', |
| 33 | + name: 'Mengzhou', |
| 34 | + content: '接入简单易上手;API 丰富全面。' |
| 35 | + }] |
12 | 36 | return ( |
13 | 37 | <div className={styles.contributorsContainer}> |
14 | 38 | <p className={styles.title}>与用户共同成长</p> |
15 | 39 | <p className={styles.subTitle}>IoTSharp 重视我们的用户,加入并助力我们不断完善</p> |
16 | 40 | <Descriptions align="center" size="large" row> |
17 | | - <Descriptions.Item itemKey="Stars">795+</Descriptions.Item> |
18 | | - <Descriptions.Item itemKey="Fork">1100+</Descriptions.Item> |
19 | | - <Descriptions.Item itemKey="Download">1000+</Descriptions.Item> |
| 41 | + <Descriptions.Item itemKey="Stars">600+</Descriptions.Item> |
| 42 | + <Descriptions.Item itemKey="Fork">150+</Descriptions.Item> |
| 43 | + <Descriptions.Item itemKey="Download">180+</Descriptions.Item> |
20 | 44 | <Descriptions.Item itemKey="Contributors">30+</Descriptions.Item> |
21 | 45 | </Descriptions> |
22 | 46 | <div className={styles.imageBox}> |
23 | | - <Row type="flex" gutter={80}> |
24 | | - <Col xs={24} sm={24} md={12} lg={12} xl={12}> |
25 | | - <Image src={ContributorForQQ} alt="" width={90} height={90}/> |
26 | | - </Col> |
27 | | - <Col xs={24} sm={24} md={12} lg={12} xl={12}> |
28 | | - <Image src={ContributorForWechat} alt="" width={90} height={90}/> |
29 | | - </Col> |
| 47 | + <Row gutter={32} type="flex" align="top"> |
| 48 | + { |
| 49 | + Comments?.map((comment, index) => { |
| 50 | + return ( |
| 51 | + <Col span={8} style={{...comment?.style}}> |
| 52 | + <Card |
| 53 | + footerLine={false} |
| 54 | + headerLine={false} |
| 55 | + title={ |
| 56 | + <Meta |
| 57 | + avatar={ |
| 58 | + <Avatar |
| 59 | + alt="" |
| 60 | + size="default" |
| 61 | + src={comment?.avatar} |
| 62 | + /> |
| 63 | + } |
| 64 | + /> |
| 65 | + } |
| 66 | + footerStyle={{display: 'flex', justifyContent: 'flex-end'}} |
| 67 | + footer={ |
| 68 | + <Space> |
| 69 | + <div>{comment?.name}</div> |
| 70 | + </Space> |
| 71 | + } |
| 72 | + > |
| 73 | + {comment?.content} |
| 74 | + </Card> |
| 75 | + </Col> |
| 76 | + ) |
| 77 | + }) |
| 78 | + } |
30 | 79 | </Row> |
31 | 80 | </div> |
32 | | - |
33 | 81 | </div> |
34 | 82 | ); |
35 | 83 | }; |
|
0 commit comments