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

slsjl pushed a commit to branch footer-removal
in repository https://gitbox.apache.org/repos/asf/eventmesh-site.git


The following commit(s) were added to refs/heads/footer-removal by this push:
     new 4f4dd435b 1. remove Incubation component 2. add Apache logo on page 
footer
4f4dd435b is described below

commit 4f4dd435be106deb160dae8e887086d31b46b415
Author: SUN <[email protected]>
AuthorDate: Mon Dec 25 12:21:41 2023 +0800

    1. remove Incubation component
    2. add Apache logo on page footer
---
 docusaurus.config.js                 |  5 ++-
 src/components/Incubation.module.css |  5 ---
 src/components/Incubation.tsx        | 22 --------------
 src/theme/Footer/index.tsx           | 59 +++++++++++++++++++-----------------
 4 files changed, 34 insertions(+), 57 deletions(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 1d3b8d4d7..ff77e1454 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -168,9 +168,8 @@ module.exports = {
       ],
       copyright: `
         Copyright © ${new Date().getFullYear()} The Apache Software Foundation.
-        Apache EventMesh, Apache Incubator, EventMesh, Apache, the Apache 
feather logo,
-        the Apache EventMesh logo and the Apache Incubator project logo
-        are trademarks of The Apache Software Foundation.
+        Apache EventMesh, EventMesh, Apache, the Apache feather logo,
+        and the Apache EventMesh logo are trademarks of The Apache Software 
Foundation.
       `,
     },
     docs: {
diff --git a/src/components/Incubation.module.css 
b/src/components/Incubation.module.css
deleted file mode 100644
index e8227aa21..000000000
--- a/src/components/Incubation.module.css
+++ /dev/null
@@ -1,5 +0,0 @@
-.subtitle {
-  opacity: 0.6;
-  margin-top: 1rem;
-  margin-bottom: 2rem;
-}
diff --git a/src/components/Incubation.tsx b/src/components/Incubation.tsx
deleted file mode 100644
index 53dfeb79f..000000000
--- a/src/components/Incubation.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-/* eslint-disable max-len */
-import React from 'react';
-import styles from './Incubation.module.css';
-import IncubatorLogo from '../../static/images/incubator-logo.png';
-
-const Incubation = (): JSX.Element => (
-  <div className="container container--fluid">
-    <img
-      src={IncubatorLogo}
-      alt="Apache Incubator Logo"
-      width="318px"
-    />
-
-    <p
-      className={styles.subtitle}
-    >
-      Apache EventMesh 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 necessarily a reflection of the completeness or stability of the 
code, it does indicate that the [...]
-    </p>
-  </div>
-);
-
-export default Incubation;
diff --git a/src/theme/Footer/index.tsx b/src/theme/Footer/index.tsx
index 12cc52a2e..405e235c3 100644
--- a/src/theme/Footer/index.tsx
+++ b/src/theme/Footer/index.tsx
@@ -77,34 +77,39 @@ function Footer(): JSX.Element | null {
       <div className="container">
         {links && links.length > 0 && (
           <div className="row footer__links">
-            {links.map((linkItem, i) => (
-              <div key={i} className="col footer__col">
-                {linkItem.title != null ? (
-                  <div className="footer__title">{linkItem.title}</div>
-                ) : null}
-                {linkItem.items != null
-                && Array.isArray(linkItem.items)
-                && linkItem.items.length > 0 ? (
-                  <ul className="footer__items">
-                    {linkItem.items.map((item, key) => (item.html ? (
-                      <li
-                        key={key}
-                        className="footer__item"
-                          // Developer provided the HTML, so assume it's safe.
-                          // eslint-disable-next-line react/no-danger
-                        dangerouslySetInnerHTML={{
-                          __html: item.html,
-                        }}
-                      />
-                    ) : (
-                      <li key={item.href || item.to} className="footer__item">
-                        <FooterLink {...item} />
-                      </li>
-                    )))}
-                  </ul>
+            <div  className="col footer__col">
+              <img src='https://doris.apache.org/images/asf_logo_apache.svg' />
+            </div>
+            {[{logoSrc: ''},...links].map((linkItem, i) => {
+              return (
+                <div key={i} className="col footer__col">
+                  {linkItem.title != null ? (
+                    <div className="footer__title">{linkItem.title}</div>
                   ) : null}
-              </div>
-            ))}
+                  {linkItem.items != null
+                  && Array.isArray(linkItem.items)
+                  && linkItem.items.length > 0 ? (
+                    <ul className="footer__items">
+                      {linkItem.items.map((item, key) => (item.html ? (
+                        <li
+                          key={key}
+                          className="footer__item"
+                            // Developer provided the HTML, so assume it's 
safe.
+                            // eslint-disable-next-line react/no-danger
+                          dangerouslySetInnerHTML={{
+                            __html: item.html,
+                          }}
+                        />
+                      ) : (
+                        <li key={item.href || item.to} 
className="footer__item">
+                          <FooterLink {...item} />
+                        </li>
+                      )))}
+                    </ul>
+                    ) : null}
+                </div>
+              )
+            })}
           </div>
         )}
         {(logo || copyright) && (


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to