|
1 | | -import Footer from '../../component/Footer'; |
| 1 | +import React from 'react'; |
2 | 2 | import { DefaultProps } from '../../'; |
3 | 3 | import styles from './index.module.less'; |
| 4 | +import FooterTitle from '../../component/Footer' |
| 5 | +import { Layout, Row, Col } from 'uiw'; |
| 6 | +const { Footer, Content, Header } = Layout; |
4 | 7 |
|
5 | 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 | + ] |
6 | 26 | return ( |
7 | | - <div className={styles.warpper}> |
8 | | - <header className={styles.header}> |
| 27 | + <Layout> |
| 28 | + <Header style={{ background: "#fff" }}> |
9 | 29 | <div> |
10 | | - <h2>UIW Mobile RN</h2> |
11 | | - <p> |
12 | | - 一个基于 React Native 的 UI 组件库 |
13 | | - </p> |
| 30 | + <span style={{ color: "#697b8c", fontSize: 16, fontWeight: 500 }}>UIW Mobile RN 一个基于 React Native 的 UI 组件库</span> |
14 | 31 | </div> |
15 | | - </header> |
16 | | - <Footer /> |
17 | | - </div> |
| 32 | + </Header> |
| 33 | + <Content> |
| 34 | + <Row justify="flex-start"> |
| 35 | + <Col className={styles.warpper}> |
| 36 | + <div style={{ display: "flex", justifyItems: 'center', alignItems: "flex-start", flexDirection: 'column' }}> |
| 37 | + <h4 style={{ fontSize: 20, fontFamily: "fantasy", fontWeight: 500 }}>开发</h4> |
| 38 | + <AvatarList avatarInfo={developInfo} /> |
| 39 | + </div> |
| 40 | + </Col> |
| 41 | + <Col className={styles.warpper}> |
| 42 | + <div style={{ display: "flex", justifyItems: 'center', alignItems: "flex-start", flexDirection: 'column' }}> |
| 43 | + <h4 style={{ fontSize: 20, fontFamily: "fantasy", fontWeight: 500 }}>设计</h4> |
| 44 | + <AvatarList avatarInfo={designInfo} /> |
| 45 | + </div> |
| 46 | + </Col> |
| 47 | + <Col className={styles.warpper}> |
| 48 | + <div style={{ display: "flex", justifyItems: 'center', alignItems: "flex-start", flexDirection: 'column' }}> |
| 49 | + <h4 style={{ fontSize: 20, fontFamily: "fantasy", fontWeight: 500 }}>文档</h4> |
| 50 | + <AvatarList avatarInfo={documentInfo} /> |
| 51 | + </div> |
| 52 | + </Col> |
| 53 | + </Row> |
| 54 | + </Content> |
| 55 | + <Footer> |
| 56 | + < FooterTitle /> |
| 57 | + </Footer> |
| 58 | + </Layout > |
18 | 59 | ); |
19 | 60 | } |
| 61 | + |
| 62 | +type PropsDeafult = { |
| 63 | + avatarInfo: Array<{ |
| 64 | + userName: string; |
| 65 | + name: string; |
| 66 | + id: number |
| 67 | + }> |
| 68 | +} |
| 69 | + |
| 70 | +function AvatarList(props: PropsDeafult) { |
| 71 | + const { avatarInfo = [] } = props |
| 72 | + return ( |
| 73 | + <div className={styles.flex_item}> |
| 74 | + { |
| 75 | + avatarInfo.map(item => |
| 76 | + <span className={styles.avatar} key={item.id}> |
| 77 | + <div className={styles.center}> |
| 78 | + <a href={`https://github.com/${item.userName}`} target="__blank"> |
| 79 | + <img src={`https://avatars.githubusercontent.com/${item.userName}`} alt={item.name} /> |
| 80 | + </a> |
| 81 | + <span style={{ fontSize: 18 }}>{item.name}</span> |
| 82 | + </div> |
| 83 | + </span> |
| 84 | + ) |
| 85 | + } |
| 86 | + </div> |
| 87 | + ) |
| 88 | +} |
| 89 | + |
| 90 | + |
0 commit comments