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

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


The following commit(s) were added to refs/heads/master by this push:
     new a6b84d4  chore: remove shanghai meetup floating window (#503)
a6b84d4 is described below

commit a6b84d4de11ff1b1dbe79cc2938b5d23ca219f51
Author: bzp2010 <[email protected]>
AuthorDate: Tue Aug 24 13:22:43 2021 +0800

    chore: remove shanghai meetup floating window (#503)
---
 website/src/pages/index.js         |  35 -----------------------------------
 website/static/img/meetup-card.jpg | Bin 416278 -> 0 bytes
 2 files changed, 35 deletions(-)

diff --git a/website/src/pages/index.js b/website/src/pages/index.js
index 45d1c61..a04aa86 100644
--- a/website/src/pages/index.js
+++ b/website/src/pages/index.js
@@ -258,40 +258,6 @@ const NewsletterSection = () => {
   );
 };
 
-const EventPosterCard = () => {
-  const [display, setDisplay] = useState(false);
-
-  useEffect(() => {
-    if (!localStorage.getItem('SHOW_EVENT_ENTRY')) {
-      setDisplay(true);
-    };
-  }, []);
-
-  const onClose = () => {
-    setDisplay(false);
-    if (typeof window !== 'undefined') {
-      localStorage.setItem('SHOW_EVENT_ENTRY', 'true');
-    }
-  };
-
-  if (!display) {
-    return null;
-  }
-
-  return (
-    <div className="pic-wrapper">
-      <button className="pic-wrapper-close" onClick={onClose}>
-        <svg aria-hidden="true" focusable="false" data-prefix="fas" 
data-icon="times" className="svg-inline--fa fa-times fa-w-11" role="img" 
xmlns="http://www.w3.org/2000/svg"; viewBox="0 0 352 512">
-          <path fill="currentColor" d="M242.72 256l100.07-100.07c12.28-12.28 
12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 
75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 
32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 
22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 
12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"></path>
-        </svg>
-      </button>
-      <a href="/events/2021/08/21/shanghai-meetup" onClick={onClose}>
-        <img src="/img/meetup-card.jpg" alt="" />
-      </a>
-    </div>
-  )
-}
-
 const Index = (props) => {
   return (
     <Layout>
@@ -301,7 +267,6 @@ const Index = (props) => {
       <Showcase />
       <ContributionSection />
       <NewsletterSection />
-      <EventPosterCard />
     </Layout>
   );
 };
diff --git a/website/static/img/meetup-card.jpg 
b/website/static/img/meetup-card.jpg
deleted file mode 100644
index 0c8e002..0000000
Binary files a/website/static/img/meetup-card.jpg and /dev/null differ

Reply via email to