Skip to content

Commit 5e6d829

Browse files
committed
fix:团队页面
1 parent d32bfa4 commit 5e6d829

File tree

2 files changed

+110
-7
lines changed

2 files changed

+110
-7
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: 77 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,85 @@
11
import React from 'react';
2-
import { Link } from 'react-router-dom';
32
import { DefaultProps } from '../../';
43
import styles from './index.module.less';
4+
import FooterTitle from '../../component/Footer'
5+
import { Layout, Row, Col } from 'uiw';
6+
const { Footer, Content } = Layout;
57

68
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+
]
726
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 >
1454
);
1555
}
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

Comments
 (0)