From 3fbe423ca669c95fbabfb806484be633af9d6ff0 Mon Sep 17 00:00:00 2001 From: Tim Pechersky Date: Wed, 15 Sep 2021 16:58:14 +0200 Subject: [PATCH 1/5] v1 banner --- frontend/src/components/LandingNavbar.js | 4 +- frontend/src/components/Navbar.js | 2 +- frontend/src/components/Sidebar.js | 4 +- frontend/src/components/SignIn.js | 4 +- frontend/src/layouts/RootLayout.js | 63 +++++++++++++++++++++++- 5 files changed, 69 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/LandingNavbar.js b/frontend/src/components/LandingNavbar.js index 6437e7d6..211b8dcf 100644 --- a/frontend/src/components/LandingNavbar.js +++ b/frontend/src/components/LandingNavbar.js @@ -90,7 +90,7 @@ const LandingNavbar = () => { )} - {!ui.isLoggedIn && ( + {/* {!ui.isLoggedIn && ( - )} + )} */} {!ui.isLoggedIn && ( - + {/* Don`t have an account?{" "} { > Register - + */} {" "} import("../components/Sidebar")); const Navbar = React.lazy(() => import("../components/Navbar")); @@ -7,6 +16,7 @@ import UIContext from "../core/providers/UIProvider/context"; const RootLayout = (props) => { const ui = useContext(UIContext); const [showSpinner, setSpinner] = useState(true); + const [showBanner, setShowBanner] = useState(true); useEffect(() => { if (ui.isAppView && ui.isAppReady) { @@ -39,6 +49,57 @@ const RootLayout = (props) => { + + +
+ {" "} + + First 1000 users will get a lifetime access and a cookie. + Request early access now at our + + +
+ {/* */} + } + colorScheme="primary" + variant="ghost" + onClick={() => setShowBanner(false)} + /> +
+
{!showSpinner && props.children} {showSpinner && } From 2ee4bedd159cd63ea826b7592a3e6fb44f0f9a60 Mon Sep 17 00:00:00 2001 From: Tim Pechersky Date: Wed, 15 Sep 2021 17:04:50 +0200 Subject: [PATCH 2/5] fix lint --- frontend/src/components/Navbar.js | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/components/Navbar.js b/frontend/src/components/Navbar.js index 93ac1068..3ed7a5e9 100644 --- a/frontend/src/components/Navbar.js +++ b/frontend/src/components/Navbar.js @@ -6,7 +6,6 @@ import { Flex } from "@chakra-ui/react"; import UIContext from "../core/providers/UIProvider/context"; const ForgotPassword = React.lazy(() => import("./ForgotPassword")); const SignIn = React.lazy(() => import("./SignIn")); -const SignUp = React.lazy(() => import("./SignUp")); const LandingNavbar = React.lazy(() => import("./LandingNavbar")); const AppNavbar = React.lazy(() => import("./AppNavbar")); const HubspotForm = React.lazy(() => import("./HubspotForm")); From e58af09c008fc3770c6bd692ff9cde64987dac8a Mon Sep 17 00:00:00 2001 From: Tim Pechersky Date: Wed, 15 Sep 2021 17:11:22 +0200 Subject: [PATCH 3/5] content --- frontend/src/layouts/RootLayout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/layouts/RootLayout.js b/frontend/src/layouts/RootLayout.js index 0e6449c4..79741dbd 100644 --- a/frontend/src/layouts/RootLayout.js +++ b/frontend/src/layouts/RootLayout.js @@ -75,8 +75,8 @@ const RootLayout = (props) => { textColor="primary.900" fontSize={["sm", "sm", "md", null]} > - First 1000 users will get a lifetime access and a cookie. - Request early access now at our + Join early on, the first 1000 users get free lifetime access to + Moonstream. Contact our team on
- - {/* - Don`t have an account?{" "} - toggleModal("register")} - > - Register - - */} {" "} { > Forgot your password? + + + + {/* Don`t have an account?{" "} */} + We are in early access. If you would like to use Moonstream,{" "} + + contact us on Discord. + + {/* toggleModal("register")} + > + Register + */} ); From 7f629823e1013375c852d851cac9f250dc8d2d1c Mon Sep 17 00:00:00 2001 From: Tim Pechersky Date: Wed, 15 Sep 2021 19:10:27 +0200 Subject: [PATCH 5/5] improvements --- frontend/src/layouts/RootLayout.js | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/frontend/src/layouts/RootLayout.js b/frontend/src/layouts/RootLayout.js index 79741dbd..d30945f9 100644 --- a/frontend/src/layouts/RootLayout.js +++ b/frontend/src/layouts/RootLayout.js @@ -4,7 +4,6 @@ import { Spinner, Center, Text, - Button, Link, IconButton, } from "@chakra-ui/react"; @@ -51,8 +50,8 @@ const RootLayout = (props) => { { -
+
{" "} - Join early on, the first 1000 users get free lifetime access to - Moonstream. Contact our team on + Join early. Our first 1000 users get free lifetime access to + blockchain analytics. Contact our team on{" "} + + Discord + -
{/* */}