You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by go...@apache.org on 2022/06/10 07:39:21 UTC

[incubator-inlong-website] branch master updated: [INLONG-4616] Set Apache events on footer (#401)

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

gosonzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 3dbf2b4ca [INLONG-4616] Set Apache events on footer (#401)
3dbf2b4ca is described below

commit 3dbf2b4ca70f7de8c1f3dd45e997dfc6e2e4947d
Author: Daniel <le...@outlook.com>
AuthorDate: Fri Jun 10 15:39:17 2022 +0800

    [INLONG-4616] Set Apache events on footer (#401)
---
 docusaurus.config.js | 5 +++--
 src/css/custom.css   | 2 +-
 src/pages/index.jsx  | 8 ++++++++
 3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 1d9dac534..5df915690 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -228,8 +228,9 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
           href: 'https://inlong.apache.org',
         },
         copyright: `<div style="text-align: left;">
-          <div>
-            <p style="font-family: Avenir-Medium;font-size: 14px;color: #999;line-height: 20px;"> Apache InLong is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessa [...]
+          <div style="display: flex;">
+            <p style="font-family: Avenir-Medium;font-size: 14px;color: #999;margin-right: 60px;"> Apache InLong is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necess [...]
+            <a class="acevent" data-format="square" data-mode="dark" data-event="random"></a>
           </div>
           <div style="border-top: 1px solid #ccc;min-height: 60px;line-height: 20px;text-align: center;font-family: Avenir-Medium;font-size: 14px;color: #999;display: flex;align-items: center;"><span>Copyright © 2019-2022 The Apache Software Foundation. Apache InLong, InLong, and its feather logo are trademarks of The Apache Software Foundation.</span></div>
         </div>`,
diff --git a/src/css/custom.css b/src/css/custom.css
index 3c1cffa10..6d8ed97df 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -40,11 +40,11 @@ html {
 
 .navbar.index-nav {
   background: rgb(255 255 255 / 40%);
+  margin-bottom: -60px;
 }
 
 .navbar.index-nav + .main-wrapper {
   position: relative;
-  top: -60px;
 }
 
 aside {
diff --git a/src/pages/index.jsx b/src/pages/index.jsx
index a3f9db747..ecd3bc90f 100644
--- a/src/pages/index.jsx
+++ b/src/pages/index.jsx
@@ -10,6 +10,14 @@ export default function() {
 
   const pathname = isBrowser && location.pathname
 
+  useEffect(() => {
+    if (isBrowser) {
+      const script = document.createElement('script');
+      script.src = 'https://www.apachecon.com/event-images/snippet.js';
+      document.body.appendChild(script);
+    }
+  }, [isBrowser])
+
   useEffect(() => {
     if (isBrowser) {
       const nav = document.getElementsByTagName('nav')[0];