Skip to content

Commit b022f82

Browse files
tsunghanjacktsaitsaitsung-han.tht
and
tsaitsung-han.tht
authored
Switch the Github star and fork buttons on the front page (#626)
Co-authored-by: tsaitsung-han.tht <[email protected]>
1 parent e6b74d1 commit b022f82

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

src/pages/components/Hero.js

+9-15
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,15 @@ export default function Hero(){
1313
<Translate id="rmq_intro">RocketMQ 5.0:云原生“消息、事件、流”实时数据处理平台,覆盖云边端一体化数据处理场景</Translate>
1414
</p>
1515
<div className={clsx('container',styles.github)}>
16-
<iframe
17-
src="https://ghbtns.com/github-btn.html?user=apache&repo=rocketmq&type=star&count=true&size=large"
18-
width="170"
19-
height="30"
20-
frameBorder="0"
21-
scrolling="0"
22-
></iframe>
23-
<iframe
24-
src="https://ghbtns.com/github-btn.html?user=apache&repo=rocketmq&type=fork&count=true&size=large"
25-
frameBorder="0"
26-
scrolling="0"
27-
width="170"
28-
height="30"
29-
title="GitHub"
30-
></iframe>
16+
<a class="github-button" href="https://github.com/apache/rocketmq"
17+
data-color-scheme="no-preference: light; light: light; dark: light;"
18+
data-icon="octicon-star" data-size="large"
19+
data-show-count="true" aria-label="Star apache/rocketmq on GitHub">Star</a>
20+
&nbsp;&nbsp;
21+
<a class="github-button" href="https://github.com/apache/rocketmq/fork"
22+
data-color-scheme="no-preference: light; light: light; dark: light;"
23+
data-icon="octicon-repo-forked" data-size="large" data-show-count="true"
24+
aria-label="Fork apache/rocketmq on GitHub">Fork</a>
3125
</div>
3226

3327
<div className={styles.buttons}>

src/pages/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Home() {
2424
description={`${siteConfig.tagline}`}
2525
>
2626
<Head>
27-
<meta http-equiv="Content-Security-Policy" content="frame-src *" />
27+
<script async defer src="https://buttons.github.io/buttons.js"></script>
2828
</Head>
2929
<Hero/>
3030
<main>

0 commit comments

Comments
 (0)