This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch new-official-website
in repository https://gitbox.apache.org/repos/asf/rocketmq-site.git


The following commit(s) were added to refs/heads/new-official-website by this 
push:
     new b022f8254c Switch the Github star and fork buttons on the front page 
(#626)
b022f8254c is described below

commit b022f8254ca28e3a7877ee358e69ce97fa60b3f5
Author: Jack Tsai <[email protected]>
AuthorDate: Fri Feb 23 15:21:40 2024 +0800

    Switch the Github star and fork buttons on the front page (#626)
    
    Co-authored-by: tsaitsung-han.tht <[email protected]>
---
 src/pages/components/Hero.js | 24 +++++++++---------------
 src/pages/index.js           |  2 +-
 2 files changed, 10 insertions(+), 16 deletions(-)

diff --git a/src/pages/components/Hero.js b/src/pages/components/Hero.js
index cd94a446cb..f5534dc621 100644
--- a/src/pages/components/Hero.js
+++ b/src/pages/components/Hero.js
@@ -13,21 +13,15 @@ export default function Hero(){
             <Translate id="rmq_intro">RocketMQ 
5.0:云原生“消息、事件、流”实时数据处理平台,覆盖云边端一体化数据处理场景</Translate>
           </p>
           <div className={clsx('container',styles.github)}>
-            <iframe
-              
src="https://ghbtns.com/github-btn.html?user=apache&repo=rocketmq&type=star&count=true&size=large";
-              width="170"
-              height="30"
-              frameBorder="0"
-              scrolling="0"
-            ></iframe>
-            <iframe
-              
src="https://ghbtns.com/github-btn.html?user=apache&repo=rocketmq&type=fork&count=true&size=large";
-              frameBorder="0"
-              scrolling="0"
-              width="170"
-              height="30"
-              title="GitHub"
-            ></iframe>
+            <a class="github-button" href="https://github.com/apache/rocketmq";
+              data-color-scheme="no-preference: light; light: light; dark: 
light;"
+              data-icon="octicon-star" data-size="large"
+              data-show-count="true" aria-label="Star apache/rocketmq on 
GitHub">Star</a>
+            &nbsp;&nbsp;
+            <a class="github-button" 
href="https://github.com/apache/rocketmq/fork";
+              data-color-scheme="no-preference: light; light: light; dark: 
light;"
+              data-icon="octicon-repo-forked" data-size="large" 
data-show-count="true"
+              aria-label="Fork apache/rocketmq on GitHub">Fork</a>
           </div>
 
           <div className={styles.buttons}>
diff --git a/src/pages/index.js b/src/pages/index.js
index 60905ddb10..047caba1ce 100644
--- a/src/pages/index.js
+++ b/src/pages/index.js
@@ -24,7 +24,7 @@ function Home() {
       description={`${siteConfig.tagline}`}
     >
       <Head>
-        <meta http-equiv="Content-Security-Policy" content="frame-src *" />
+        <script async defer 
src="https://buttons.github.io/buttons.js";></script>
       </Head>
       <Hero/>
       <main>

Reply via email to