Skip to content

Commit b6e7b4a

Browse files
authored
Merge pull request #122 from ChenlingasMx/master
team团队页面
2 parents 8967407 + c88e2af commit b6e7b4a

File tree

2 files changed

+114
-10
lines changed

2 files changed

+114
-10
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
.warpper {
3+
background: #fff;
4+
padding:23px;
5+
}
6+
7+
.avatar {
8+
margin-left: 24px ;
9+
margin-bottom: 24px;
10+
a {
11+
display: flex;
12+
13+
&+a {
14+
margin-left: 5px;
15+
}
16+
}
17+
18+
img {
19+
margin-right: 12px;
20+
width: 51px;
21+
border-radius: 50px;
22+
}
23+
}
24+
25+
.center {
26+
display: flex;
27+
align-items: center;
28+
justify-items: center;
29+
// flex-direction: column;
30+
}
31+
32+
33+

website/src/pages/team/index.tsx

Lines changed: 81 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,90 @@
1-
import Footer from '../../component/Footer';
1+
import React from 'react';
22
import { DefaultProps } from '../../';
33
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;
47

58
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+
]
626
return (
7-
<div className={styles.warpper}>
8-
<header className={styles.header}>
27+
<Layout>
28+
<Header style={{ background: "#fff" }}>
929
<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>
1431
</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 >
1859
);
1960
}
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

Comments
 (0)