Skip to content

Commit 352765e

Browse files
haxTechQuery
authored andcommitted
add info about membership type and join date
1 parent 5a224b5 commit 352765e

File tree

2 files changed

+25
-9
lines changed

2 files changed

+25
-9
lines changed

source/data/members-china.json

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,50 @@
33
"name": "三六零科技集团有限公司",
44
"logo": "https://p3.ssl.qhimg.com/t011e94f0b9ed8e66b0.png",
55
"link": "https://www.360.cn/",
6-
"representatives": ["李智杰", "王先坤"]
6+
"membership": "Associate",
7+
"startDate": "2019-06",
8+
"gaRep": "李智杰",
9+
"gaAlt": "王先坤"
710
},
811
{
912
"name": "阿里巴巴(中国)有限公司",
1013
"logo": "https://docs.alibabagroup.com/assets2/images/cn/global/logo_header.png",
1114
"link": "https://www.alibabagroup.com/",
12-
"representatives": ["郑叶飞"]
15+
"membership": "Associate",
16+
"startDate": "2019-12",
17+
"gaRep": "郑叶飞"
1318
},
1419
{
1520
"name": "腾讯",
1621
"logo": "https://www.tencent.com/img/index/tencent_logo.png",
1722
"link": "https://www.tencent.com/",
18-
"representatives": ["郑苏波"]
23+
"membership": "Associate",
24+
"startDate": "2020-06",
25+
"gaRep": "郑苏波"
1926
},
2027
{
2128
"name": "华为技术有限公司",
2229
"logo": "https://www-file.huawei.com/-/media/corporate/images/home/logo/huawei_logo.png",
2330
"link": "https://www.huawei.com/",
24-
"representatives": ["侯凡", "王亚举"]
31+
"membership": "Associate",
32+
"startDate": "2019-12",
33+
"gaRep": "侯凡",
34+
"gaAlt": "王亚举"
2535
},
2636
{
2737
"name": "Sujitech",
2838
"logo": "https://www.ecma-international.org/wp-content/uploads/Sujitech-logo.gif",
2939
"link": "https://sujitech.com/",
30-
"representatives": ["刘怿斯"]
40+
"membership": "SPC",
41+
"startDate": "2019-12",
42+
"gaRep": "刘怿斯"
3143
},
3244
{
3345
"name": "北京字节跳动网络技术有限公司",
3446
"logo": "https://www.ecma-international.org/wp-content/uploads/beijing_bytedance-logo.gif",
3547
"link": "https://www.bytedance.com/",
36-
"representatives": ["张荣剑"]
48+
"membership": "Associate",
49+
"startDate": "2021-06",
50+
"gaRep": "张荣剑"
3751
}
3852
]

source/page/Organization.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import { createCell, Fragment } from 'web-cell';
22
import { Image } from 'boot-cell/source/Media/Image';
33
import { Card, CardFooter } from 'boot-cell/source/Content/Card';
4+
import { formatDate } from 'web-utility/source/date';
45

56
import organizations from '../data/members-china.json';
67

78
export function OrganizationPage() {
89
return (
910
<>
10-
<h1 className="my-5 text-center">TC39 中国会员单位</h1>
11+
<h1 className="my-5 text-center">Ecma国际 中国会员单位</h1>
1112

1213
<ul className="list-unstyled row">
13-
{organizations.map(({ logo, link, name, representatives }) => (
14+
{organizations.map(({ logo, link, name, gaRep, gaAlt, membership, startDate }) => (
1415
<li className="col-12 col-sm-6 col-md-3 px-2 my-2 d-flex">
1516
<Card
1617
className="shadow-sm flex-fill"
@@ -36,7 +37,8 @@ export function OrganizationPage() {
3637
}
3738
>
3839
<CardFooter className="small">
39-
ECMA 大会代表:{representatives.join('、')}
40+
<div>{formatDate(startDate, 'YYYY年M月')}成为{membership}会员</div>
41+
<div>会员大会代表:{gaRep}{gaAlt && `、${gaAlt}`}</div>
4042
</CardFooter>
4143
</Card>
4244
</li>

0 commit comments

Comments
 (0)