From notifications-return-61240-archive-asf-public=cust-asf.ponee.io@apisix.apache.org Fri Aug 13 15:03:55 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id B93EA180621 for ; Fri, 13 Aug 2021 17:03:55 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id 27D2560095 for ; Fri, 13 Aug 2021 15:03:55 +0000 (UTC) Received: (qmail 70354 invoked by uid 500); 13 Aug 2021 15:03:54 -0000 Mailing-List: contact notifications-help@apisix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apisix.apache.org Delivered-To: mailing list notifications@apisix.apache.org Received: (qmail 70345 invoked by uid 99); 13 Aug 2021 15:03:54 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Aug 2021 15:03:54 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 4E2B281F26; Fri, 13 Aug 2021 15:03:54 +0000 (UTC) Date: Fri, 13 Aug 2021 15:03:54 +0000 To: "notifications@apisix.apache.org" Subject: [apisix-website] branch master updated: feat: add shanghai-meetup card (#449) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <162886703422.14697.2605813228013733427@gitbox.apache.org> From: liuxiran@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: apisix-website X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: a0a882a97cae896adae1b4bd298770223814501c X-Git-Newrev: ce05e3f9fdb1a218a6768c692858b45ff7ac1178 X-Git-Rev: ce05e3f9fdb1a218a6768c692858b45ff7ac1178 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. liuxiran 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 ce05e3f feat: add shanghai-meetup card (#449) ce05e3f is described below commit ce05e3f9fdb1a218a6768c692858b45ff7ac1178 Author: Baoyuan AuthorDate: Fri Aug 13 10:03:46 2021 -0500 feat: add shanghai-meetup card (#449) --- website/src/pages/index.js | 23 ++++++----------------- website/static/img/200_mark_dark.jpg | Bin 303462 -> 0 bytes website/static/img/200_mark_light.jpg | Bin 146187 -> 0 bytes website/static/img/meetup-card.jpg | Bin 0 -> 427256 bytes 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/website/src/pages/index.js b/website/src/pages/index.js index eabcee7..45d1c61 100644 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -258,22 +258,11 @@ const NewsletterSection = () => { ); }; -// To be reused in the future -const Contributor200Poster = () => { +const EventPosterCard = () => { const [display, setDisplay] = useState(false); - const [theme, setTheme] = useState('light'); useEffect(() => { - addEventListener('click', () => { - setTheme(localStorage.getItem('theme')); - }); - if (localStorage.getItem("theme")) { - setTheme(localStorage.getItem('theme')); - }; - if (window.matchMedia('(prefers-color-scheme: dark)').matches) { - setTheme('dark'); - } - if (!localStorage.getItem('SHOW_200_CONTRIBUTOR_EVENT_ENTRY')) { + if (!localStorage.getItem('SHOW_EVENT_ENTRY')) { setDisplay(true); }; }, []); @@ -281,7 +270,7 @@ const Contributor200Poster = () => { const onClose = () => { setDisplay(false); if (typeof window !== 'undefined') { - localStorage.setItem('SHOW_200_CONTRIBUTOR_EVENT_ENTRY', 'true'); + localStorage.setItem('SHOW_EVENT_ENTRY', 'true'); } }; @@ -296,9 +285,8 @@ const Contributor200Poster = () => { - - {theme === "light" && } - {theme === "dark" && } + + ) @@ -313,6 +301,7 @@ const Index = (props) => { + ); }; diff --git a/website/static/img/200_mark_dark.jpg b/website/static/img/200_mark_dark.jpg deleted file mode 100644 index 8b28a86..0000000 Binary files a/website/static/img/200_mark_dark.jpg and /dev/null differ diff --git a/website/static/img/200_mark_light.jpg b/website/static/img/200_mark_light.jpg deleted file mode 100644 index c4ba064..0000000 Binary files a/website/static/img/200_mark_light.jpg and /dev/null differ diff --git a/website/static/img/meetup-card.jpg b/website/static/img/meetup-card.jpg new file mode 100644 index 0000000..e5097b6 Binary files /dev/null and b/website/static/img/meetup-card.jpg differ