From 3fbe423ca669c95fbabfb806484be633af9d6ff0 Mon Sep 17 00:00:00 2001 From: Tim Pechersky Date: Wed, 15 Sep 2021 16:58:14 +0200 Subject: [PATCH] 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 && }