diff --git a/frontend/pages/index.js b/frontend/pages/index.js index a1d8fc69..b31a3911 100644 --- a/frontend/pages/index.js +++ b/frontend/pages/index.js @@ -19,6 +19,7 @@ import { SimpleGrid, useMediaQuery, Grid, + Text, GridItem, } from "@chakra-ui/react"; import dynamic from "next/dynamic"; @@ -28,7 +29,6 @@ import useModals from "../src/core/hooks/useModals"; import useRouter from "../src/core/hooks/useRouter"; import { MIXPANEL_PROPS } from "../src/core/providers/AnalyticsProvider/constants"; import UIContext from "../src/core/providers/UIProvider/context"; - const SplitWithImage = dynamic( () => import("../src/components/SplitWithImage"), { @@ -244,17 +244,21 @@ const Homepage = () => { textAlign="center" alignItems="center" spacing={6} - maxW="1620px" + maxW={["1620px", null, null, null, "1620px", "2222px"]} px="7%" h="100%" pt={["10vh", null, "20vh"]} > - + All the crypto data you care about in a single stream @@ -263,7 +267,7 @@ const Homepage = () => { pool to Elon Musk’s latest tweets. @@ -279,10 +283,36 @@ const Homepage = () => { + + + {` We believe in financial inclusion. Proprietary technologies + are not financially inclusive. That's why all our software + is`} + + open source + + + + { > Data you can add to your stream: - { toggleModal("hubspot-developer"); }, }} + socialButton={{ + url: "https://github.com/bugout-dev/moonstream/", + network: "github", + label: "See our github", + onClick: () => { + track(`${MIXPANEL_EVENTS.BUTTON_CLICKED}`, { + [`${MIXPANEL_PROPS.BUTTON_CLICKED}`]: `Github link in landing page`, + }); + }, + }} elementName={"element3"} colorScheme="primary" badge={`For smart contract developers`} diff --git a/frontend/src/components/SplitWithImage.js b/frontend/src/components/SplitWithImage.js index c1e8dbdd..217e3438 100644 --- a/frontend/src/components/SplitWithImage.js +++ b/frontend/src/components/SplitWithImage.js @@ -12,10 +12,12 @@ import { Button, Center, useBreakpointValue, + Spacer, } from "@chakra-ui/react"; -// import Xarrow, { useXarrow } from "react-xarrows"; import React, { useContext } from "react"; import UIContext from "../core/providers/UIProvider/context"; +import { FaGithubSquare } from "react-icons/fa"; +import RouteButton from "../components/RouteButton"; const Feature = ({ text, icon, iconBg, bullets }) => { return ( @@ -67,14 +69,15 @@ const SplitWithImage = ({ mirror, elementName, cta, + socialButton, }) => { const buttonSize = useBreakpointValue({ base: "md", sm: "md", md: "md", lg: "lg", - xl: "xl", - "2xl": "xl", + xl: "lg", + "2xl": "lg", }); const ui = useContext(UIContext); @@ -109,20 +112,25 @@ const SplitWithImage = ({ )} - - {badge} - + + + {badge} + + {title} {body} @@ -150,16 +158,33 @@ const SplitWithImage = ({ })}
- + + + + {socialButton && ( + } + > + Check out our github + + )} +