This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev
in repository
https://gitbox.apache.org/repos/asf/incubator-streampark-website.git
The following commit(s) were added to refs/heads/dev by this push:
new f69467a7 teams image improvement
f69467a7 is described below
commit f69467a707277f81b70253212d48e85702a948ae
Author: benjobs <[email protected]>
AuthorDate: Sat Sep 9 10:11:01 2023 +0800
teams image improvement
---
src/pages/team/index.jsx | 12 ++++++--
src/pages/team/languages.json | 72 +++++++++++++++++++++----------------------
2 files changed, 45 insertions(+), 39 deletions(-)
diff --git a/src/pages/team/index.jsx b/src/pages/team/index.jsx
index 9b30d377..aa66c07b 100644
--- a/src/pages/team/index.jsx
+++ b/src/pages/team/index.jsx
@@ -12,9 +12,15 @@ export default function () {
const isBrowser = useIsBrowser();
const language = isBrowser && location.pathname.indexOf('/zh-CN/') === 0 ?
'zh-CN' : 'en';
const dataSource = config?.[language];
+
function getGitName(url) {
return '@' + url.replace('https://github.com/', '');
}
+
+ function avatarUrl(id) {
+ return 'https://avatars.githubusercontent.com/u/'+ id + '?v=4'
+ }
+
return (
<BrowserOnly>
{() => {
@@ -41,7 +47,7 @@ export default function () {
<div className='team-box my-3' key={i} data-aos="fade-up"
data-aos-delay={i * 100}>
<div className="hover-top-in text-center" >
<div className="overflow-hidden z-index-1
position-relative px-5">
- <img className="team-user-img" src={item.avatarUrl}
title="" alt="" />
+ <img className="team-user-img"
src={avatarUrl(item.githubId)} title="" alt="" />
</div>
<div className="position-relative bg-team text-center
hover-top--in">
<h6 className="font-weight-bold team-name
mb-1">{item.name}</h6>
@@ -68,7 +74,7 @@ export default function () {
<div className='team-box my-3' key={i} data-aos="fade-up"
data-aos-delay={i * 100}>
<div className="hover-top-in text-center" >
<div className="overflow-hidden z-index-1
position-relative px-5">
- <img className="team-user-img" src={item.avatarUrl}
title="" alt="" />
+ <img className="team-user-img"
src={avatarUrl(item.githubId)} title="" alt="" />
</div>
<div className="position-relative bg-team text-center
hover-top--in">
<h6 className="font-weight-bold team-name
mb-1">{item.name}</h6>
@@ -95,7 +101,7 @@ export default function () {
<div className='team-box my-3' key={i} data-aos="fade-up"
data-aos-delay={i * 100}>
<div className="hover-top-in text-center" >
<div className="overflow-hidden z-index-1
position-relative px-5">
- <img className="team-user-img" src={item.avatarUrl}
title="" alt="" />
+ <img className="team-user-img"
src={avatarUrl(item.githubId)} title="" alt="" />
</div>
<div className="position-relative bg-team text-center
hover-top--in">
<h6 className="font-weight-bold team-name
mb-1">{item.name}</h6>
diff --git a/src/pages/team/languages.json b/src/pages/team/languages.json
index 6229b11e..08e41281 100644
--- a/src/pages/team/languages.json
+++ b/src/pages/team/languages.json
@@ -6,96 +6,96 @@
},
"mentor" : [
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/18818196?v=4",
+ "githubId": "18818196",
"gitUrl": "https://github.com/tisonkun",
"name": "tison"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/219644?v=4",
+ "githubId": "219644",
"gitUrl": "https://github.com/WillemJiang",
"name": "Willem Ning Jiang"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/4958168?v=4",
+ "githubId": "4958168",
"gitUrl": "https://github.com/Apache9",
"name": "Duo Zhang"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/1727146?v=4",
+ "githubId": "1727146",
"gitUrl": "https://github.com/StephanEwen",
"name": "Stephan Ewen"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/263695?v=4",
+ "githubId": "263695",
"gitUrl": "https://github.com/tweise",
"name": "Thomas Weise"
}
],
"PPMC": [
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/13284744?v=4",
+ "githubId": "13284744",
"gitUrl": "https://github.com/wolfboys",
"name": "Huajie Wang"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/22493821?v=4",
+ "githubId": "22493821",
"gitUrl": "https://github.com/Al-assad",
"name": "Linying Yu"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/60029759?v=4",
+ "githubId": "60029759",
"gitUrl": "https://github.com/MonsterChenzhuo",
"name": "Zhuoyu Chen"
},
{
- "avatarUrl":"https://avatars.githubusercontent.com/u/5511181?v=4",
+ "githubId":"5511181",
"gitUrl":"https://github.com/GuoNingNing",
"name":"Ning Guo"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/7881241?v=4",
+ "githubId": "7881241",
"gitUrl": "https://github.com/xinzhuxiansheng",
"name": "Yang Zhou"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/29084491?v=4",
+ "githubId": "29084491",
"gitUrl": "https://github.com/lvshaokang",
"name": "Shaokang Lv"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/45427129?v=4",
+ "githubId": "45427129",
"gitUrl": "https://github.com/monrg",
"name": "Qingrong Wang"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/19602424?v=4",
+ "githubId": "19602424",
"gitUrl": "https://github.com/macksonmu",
"name": "Chunjin Mu"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/39726513?v=4",
+ "githubId": "39726513",
"gitUrl": "https://github.com/wangsizhu0504",
"name": "Sizhu Wang"
}
],
"committer" : [
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/38427477?v=4",
+ "githubId": "38427477",
"gitUrl": "https://github.com/1996fanrui",
"name": "Rui Fan"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/23091870?v=4",
+ "githubId": "23091870",
"gitUrl": "https://github.com/zhoulii",
"name": "Li Zhou"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/13617900?v=4",
+ "githubId": "13617900",
"gitUrl": "https://github.com/GOODBOY008",
"name": "Zhongqiang Gong"
},
{
- "avatarUrl":
"https://avatars.githubusercontent.com/u/64569824?s=96&v=4",
+ "githubId": "64569824",
"gitUrl": "https://github.com/RocMarshal",
"name": "Yuepeng Pan"
}
@@ -108,96 +108,96 @@
},
"mentor" : [
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/18818196?v=4",
+ "githubId": "18818196",
"gitUrl": "https://github.com/tisonkun",
"name": "tison"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/219644?v=4",
+ "githubId": "219644",
"gitUrl": "https://github.com/WillemJiang",
"name": "Willem Ning Jiang"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/4958168?v=4",
+ "githubId": "4958168",
"gitUrl": "https://github.com/Apache9",
"name": "Duo Zhang"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/1727146?v=4",
+ "githubId": "1727146",
"gitUrl": "https://github.com/StephanEwen",
"name": "Stephan Ewen"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/263695?v=4",
+ "githubId": "263695",
"gitUrl": "https://github.com/tweise",
"name": "Thomas Weise"
}
],
"PPMC": [
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/13284744?v=4",
+ "githubId": "13284744",
"gitUrl": "https://github.com/wolfboys",
"name": "Huajie Wang"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/22493821?v=4",
+ "githubId": "22493821",
"gitUrl": "https://github.com/Al-assad",
"name": "Linying Yu"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/60029759?v=4",
+ "githubId": "60029759",
"gitUrl": "https://github.com/MonsterChenzhuo",
"name": "Zhuoyu Chen"
},
{
- "avatarUrl":"https://avatars.githubusercontent.com/u/5511181?v=4",
+ "githubId":"5511181",
"gitUrl":"https://github.com/GuoNingNing",
"name":"Ning Guo"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/7881241?v=4",
+ "githubId": "7881241",
"gitUrl": "https://github.com/xinzhuxiansheng",
"name": "Yang Zhou"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/29084491?v=4",
+ "githubId": "29084491",
"gitUrl": "https://github.com/lvshaokang",
"name": "Shaokang Lv"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/45427129?v=4",
+ "githubId": "45427129",
"gitUrl": "https://github.com/monrg",
"name": "Qingrong Wang"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/19602424?v=4",
+ "githubId": "19602424",
"gitUrl": "https://github.com/macksonmu",
"name": "Chunjin Mu"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/39726513?v=4",
+ "githubId": "39726513",
"gitUrl": "https://github.com/wangsizhu0504",
"name": "Sizhu Wang"
}
],
"committer" : [
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/38427477?v=4",
+ "githubId": "38427477",
"gitUrl": "https://github.com/1996fanrui",
"name": "Rui Fan"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/23091870?v=4",
+ "githubId": "23091870",
"gitUrl": "https://github.com/zhoulii",
"name": "Li Zhou"
},
{
- "avatarUrl": "https://avatars.githubusercontent.com/u/13617900?v=4",
+ "githubId": "13617900",
"gitUrl": "https://github.com/GOODBOY008",
"name": "Zhongqiang Gong"
},
{
- "avatarUrl":
"https://avatars.githubusercontent.com/u/64569824?s=96&v=4",
+ "githubId": "64569824",
"gitUrl": "https://github.com/RocMarshal",
"name": "Yuepeng Pan"
}