|
1 | 1 | import React from 'react'; |
2 | | -import { Link } from 'react-router-dom'; |
3 | 2 | import { DefaultProps } from '../../'; |
4 | 3 | import styles from './index.module.less'; |
| 4 | +import FooterTitle from '../../component/Footer' |
| 5 | +import { Layout, Row, Col } from 'uiw'; |
| 6 | +const { Footer, Content } = Layout; |
5 | 7 |
|
6 | 8 | export default function Team(props: DefaultProps) { |
| 9 | + const developInfo = [ |
| 10 | + { userName: "jaywcjlove", name: "小弟调调™", id: 1 }, |
| 11 | + { userName: "xingyuefeng", name: "xyf", id: 2 }, |
| 12 | + { userName: "ChenlingasMx", name: "Chenling", id: 3 }, |
| 13 | + { userName: "matuancc", name: "cc", id: 4 }, |
| 14 | + { userName: "yaochuxia", name: "yaochuxia", id: 5 }, |
| 15 | + { userName: "wj0990", name: "wangjie", id: 6 }, |
| 16 | + ] |
| 17 | + const designInfo = [ |
| 18 | + { userName: "jaywcjlove", name: "小弟调调™", id: 1 }, |
| 19 | + { userName: "matuancc", name: "cc", id: 4 }, |
| 20 | + { userName: "yaochuxia", name: "yaochuxia", id: 5 }, |
| 21 | + ] |
| 22 | + const documentInfo = [ |
| 23 | + { userName: "jaywcjlove", name: "小弟调调™", id: 1 }, |
| 24 | + { userName: "ChenlingasMx", name: "Chenling", id: 3 }, |
| 25 | + ] |
7 | 26 | return ( |
8 | | - <div className={styles.warpper}> |
9 | | - 团队 |
10 | | - <p> |
11 | | - <Link to="/components/about">查看组件文档</Link> |
12 | | - </p> |
13 | | - </div> |
| 27 | + <Layout> |
| 28 | + <Content> |
| 29 | + <Row justify="flex-start"> |
| 30 | + <Col className={styles.warpper}> |
| 31 | + <div style={{ display: "flex", justifyItems: 'center', alignItems: "flex-start", flexDirection: 'column' }}> |
| 32 | + <h4 style={{ fontSize: 20, fontFamily: "fantasy", fontWeight: 500 }}>开发</h4> |
| 33 | + <AvatarList avatarInfo={developInfo} /> |
| 34 | + </div> |
| 35 | + </Col> |
| 36 | + <Col className={styles.warpper}> |
| 37 | + <div style={{ display: "flex", justifyItems: 'center', alignItems: "flex-start", flexDirection: 'column' }}> |
| 38 | + <h4 style={{ fontSize: 20, fontFamily: "fantasy", fontWeight: 500 }}>设计</h4> |
| 39 | + <AvatarList avatarInfo={designInfo} /> |
| 40 | + </div> |
| 41 | + </Col> |
| 42 | + <Col className={styles.warpper}> |
| 43 | + <div style={{ display: "flex", justifyItems: 'center', alignItems: "flex-start", flexDirection: 'column' }}> |
| 44 | + <h4 style={{ fontSize: 20, fontFamily: "fantasy", fontWeight: 500 }}>文档</h4> |
| 45 | + <AvatarList avatarInfo={documentInfo} /> |
| 46 | + </div> |
| 47 | + </Col> |
| 48 | + </Row> |
| 49 | + </Content> |
| 50 | + <Footer> |
| 51 | + < FooterTitle /> |
| 52 | + </Footer> |
| 53 | + </Layout > |
14 | 54 | ); |
15 | 55 | } |
| 56 | + |
| 57 | +type PropsDeafult = { |
| 58 | + avatarInfo: Array<{ |
| 59 | + userName: string; |
| 60 | + name: string; |
| 61 | + id: number |
| 62 | + }> |
| 63 | +} |
| 64 | + |
| 65 | +function AvatarList(props: PropsDeafult) { |
| 66 | + const { avatarInfo = [] } = props |
| 67 | + return ( |
| 68 | + <div className={styles.flex_item}> |
| 69 | + { |
| 70 | + avatarInfo.map(item => |
| 71 | + <span className={styles.avatar} key={item.id}> |
| 72 | + <div className={styles.center}> |
| 73 | + <a href={`https://github.com/${item.userName}`} target="__blank"> |
| 74 | + <img src={`https://avatars.githubusercontent.com/${item.userName}`} alt={item.name} /> |
| 75 | + </a> |
| 76 | + <span style={{ fontSize: 18 }}>{item.name}</span> |
| 77 | + </div> |
| 78 | + </span> |
| 79 | + ) |
| 80 | + } |
| 81 | + </div> |
| 82 | + ) |
| 83 | +} |
| 84 | + |
| 85 | + |
0 commit comments