Skip to content

Commit

Permalink
feat: #266 speed up static file (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
stu01509 authored Mar 30, 2021
1 parent 6561b84 commit 75637c4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const Showcase = () => {
}
const showcases = siteConfig.customFields.showcases.map((user) => (
<a href={user.infoLink} key={user.infoLink} target="_blank">
<img className="user-logo" src={user.image} alt={user.caption} />
<img className="user-logo" src={'https://cdn.jsdelivr.net/gh/apache/apisix-website@master/website/static/img/' + user.image} alt={user.caption} />
</a>
));
const middleIndex = (showcases.length / 2).toFixed(0);
Expand Down
86 changes: 43 additions & 43 deletions website/static/data/showcases.json
Original file line number Diff line number Diff line change
@@ -1,260 +1,260 @@
[
{
"caption": "360 奇虎",
"image": "../img/showcase/360.png",
"image": "showcase/360.png",
"infoLink": "https://www.360.cn/",
"pinned": true
},
{
"caption": "大商天狗",
"image": "../img/showcase/51tiangou.svg",
"image": "showcase/51tiangou.svg",
"infoLink": "http://51tiangou.com/",
"pinned": true
},
{
"caption": "妙笔 AI",
"image": "../img/showcase/aimiaobi.png",
"image": "showcase/aimiaobi.png",
"infoLink": "http://aimiaobi.com/",
"pinned": true
},
{
"caption": "超链云商",
"image": "../img/showcase/chaolian360.png",
"image": "showcase/chaolian360.png",
"infoLink": "https://www.chaolian360.com/",
"pinned": true
},
{
"caption": "DaoCloud",
"image": "../img/showcase/daocloud.png",
"image": "showcase/daocloud.png",
"infoLink": "https://www.daocloud.io/",
"pinned": true
},
{
"caption": "小电科技",
"image": "../img/showcase/dian.png",
"image": "showcase/dian.png",
"infoLink": "http://dian.so/",
"pinned": true
},
{
"caption": "嘀嗒出行",
"image": "../img/showcase/didachuxing.jpg",
"image": "showcase/didachuxing.jpg",
"infoLink": "https://www.didachuxing.com/",
"pinned": true
},
{
"caption": "湖南新云网",
"image": "../img/showcase/cunw.png",
"image": "showcase/cunw.png",
"infoLink": "http://www.cunw.com.cn/",
"pinned": true
},
{
"caption": "大搜车",
"image": "../img/showcase/dasouche.png",
"image": "showcase/dasouche.png",
"infoLink": "https://www.dasouche.com/",
"pinned": true
},
{
"caption": "大淘客",
"image": "../img/showcase/dataoke.png",
"image": "showcase/dataoke.png",
"infoLink": "https://www.dataoke.com/",
"pinned": true
},
{
"caption": "eFactory",
"image": "../img/showcase/eFactory.webp",
"image": "showcase/eFactory.webp",
"infoLink": "https://www.efactory-project.eu/",
"pinned": true
},
{
"caption": "理房通",
"image": "../img/showcase/ehomepay.png",
"image": "showcase/ehomepay.png",
"infoLink": "https://www.ehomepay.com.cn/",
"pinned": true
},
{
"caption": "简单一点科技",
"image": "../img/showcase/eZone.png",
"image": "showcase/eZone.png",
"infoLink": "https://ezone.work/",
"pinned": true
},
{
"caption": "fansup",
"image": "../img/showcase/fansup.png",
"image": "showcase/fansup.png",
"infoLink": "https://fansup.mobi/",
"pinned": true
},
{
"caption": "海尔优家",
"image": "../img/showcase/haier.webp",
"image": "showcase/haier.webp",
"infoLink": "http://haieruplus.com/",
"pinned": true
},
{
"caption": "中移杭研",
"image": "../img/showcase/hy10086.png",
"image": "showcase/hy10086.png",
"infoLink": "https://hy.10086.cn/",
"pinned": true
},
{
"caption": "航天网信",
"image": "../img/showcase/htzhiyun.png",
"image": "showcase/htzhiyun.png",
"infoLink": "https://www.htzhiyun.cn/",
"pinned": true
},
{
"caption": "好洛维",
"image": "../img/showcase/hellowin.jpg",
"image": "showcase/hellowin.jpg",
"infoLink": "http://www.hellowin.cn/",
"pinned": true
},
{
"caption": "HelloTalk",
"image": "../img/showcase/HelloTalk.png",
"image": "showcase/HelloTalk.png",
"infoLink": "https://www.hellotalk.com/",
"pinned": true
},
{
"caption": "华为",
"image": "../img/showcase/huawei.png",
"image": "showcase/huawei.png",
"infoLink": "http://huawei.com/",
"pinned": true
},
{
"caption": "虎牙",
"image": "../img/showcase/huya.jpg",
"image": "showcase/huya.jpg",
"infoLink": "https://www.huya.com/",
"pinned": true
},
{
"caption": "艾佳生活",
"image": "../img/showcase/ihomefnt.gif",
"image": "showcase/ihomefnt.gif",
"infoLink": "https://www.ihomefnt.com/",
"pinned": true
},
{
"caption": "简单心理",
"image": "../img/showcase/jiandanxinli.png",
"image": "showcase/jiandanxinli.png",
"infoLink": "https://www.jiandanxinli.com/",
"pinned": true
},
{
"caption": "同程金服",
"image": "../img/showcase/jr_ly.png",
"image": "showcase/jr_ly.png",
"infoLink": "https://jr.ly.com/",
"pinned": true
},
{
"caption": "贝壳找房",
"image": "../img/showcase/ke.png",
"image": "showcase/ke.png",
"infoLink": "https://www.ke.com/",
"pinned": true
},
{
"caption": "魅族",
"image": "../img/showcase/meizu.jpg",
"image": "showcase/meizu.jpg",
"infoLink": "https://www.meizu.com/",
"pinned": true
},
{
"caption": "明源云客",
"image": "../img/showcase/mingyuanyun.jpg",
"image": "showcase/mingyuanyun.jpg",
"infoLink": "https://www.mingyuanyun.com/",
"pinned": true
},
{
"caption": "NASA",
"image": "../img/showcase/nasa.png",
"image": "showcase/nasa.png",
"infoLink": "https://www.jpl.nasa.gov/",
"pinned": true
},
{
"caption": "网易",
"image": "../img/showcase/163.png",
"image": "showcase/163.png",
"infoLink": "http://www.163.com/",
"pinned": true
},
{
"caption": "湖南国科云通",
"image": "../img/showcase/sinog2c.png",
"image": "showcase/sinog2c.png",
"infoLink": "http://sinog2c.com/",
"pinned": true
},
{
"caption": "炎黄新星",
"image": "../img/showcase/sinovatech.gif",
"image": "showcase/sinovatech.gif",
"infoLink": "https://www.sinovatech.com/",
"pinned": true
},
{
"caption": "泰康云",
"image": "../img/showcase/taikang.svg",
"image": "showcase/taikang.svg",
"infoLink": "http://taikang.com/",
"pinned": true
},
{
"caption": "糖豆网",
"image": "../img/showcase/tangdou.png",
"image": "showcase/tangdou.png",
"infoLink": "http://www.tangdou.com/",
"pinned": true
},
{
"caption": "腾讯云",
"image": "../img/showcase/TencentCloud.jpg",
"image": "showcase/TencentCloud.jpg",
"infoLink": "https://cloud.tencent.com/",
"pinned": true
},

{
"caption": "腾讯优图",
"image": "../img/showcase/youtu.jpg",
"image": "showcase/youtu.jpg",
"infoLink": "https://open.youtu.qq.com/",
"pinned": true
},
{
"caption": "万思",
"image": "../img/showcase/teamones.png",
"image": "showcase/teamones.png",
"infoLink": "https://www.teamones.cn/",
"pinned": true
},
{
"caption": "中国航信",
"image": "../img/showcase/TravelSky.png",
"image": "showcase/TravelSky.png",
"infoLink": "http://travelsky.com/",
"pinned": true
},
{
"caption": "随行付",
"image": "../img/showcase/vbill.png",
"image": "showcase/vbill.png",
"infoLink": "https://vbill.cn/",
"pinned": true
},
{
"caption": "优信二手车",
"image": "../img/showcase/xin.png",
"image": "showcase/xin.png",
"infoLink": "https://www.xin.com/",
"pinned": true
},
{
"caption": "雪球",
"image": "../img/showcase/xueqiu.jpg",
"image": "showcase/xueqiu.jpg",
"infoLink": "https://xueqiu.com/",
"pinned": true
},
{
"caption": "租租车",
"image": "../img/showcase/zuzuche.png",
"image": "showcase/zuzuche.png",
"infoLink": "https://www.zuzuche.com/",
"pinned": true
},
{
"caption": "作业帮",
"image": "../img/showcase/zybang.png",
"image": "showcase/zybang.png",
"infoLink": "https://www.zybang.com/",
"pinned": true
},
{
"caption": "腾讯游戏",
"image": "../img/showcase/TencentGame.png",
"image": "showcase/TencentGame.png",
"infoLink": "https://game.qq.com/",
"pinned": true
}
Expand Down

0 comments on commit 75637c4

Please sign in to comment.