From b69a4b77d2c356ef437bf9e7fcf66c6f8ad242c1 Mon Sep 17 00:00:00 2001 From: Tim Pechersky Date: Fri, 20 Aug 2021 21:04:50 +0200 Subject: [PATCH] added github icon and OSS subtitle --- frontend/pages/index.js | 3 +- frontend/src/components/SplitWithImage.js | 86 ++++++++++++----------- 2 files changed, 48 insertions(+), 41 deletions(-) diff --git a/frontend/pages/index.js b/frontend/pages/index.js index b31a3911..8623eb13 100644 --- a/frontend/pages/index.js +++ b/frontend/pages/index.js @@ -303,7 +303,7 @@ const Homepage = () => { > {` We believe in financial inclusion. Proprietary technologies are not financially inclusive. That's why all our software - is`} + is `} { Data you can add to your stream: diff --git a/frontend/src/components/SplitWithImage.js b/frontend/src/components/SplitWithImage.js index 217e3438..1547dade 100644 --- a/frontend/src/components/SplitWithImage.js +++ b/frontend/src/components/SplitWithImage.js @@ -10,9 +10,7 @@ import { Icon, useColorModeValue, Button, - Center, useBreakpointValue, - Spacer, } from "@chakra-ui/react"; import React, { useContext } from "react"; import UIContext from "../core/providers/UIProvider/context"; @@ -71,15 +69,18 @@ const SplitWithImage = ({ cta, socialButton, }) => { - const buttonSize = useBreakpointValue({ - base: "md", - sm: "md", - md: "md", - lg: "lg", - xl: "lg", - "2xl": "lg", + var buttonSize = useBreakpointValue({ + base: { single: "sm", double: "xs" }, + sm: { single: "md", double: "sm" }, + md: { single: "md", double: "sm" }, + lg: { single: "lg", double: "lg" }, + xl: { single: "lg", double: "lg" }, + "2xl": { single: "lg", double: "lg" }, }); + //idk why but sometimes buttonSize gets undefined + if (!buttonSize) buttonSize = "lg"; + const ui = useContext(UIContext); const [isVisible, setVisible] = React.useState(true); @@ -156,37 +157,42 @@ const SplitWithImage = ({ /> ); })} - -
- - - - {socialButton && ( - } - > - Check out our github - - )} - -
-
+ + + + + {socialButton && ( + } + > + git clone moonstream + + )} + {(!mirror || ui.isMobileView) && (