kopia lustrzana https://github.com/bugout-dev/moonstream
commit
149a646ae5
|
@ -2,7 +2,5 @@ module.exports = {
|
|||
reactStrictMode: true,
|
||||
target: "serverless",
|
||||
trailingSlash: true,
|
||||
presets: [
|
||||
require.resolve('next/babel')
|
||||
]
|
||||
};
|
||||
presets: [require.resolve("next/babel")],
|
||||
};
|
||||
|
|
|
@ -4,9 +4,10 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"build": "next build && next export -o build",
|
||||
"start": "next start",
|
||||
"lint": "next lint"
|
||||
"lint": "eslint ./ --ext js,jsx,ts,tsx --fix",
|
||||
"pretty": "prettier --write \"./**/*.{js,jsx,json}\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@chakra-ui/icons": "^1.0.14",
|
||||
|
@ -30,6 +31,7 @@
|
|||
"react-query": "^3.18.1",
|
||||
"react-showdown": "^2.3.0",
|
||||
"react-split-pane": "^0.1.92",
|
||||
"react-xarrows": "^2.0.2",
|
||||
"showdown": "^1.9.1",
|
||||
"showdown-highlight": "^2.1.8",
|
||||
"uuid": "^8.3.2"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { React } from "react";
|
||||
import React from "react";
|
||||
import FourOThree from "../src/components/FourOThree";
|
||||
|
||||
const Page403 = () => {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { React } from "react";
|
||||
import React from "react";
|
||||
import FourOFour from "../src/components/FourOFour";
|
||||
|
||||
const Page404 = () => {
|
||||
|
|
|
@ -10,7 +10,9 @@ import HeadLinks from "../src/components/HeadLinks";
|
|||
const AppContext = dynamic(() => import("../src/AppContext"), {
|
||||
ssr: false,
|
||||
});
|
||||
import DefaultLayout from "../src/layouts";
|
||||
const DefaultLayout = dynamic(() => import("../src/layouts"), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
export default class CachingApp extends App {
|
||||
constructor(props) {
|
|
@ -1,4 +1,4 @@
|
|||
import { React } from "react";
|
||||
import React from "react";
|
||||
import Document, { Html, Head, Main, NextScript } from "next/document";
|
||||
|
||||
export default class MyDocument extends Document {
|
||||
|
|
|
@ -0,0 +1,537 @@
|
|||
import React, {
|
||||
useLayoutEffect,
|
||||
useEffect,
|
||||
Suspense,
|
||||
useContext,
|
||||
useState,
|
||||
} from "react";
|
||||
import {
|
||||
Flex,
|
||||
Heading,
|
||||
Box,
|
||||
Image as ChakraImage,
|
||||
Button,
|
||||
Center,
|
||||
Fade,
|
||||
chakra,
|
||||
Stack,
|
||||
Link,
|
||||
SimpleGrid,
|
||||
useMediaQuery,
|
||||
} from "@chakra-ui/react";
|
||||
import { Grid, GridItem } from "@chakra-ui/react";
|
||||
import { useUser, useAnalytics, useModals, useRouter } from "../src/core/hooks";
|
||||
import { getLayout } from "../src/layouts";
|
||||
import SplitWithImage from "../src/components/SplitWithImage";
|
||||
import ConnectedButtons from "../src/components/ConnectedButtons";
|
||||
import UIContext from "../src/core/providers/UIProvider/context";
|
||||
import { MIXPANEL_PROPS } from "../src/core/providers/AnalyticsProvider/constants";
|
||||
import { FaFileContract } from "react-icons/fa";
|
||||
import { RiDashboardFill } from "react-icons/ri";
|
||||
import {
|
||||
GiMeshBall,
|
||||
GiLogicGateXor,
|
||||
GiSuspicious,
|
||||
GiHook,
|
||||
} from "react-icons/gi";
|
||||
import { AiFillApi } from "react-icons/ai";
|
||||
import { BiTransfer } from "react-icons/bi";
|
||||
import { IoTelescopeSharp } from "react-icons/io5";
|
||||
|
||||
const HEADING_PROPS = {
|
||||
fontWeight: "700",
|
||||
fontSize: ["4xl", "5xl", "4xl", "5xl", "6xl", "7xl"],
|
||||
};
|
||||
const AWS_PATH =
|
||||
"https://s3.amazonaws.com/static.simiotics.com/moonstream/assets";
|
||||
|
||||
const assets = {
|
||||
background720: `${AWS_PATH}/background720.png`,
|
||||
background1920: `${AWS_PATH}/background720.png`,
|
||||
background2880: `${AWS_PATH}/background720.png`,
|
||||
background3840: `${AWS_PATH}/background720.png`,
|
||||
minedTransactions: `${AWS_PATH}/Ethereum+mined+transactions.png`,
|
||||
pendingTransactions: `${AWS_PATH}/Ethereum+pending+transactions.png`,
|
||||
priceInformation: `${AWS_PATH}/Price+information.png`,
|
||||
socialMediaPosts: `${AWS_PATH}/Social+media+posts.png`,
|
||||
algorithmicFunds: `${AWS_PATH}/algorithmic+funds.png`,
|
||||
cryptoTraders: `${AWS_PATH}/crypto+traders.png`,
|
||||
smartDevelopers: `${AWS_PATH}/smart+contract+developers.png`,
|
||||
};
|
||||
const Homepage = () => {
|
||||
const ui = useContext(UIContext);
|
||||
const [background, setBackground] = useState("background720");
|
||||
const [backgroundLoaded720, setBackgroundLoaded720] = useState(false);
|
||||
const [backgroundLoaded1920, setBackgroundLoaded1920] = useState(false);
|
||||
const [backgroundLoaded2880, setBackgroundLoaded2880] = useState(false);
|
||||
const [backgroundLoaded3840, setBackgroundLoaded3840] = useState(false);
|
||||
|
||||
const router = useRouter();
|
||||
const { isInit } = useUser();
|
||||
const { MIXPANEL_EVENTS, track } = useAnalytics();
|
||||
const { toggleModal } = useModals();
|
||||
const [
|
||||
isLargerThan720px,
|
||||
isLargerThan1920px,
|
||||
isLargerThan2880px,
|
||||
isLargerThan3840px,
|
||||
] = useMediaQuery([
|
||||
"(min-width: 720px)",
|
||||
"(min-width: 1920px)",
|
||||
"(min-width: 2880px)",
|
||||
"(min-width: 3840px)",
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
assets["background720"] = `${AWS_PATH}/background720.png`;
|
||||
assets["background1920"] = `${AWS_PATH}/background1920.png`;
|
||||
assets["background2880"] = `${AWS_PATH}/background2880.png`;
|
||||
assets["background3840"] = `${AWS_PATH}/background3840.png`;
|
||||
}, []);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (backgroundLoaded3840) {
|
||||
setBackground("background3840");
|
||||
} else if (backgroundLoaded2880) {
|
||||
setBackground("background2880");
|
||||
} else if (backgroundLoaded1920) {
|
||||
setBackground("background1920");
|
||||
} else {
|
||||
setBackground("background720");
|
||||
}
|
||||
}, [
|
||||
isLargerThan720px,
|
||||
isLargerThan1920px,
|
||||
isLargerThan2880px,
|
||||
isLargerThan3840px,
|
||||
backgroundLoaded720,
|
||||
backgroundLoaded1920,
|
||||
backgroundLoaded2880,
|
||||
backgroundLoaded3840,
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
router.nextRouter.asPath !== "/" &&
|
||||
router.nextRouter.asPath.slice(0, 2) !== "/?" &&
|
||||
router.nextRouter.asPath.slice(0, 2) !== "/#"
|
||||
) {
|
||||
router.replace(router.nextRouter.asPath, undefined, {
|
||||
shallow: true,
|
||||
});
|
||||
}
|
||||
}, [isInit, router]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
console.log("rerender check");
|
||||
const imageLoader720 = new Image();
|
||||
imageLoader720.src = `${AWS_PATH}/background720.png`;
|
||||
imageLoader720.onload = () => {
|
||||
setBackgroundLoaded720(true);
|
||||
};
|
||||
}, []);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
const imageLoader1920 = new Image();
|
||||
imageLoader1920.src = `${AWS_PATH}/background1920.png`;
|
||||
imageLoader1920.onload = () => {
|
||||
setBackgroundLoaded1920(true);
|
||||
};
|
||||
}, []);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
const imageLoader2880 = new Image();
|
||||
imageLoader2880.src = `${AWS_PATH}/background2880.png`;
|
||||
imageLoader2880.onload = () => {
|
||||
setBackgroundLoaded2880(true);
|
||||
};
|
||||
}, []);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
const imageLoader3840 = new Image();
|
||||
imageLoader3840.src = `${AWS_PATH}/background3840.png`;
|
||||
imageLoader3840.onload = () => {
|
||||
setBackgroundLoaded3840(true);
|
||||
};
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Fade in>
|
||||
<Box
|
||||
width="100%"
|
||||
flexDirection="column"
|
||||
sx={{ scrollBehavior: "smooth" }}
|
||||
bgSize="cover"
|
||||
>
|
||||
<Flex
|
||||
direction="column"
|
||||
h="auto"
|
||||
position="relative"
|
||||
w="100%"
|
||||
overflow="initial"
|
||||
pt={0}
|
||||
>
|
||||
<Suspense fallback={""}></Suspense>
|
||||
|
||||
<Grid
|
||||
templateColumns="repeat(12,1fr)"
|
||||
mt={0}
|
||||
border="none"
|
||||
boxSizing="content-box"
|
||||
>
|
||||
<GridItem
|
||||
mt={0}
|
||||
px="0"
|
||||
colSpan="12"
|
||||
pb={[1, 2, null, 8]}
|
||||
minH="100vh"
|
||||
// bgColor="primary.1200"
|
||||
>
|
||||
<chakra.header boxSize="full" minH="100vh">
|
||||
<Box
|
||||
bgPos="bottom"
|
||||
bgColor="transparent"
|
||||
backgroundImage={`url(${assets[`${background}`]})`}
|
||||
bgSize="cover"
|
||||
boxSize="full"
|
||||
minH="100vh"
|
||||
>
|
||||
<Flex align="center" justify="center" boxSize="full">
|
||||
<Stack
|
||||
textAlign="center"
|
||||
alignItems="center"
|
||||
spacing={6}
|
||||
maxW="1620px"
|
||||
px="7%"
|
||||
h="100%"
|
||||
pt={["10vh", null, "30vh"]}
|
||||
>
|
||||
<Heading size="2xl" fontWeight="semibold" color="white">
|
||||
All the crypto data you care about in a single stream
|
||||
</Heading>
|
||||
<chakra.span
|
||||
my={12}
|
||||
fontSize={["lg", null, "xl"]}
|
||||
display="inline-block"
|
||||
color="primary.200"
|
||||
textDecor="underline"
|
||||
>
|
||||
Get all the crypto data you need in a single stream.
|
||||
From pending transactions in the Ethereum transaction
|
||||
pool to Elon Musk’s latest tweets.
|
||||
</chakra.span>
|
||||
<chakra.span
|
||||
fontSize={["lg", null, "xl"]}
|
||||
display="inline-block"
|
||||
color="primary.300"
|
||||
textDecor="underline"
|
||||
>
|
||||
Access this data through the Moonstream dashboard or API
|
||||
</chakra.span>
|
||||
</Stack>
|
||||
</Flex>
|
||||
</Box>
|
||||
</chakra.header>
|
||||
</GridItem>
|
||||
|
||||
<GridItem
|
||||
px="7%"
|
||||
colSpan="12"
|
||||
pt={["20px", "20px", "100px", null, "120px"]}
|
||||
pb={["20px", "56px", null, "184px"]}
|
||||
minH="100vh"
|
||||
>
|
||||
<Heading
|
||||
{...HEADING_PROPS}
|
||||
textAlign="center"
|
||||
pb={[12, 12, 12, null, 48]}
|
||||
>
|
||||
Data you can add to your stream:
|
||||
</Heading>
|
||||
|
||||
<SimpleGrid columns={[1, 2, 2, 4, null, 4]}>
|
||||
<Stack spacing={1} px={1} alignItems="center">
|
||||
<ChakraImage
|
||||
boxSize={["220px", "220px", "xs", null, "xs"]}
|
||||
objectFit="contain"
|
||||
src={assets["minedTransactions"]}
|
||||
alt="mined transactions"
|
||||
/>
|
||||
<Heading textAlign="center ">
|
||||
Ethereum mined transactions
|
||||
</Heading>
|
||||
</Stack>
|
||||
<Stack spacing={1} px={1} alignItems="center">
|
||||
<ChakraImage
|
||||
boxSize={["220px", "220px", "xs", null, "xs"]}
|
||||
objectFit="contain"
|
||||
src={assets["pendingTransactions"]}
|
||||
alt="mined transactions"
|
||||
/>
|
||||
<Heading textAlign="center ">
|
||||
Ethereum pending transactions
|
||||
</Heading>
|
||||
</Stack>
|
||||
<Stack spacing={1} px={1} alignItems="center">
|
||||
<ChakraImage
|
||||
boxSize={["220px", "220px", "xs", null, "xs"]}
|
||||
objectFit="contain"
|
||||
src={assets["priceInformation"]}
|
||||
alt="mined transactions"
|
||||
/>
|
||||
<Heading textAlign="center ">Centralized exchanges</Heading>
|
||||
</Stack>
|
||||
<Stack spacing={1} px={1} alignItems="center">
|
||||
<ChakraImage
|
||||
boxSize={["220px", "220px", "xs", null, "xs"]}
|
||||
objectFit="contain"
|
||||
src={assets["socialMediaPosts"]}
|
||||
alt="mined transactions"
|
||||
/>
|
||||
<Heading textAlign="center ">Social media posts</Heading>
|
||||
</Stack>
|
||||
</SimpleGrid>
|
||||
<Center>
|
||||
<Heading pt="160px" pb="60px">
|
||||
Moonstream is ment for you if
|
||||
</Heading>
|
||||
</Center>
|
||||
<Flex
|
||||
w="100%"
|
||||
direction={["column", "row", "column", null, "column"]}
|
||||
flexWrap={["nowrap", "nowrap", "nowrap", null, "nowrap"]}
|
||||
pb="66px"
|
||||
>
|
||||
<ConnectedButtons
|
||||
title={"You are..."}
|
||||
button1={{
|
||||
label: "Crypto trader",
|
||||
link: "/#cryptoTrader",
|
||||
onClick: () => {
|
||||
track(`${MIXPANEL_EVENTS.BUTTON_CLICKED}`, {
|
||||
[`${MIXPANEL_PROPS.BUTTON_CLICKED}`]: `scroll to CryptoTrader`,
|
||||
});
|
||||
},
|
||||
}}
|
||||
button2={{
|
||||
label: "Algorithmic Fund",
|
||||
link: "/#algoFund",
|
||||
onClick: () => {
|
||||
track(`${MIXPANEL_EVENTS.BUTTON_CLICKED}`, {
|
||||
[`${MIXPANEL_PROPS.BUTTON_CLICKED}`]: `scroll to AlgoFund`,
|
||||
});
|
||||
},
|
||||
}}
|
||||
button3={{
|
||||
label: "Developer",
|
||||
link: "/#smartDeveloper",
|
||||
onClick: () => {
|
||||
track(`${MIXPANEL_EVENTS.BUTTON_CLICKED}`, {
|
||||
[`${MIXPANEL_PROPS.BUTTON_CLICKED}`]: `scroll to Developer`,
|
||||
});
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</Flex>
|
||||
</GridItem>
|
||||
<GridItem
|
||||
px="7%"
|
||||
colSpan="12"
|
||||
pt={["1rem", "1rem", "5.125rem", null, "5.125rem"]}
|
||||
pb={["0", "66px", null, "66px"]}
|
||||
id="cryptoTrader"
|
||||
minH={ui.isMobileView ? "100vh" : null}
|
||||
>
|
||||
<SplitWithImage
|
||||
cta={{
|
||||
label: "I want early access!",
|
||||
onClick: () => {
|
||||
track(`${MIXPANEL_EVENTS.BUTTON_CLICKED}`, {
|
||||
[`${MIXPANEL_PROPS.BUTTON_CLICKED}`]: `Early access CTA: Crypto trader`,
|
||||
});
|
||||
toggleModal("hubspot-trader");
|
||||
},
|
||||
}}
|
||||
elementName={"element1"}
|
||||
colorScheme="suggested"
|
||||
badge={`For crypto traders`}
|
||||
title={``}
|
||||
body={``}
|
||||
bullets={[
|
||||
{
|
||||
text: `Subscribe to the defi contracts you care about`,
|
||||
icon: FaFileContract,
|
||||
color: "suggested.50",
|
||||
bgColor: "suggested.900",
|
||||
},
|
||||
{
|
||||
text: `Make sense of how others are calling these contracts using Moonstream dashboards.
|
||||
`,
|
||||
icon: RiDashboardFill,
|
||||
color: "suggested.50",
|
||||
bgColor: "suggested.900",
|
||||
},
|
||||
{
|
||||
text: `Get data directly from the transaction pool through our global network of Ethereum nodes`,
|
||||
icon: GiMeshBall,
|
||||
color: "suggested.50",
|
||||
bgColor: "suggested.900",
|
||||
},
|
||||
]}
|
||||
imgURL={assets["cryptoTraders"]}
|
||||
/>
|
||||
</GridItem>
|
||||
<GridItem
|
||||
px="7%"
|
||||
colSpan="12"
|
||||
pt={["1rem", "1rem", "5.125rem", null, "5.125rem"]}
|
||||
pb={["0", "66px", null, "66px"]}
|
||||
id="algoFund"
|
||||
minH={ui.isMobileView ? "100vh" : null}
|
||||
>
|
||||
<SplitWithImage
|
||||
cta={{
|
||||
label: "I want early access!",
|
||||
onClick: () => {
|
||||
track(`${MIXPANEL_EVENTS.BUTTON_CLICKED}`, {
|
||||
[`${MIXPANEL_PROPS.BUTTON_CLICKED}`]: `Early access CTA: Algo fund`,
|
||||
});
|
||||
toggleModal("hubspot-fund");
|
||||
},
|
||||
}}
|
||||
elementName={"element2"}
|
||||
mirror={true}
|
||||
colorScheme="secondary"
|
||||
badge={`For algorithmic funds`}
|
||||
bullets={[
|
||||
{
|
||||
text: `Get API access to your stream`,
|
||||
icon: AiFillApi,
|
||||
color: "secondary.50",
|
||||
bgColor: "secondary.900",
|
||||
},
|
||||
{
|
||||
text: `Set conditions that trigger predefined actions`,
|
||||
icon: GiLogicGateXor,
|
||||
color: "secondary.50",
|
||||
bgColor: "secondary.900",
|
||||
},
|
||||
{
|
||||
text: `Execute transactions directly on Moonstream nodes`,
|
||||
icon: BiTransfer,
|
||||
color: "secondary.50",
|
||||
bgColor: "secondary.900",
|
||||
},
|
||||
]}
|
||||
imgURL={assets["algorithmicFunds"]}
|
||||
/>
|
||||
</GridItem>
|
||||
<GridItem
|
||||
px="7%"
|
||||
colSpan="12"
|
||||
pt={["1rem", "1rem", "5.125rem", null, "5.125rem"]}
|
||||
pb={["0", "66px", null, "66px"]}
|
||||
id="smartDeveloper"
|
||||
minH={ui.isMobileView ? "100vh" : null}
|
||||
>
|
||||
<SplitWithImage
|
||||
cta={{
|
||||
label: "I want early access!",
|
||||
onClick: () => {
|
||||
track(`${MIXPANEL_EVENTS.BUTTON_CLICKED}`, {
|
||||
[`${MIXPANEL_PROPS.BUTTON_CLICKED}`]: `Early access CTA: developer`,
|
||||
});
|
||||
toggleModal("hubspot-developer");
|
||||
},
|
||||
}}
|
||||
elementName={"element3"}
|
||||
colorScheme="primary"
|
||||
badge={`For smart contract developers`}
|
||||
bullets={[
|
||||
{
|
||||
text: `See how people use your smart contracts`,
|
||||
icon: IoTelescopeSharp,
|
||||
color: "primary.50",
|
||||
bgColor: "primary.900",
|
||||
},
|
||||
{
|
||||
text: `Set up alerts on suspicious activity`,
|
||||
icon: GiSuspicious,
|
||||
color: "primary.50",
|
||||
bgColor: "primary.900",
|
||||
},
|
||||
{
|
||||
text: `Register webhooks to connect your off-chain infrastructure`,
|
||||
icon: GiHook,
|
||||
color: "primary.50",
|
||||
bgColor: "primary.900",
|
||||
},
|
||||
]}
|
||||
imgURL={assets["smartDevelopers"]}
|
||||
/>
|
||||
</GridItem>
|
||||
<GridItem
|
||||
placeItems="center"
|
||||
w="100%"
|
||||
colSpan="12"
|
||||
pt={["0", "0", "5.125rem", null, "5.125rem"]}
|
||||
pb="120px"
|
||||
>
|
||||
<Center>
|
||||
<Button
|
||||
as={Link}
|
||||
isExternal
|
||||
href={"https://discord.gg/FetK5BxD"}
|
||||
size="lg"
|
||||
variant="solid"
|
||||
colorScheme="suggested"
|
||||
id="test"
|
||||
onClick={() => {
|
||||
track(`${MIXPANEL_EVENTS.BUTTON_CLICKED}`, {
|
||||
[`${MIXPANEL_PROPS.BUTTON_CLICKED}`]: `Join our discord`,
|
||||
});
|
||||
toggleModal("hubspot");
|
||||
}}
|
||||
>
|
||||
Join our discord
|
||||
</Button>
|
||||
</Center>
|
||||
</GridItem>
|
||||
</Grid>
|
||||
</Flex>
|
||||
</Box>
|
||||
</Fade>
|
||||
);
|
||||
};
|
||||
|
||||
export async function getStaticProps() {
|
||||
const metaTags = {
|
||||
title: "Moonstream.to: All your crypto data in one stream",
|
||||
description:
|
||||
"From the Ethereum transaction pool to Elon Musk’s latest tweets get all the crypto data you care about in one stream.",
|
||||
keywords:
|
||||
"blockchain, crypto, data, trading, smart contracts, ethereum, solana, transactions, defi, finance, decentralized",
|
||||
url: "https://www.moonstream.to",
|
||||
image: `${AWS_PATH}/crypto+traders.png`,
|
||||
};
|
||||
|
||||
const assetPreload = Object.keys(assets).map((key) => {
|
||||
return {
|
||||
rel: "preload",
|
||||
href: assets[key],
|
||||
as: "image",
|
||||
};
|
||||
});
|
||||
const preconnects = [{ rel: "preconnect", href: "https://s3.amazonaws.com" }];
|
||||
|
||||
const preloads = assetPreload.concat(preconnects);
|
||||
|
||||
return {
|
||||
props: { metaTags, preloads },
|
||||
};
|
||||
}
|
||||
|
||||
Homepage.layout = "default";
|
||||
Homepage.getLayout = getLayout;
|
||||
|
||||
export default Homepage;
|
|
@ -1,597 +0,0 @@
|
|||
import React, { useState, useEffect, Suspense } from "react";
|
||||
import {
|
||||
Flex,
|
||||
Heading,
|
||||
Text,
|
||||
Box,
|
||||
Image,
|
||||
ListItem,
|
||||
Button,
|
||||
Link,
|
||||
ListIcon,
|
||||
List,
|
||||
useBreakpointValue,
|
||||
Center,
|
||||
Fade,
|
||||
} from "@chakra-ui/react";
|
||||
import { Grid, GridItem } from "@chakra-ui/react";
|
||||
import { useUser, useAnalytics, useModals, useRouter } from "../src/core/hooks";
|
||||
import { openPopupWidget, InlineWidget } from "react-calendly";
|
||||
import TrustedBadge from "../src/components/TrustedBadge";
|
||||
import { getLayout } from "../src/layouts";
|
||||
|
||||
const TEXT_PROPS = {
|
||||
fontSize: ["lg", null, "xl"],
|
||||
fontWeight: "600",
|
||||
};
|
||||
|
||||
const HEADING_PROPS = {
|
||||
fontWeight: "700",
|
||||
fontSize: ["4xl", "5xl", "4xl", "5xl", "6xl", "7xl"],
|
||||
};
|
||||
|
||||
const TITLE_PROPS = {
|
||||
fontWeight: "700",
|
||||
fontSize: ["4xl", "5xl", "5xl", "5xl", "6xl", "120px"],
|
||||
};
|
||||
|
||||
const TRIPLE_PICS_PROPS = {
|
||||
fontSize: ["2xl", "3xl", "3xl", "3xl", "4xl", "4xl"],
|
||||
textAlign: "center",
|
||||
fontWeight: "500",
|
||||
py: 4,
|
||||
};
|
||||
|
||||
const TRIPLE_PICS_TEXT = {
|
||||
fontSize: ["lg", "xl", "xl", "xl", "2xl", "3xl"],
|
||||
textAlign: "center",
|
||||
fontWeight: "400",
|
||||
mb: ["2rem", "2rem", "0", null, "0"],
|
||||
};
|
||||
|
||||
const CARD_CONTAINER = {
|
||||
className: "CardContainer",
|
||||
w: "100%",
|
||||
mx: [0, 0, "2rem", null, "4rem"],
|
||||
|
||||
alignSelf: ["center", null, "flex-start"],
|
||||
};
|
||||
|
||||
const IMAGE_CONTAINER = {
|
||||
className: "ImageContainer",
|
||||
h: ["10rem", "14rem", "14rem", "15rem", "18rem", "20rem"],
|
||||
justifyContent: "center",
|
||||
};
|
||||
|
||||
const AWS_PATH = "https://s3.amazonaws.com/static.simiotics.com/landing";
|
||||
|
||||
const assets = {
|
||||
background: `${AWS_PATH}/landing-background-2.png`,
|
||||
aviator: `${AWS_PATH}/aviator-2.svg`,
|
||||
icon1: `${AWS_PATH}/v2/Icon+1.svg`,
|
||||
icon2: `${AWS_PATH}/v2/Icon+2.svg`,
|
||||
icon3: `${AWS_PATH}/v2/Icon+3.svg`,
|
||||
icon4: `${AWS_PATH}/v2/Icon+4.svg`,
|
||||
icon5: `${AWS_PATH}/v2/Icon+5.svg`,
|
||||
icon6: `${AWS_PATH}/v2/Icon+6.svg`,
|
||||
activeloopLogo: `${AWS_PATH}/activeloop.svg`,
|
||||
aiIncubeLogo: `${AWS_PATH}/ai incube.svg`,
|
||||
b612Logo: `${AWS_PATH}/b612.svg`,
|
||||
harvardLogo: `${AWS_PATH}/harvard.svg`,
|
||||
mattermarkLogo: `${AWS_PATH}/mattermark.svg`,
|
||||
mixrankLogo: `${AWS_PATH}/mixrank.svg`,
|
||||
toolchainLogo: `${AWS_PATH}/toolchain.svg`,
|
||||
};
|
||||
const Homepage = () => {
|
||||
const router = useRouter();
|
||||
const buttonSize = useBreakpointValue({
|
||||
base: "md",
|
||||
sm: "md",
|
||||
md: "md",
|
||||
lg: "lg",
|
||||
xl: "xl",
|
||||
"2xl": "xl",
|
||||
});
|
||||
|
||||
const ButtonRadius = "2xl";
|
||||
const buttonWidth = ["100%", "100%", "40%", "45%", "45%", "45%"];
|
||||
const buttonMinWidth = "10rem";
|
||||
const { isInit } = useUser();
|
||||
const { withTracking, MIXPANEL_EVENTS } = useAnalytics();
|
||||
|
||||
const { toggleModal } = useModals();
|
||||
const [scrollDepth, setScrollDepth] = useState(0);
|
||||
|
||||
const getScrollPrecent = ({ currentTarget }) => {
|
||||
const scroll_level =
|
||||
(100 * (currentTarget.scrollTop + currentTarget.clientHeight)) /
|
||||
currentTarget.scrollHeight;
|
||||
return scroll_level;
|
||||
};
|
||||
|
||||
const handleScroll = (e) => {
|
||||
const currentScroll = Math.ceil(getScrollPrecent(e) / 10);
|
||||
|
||||
if (currentScroll > scrollDepth) {
|
||||
withTracking(
|
||||
setScrollDepth(currentScroll),
|
||||
MIXPANEL_EVENTS.HOMEPAGE_SCROLL_DEPTH,
|
||||
scrollDepth
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
const DoubleCTAButton = () => (
|
||||
<Flex
|
||||
justifyContent="flex-start"
|
||||
// mt={20}
|
||||
flexWrap="wrap"
|
||||
width="100%"
|
||||
>
|
||||
<Button
|
||||
variant="solid"
|
||||
w={buttonWidth}
|
||||
minW={buttonMinWidth}
|
||||
borderRadius={ButtonRadius}
|
||||
colorScheme="secondary"
|
||||
size={buttonSize}
|
||||
onClick={() => toggleModal("register")}
|
||||
mr="1.25rem"
|
||||
color="white"
|
||||
border="2px solid #D35725"
|
||||
fontWeight="400"
|
||||
>
|
||||
Sign up for free
|
||||
</Button>
|
||||
|
||||
<Suspense fallback={""}>
|
||||
<Button
|
||||
variant="outline"
|
||||
colorScheme="gray"
|
||||
color="black"
|
||||
borderRadius={ButtonRadius}
|
||||
w={buttonWidth}
|
||||
minW={buttonMinWidth}
|
||||
mr="1.25rem"
|
||||
size={buttonSize}
|
||||
fontWeight="400"
|
||||
onClick={() => {
|
||||
openPopupWidget({
|
||||
url: "https://calendly.com/neeraj-simiotics/bugout-30",
|
||||
});
|
||||
}}
|
||||
>
|
||||
Book office hours
|
||||
</Button>
|
||||
</Suspense>
|
||||
</Flex>
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
router.nextRouter.asPath !== "/" &&
|
||||
router.nextRouter.asPath.slice(0, 2) !== "/?"
|
||||
) {
|
||||
router.replace(router.nextRouter.asPath, undefined, {
|
||||
shallow: true,
|
||||
});
|
||||
}
|
||||
}, [isInit, router]);
|
||||
|
||||
return (
|
||||
<Fade in>
|
||||
<Box
|
||||
width="100%"
|
||||
flexDirection="column"
|
||||
onScroll={(e) => handleScroll(e)}
|
||||
>
|
||||
<Flex
|
||||
direction="column"
|
||||
h="auto"
|
||||
position="relative"
|
||||
w="100%"
|
||||
overflow="initial"
|
||||
>
|
||||
<Suspense fallback={""}></Suspense>
|
||||
|
||||
<Grid templateColumns="repeat(12,1fr)">
|
||||
<GridItem px="7%" colSpan="12" pb={[1, 2, null, 8]}>
|
||||
<Flex w="100%" wrap="wrap">
|
||||
<Flex
|
||||
direction="column"
|
||||
alignItems="left"
|
||||
pr={[0, null, 24]}
|
||||
flexBasis="300px"
|
||||
flexGrow={1}
|
||||
>
|
||||
<Heading
|
||||
pt={["2rem", "3rem", "3rem", "10rem", "12rem", "14rem"]}
|
||||
{...TITLE_PROPS}
|
||||
mb={3}
|
||||
fontWeight="700"
|
||||
>
|
||||
Measure the success of your dev tool
|
||||
</Heading>
|
||||
<Text
|
||||
fontSize={["3xl", "4xl", "3xl", "4xl", "5xl", "6xl"]}
|
||||
pb={[0, 0, 0, 0, 0, "3rem"]}
|
||||
mb={20}
|
||||
fontWeight="600"
|
||||
color="primary.1000"
|
||||
lineHeight="100%"
|
||||
>
|
||||
Get usage metrics and crash reports <br />{" "}
|
||||
{`Improve your
|
||||
users' experience`}
|
||||
</Text>
|
||||
<DoubleCTAButton />
|
||||
</Flex>
|
||||
<Flex flexBasis="200px" flexGrow={1} flexShrink={1}>
|
||||
<Image
|
||||
rel="preconnect"
|
||||
src={assets["aviator"]}
|
||||
alt="Bugout is on the fly to report your crashes"
|
||||
/>
|
||||
</Flex>
|
||||
</Flex>
|
||||
</GridItem>
|
||||
<GridItem
|
||||
px="7%"
|
||||
colSpan="12"
|
||||
pt={["20px", "20px", "100px", null, "120px"]}
|
||||
pb={["20px", "56px", null, "184px"]}
|
||||
bgSize="cover"
|
||||
bgImage={`url(${assets["background"]})`}
|
||||
>
|
||||
<Heading
|
||||
{...HEADING_PROPS}
|
||||
textAlign="center"
|
||||
pb={[12, 12, 12, null, 48]}
|
||||
>
|
||||
See what your users are experiencing with your library, API, or
|
||||
command line tool
|
||||
</Heading>
|
||||
|
||||
<Flex
|
||||
direction={["column", null, "row"]}
|
||||
flexWrap="nowrap"
|
||||
justifyContent={["center", null, "space-evenly"]}
|
||||
>
|
||||
<Box {...CARD_CONTAINER}>
|
||||
<Flex {...IMAGE_CONTAINER}>
|
||||
<Image
|
||||
w="100%"
|
||||
src={assets["icon2"]}
|
||||
alt="privacy is our prioriy"
|
||||
/>
|
||||
</Flex>
|
||||
<Heading {...TRIPLE_PICS_PROPS}>
|
||||
Catch and fix bugs faster
|
||||
</Heading>
|
||||
<Text {...TRIPLE_PICS_TEXT}>
|
||||
Learn about errors as they occur, with full stack traces.
|
||||
</Text>
|
||||
</Box>
|
||||
<Box {...CARD_CONTAINER}>
|
||||
<Flex {...IMAGE_CONTAINER}>
|
||||
<Image w="100%" src={assets["icon1"]} alt="live metrics" />
|
||||
</Flex>
|
||||
<Heading {...TRIPLE_PICS_PROPS}>
|
||||
Understand your user engagement and retention
|
||||
</Heading>
|
||||
<Text {...TRIPLE_PICS_TEXT}>
|
||||
Learn how users are using your tool, and how frequently.
|
||||
</Text>
|
||||
</Box>
|
||||
|
||||
<Box {...CARD_CONTAINER}>
|
||||
<Flex {...IMAGE_CONTAINER}>
|
||||
<Image
|
||||
w="100%"
|
||||
src={assets["icon3"]}
|
||||
alt="we make it simple for user"
|
||||
/>
|
||||
</Flex>
|
||||
<Heading {...TRIPLE_PICS_PROPS}>
|
||||
Inform your product roadmap
|
||||
</Heading>
|
||||
<Text {...TRIPLE_PICS_TEXT}>
|
||||
Understand which features people are actually using.
|
||||
</Text>
|
||||
</Box>
|
||||
</Flex>
|
||||
<Text
|
||||
textAlign="center"
|
||||
fontSize={["xl", "2xl", "2xl", "3xl", "4xl", "5xl"]}
|
||||
fontWeight="600"
|
||||
pt={[4, null, 12]}
|
||||
>
|
||||
We currently support Python, Javascript and Go!
|
||||
<br />
|
||||
Want us to support other programming languages?{" "}
|
||||
<Button
|
||||
size="2xl"
|
||||
colorScheme="primary"
|
||||
variant="link"
|
||||
onClick={() => toggleModal("Integration")}
|
||||
>
|
||||
Let us know
|
||||
</Button>
|
||||
</Text>
|
||||
</GridItem>
|
||||
<GridItem px="7%" colSpan="12" pt="5.125rem" pb="66px">
|
||||
<Heading {...HEADING_PROPS} textAlign="center" pb={12}>
|
||||
Engage with your users on a deeper level
|
||||
</Heading>
|
||||
|
||||
<Flex
|
||||
direction={["column", null, "row"]}
|
||||
flexWrap="nowrap"
|
||||
justifyContent={["center", null, "space-evenly"]}
|
||||
>
|
||||
<Box {...CARD_CONTAINER}>
|
||||
<Flex {...IMAGE_CONTAINER}>
|
||||
<Image w="100%" src={assets["icon4"]} alt="live metrics" />
|
||||
</Flex>
|
||||
<Heading {...TRIPLE_PICS_PROPS}>Live dashboards</Heading>
|
||||
<Text {...TRIPLE_PICS_TEXT}>
|
||||
See your users’ journeys as they happen
|
||||
</Text>
|
||||
</Box>
|
||||
<Box {...CARD_CONTAINER}>
|
||||
<Flex {...IMAGE_CONTAINER}>
|
||||
<Image
|
||||
w="100%"
|
||||
src={assets["icon5"]}
|
||||
alt="privacy is our prioriy"
|
||||
/>
|
||||
</Flex>
|
||||
<Heading {...TRIPLE_PICS_PROPS}>GDPR compliance</Heading>
|
||||
<Text {...TRIPLE_PICS_TEXT}>
|
||||
Automatically handle GDPR-related user requests
|
||||
</Text>
|
||||
</Box>
|
||||
<Box {...CARD_CONTAINER}>
|
||||
<Flex {...IMAGE_CONTAINER}>
|
||||
<Image
|
||||
w="100%"
|
||||
src={assets["icon6"]}
|
||||
alt="we make it simple for user"
|
||||
/>
|
||||
</Flex>
|
||||
<Heading {...TRIPLE_PICS_PROPS}>
|
||||
Simple user consent flows
|
||||
</Heading>
|
||||
<Text {...TRIPLE_PICS_TEXT}>
|
||||
Define principled user consent flows in only a few lines of
|
||||
code.
|
||||
</Text>
|
||||
</Box>
|
||||
</Flex>
|
||||
<Center>
|
||||
<Flex
|
||||
m={0}
|
||||
mt="120px"
|
||||
flexWrap="wrap"
|
||||
width="100%"
|
||||
w={["360px", "360px", "500px", null, "800px"]}
|
||||
>
|
||||
<Button
|
||||
variant="solid"
|
||||
w={buttonWidth}
|
||||
minW="14rem"
|
||||
borderRadius={ButtonRadius}
|
||||
colorScheme="secondary"
|
||||
size={buttonSize}
|
||||
onClick={() => toggleModal("register")}
|
||||
mr="1.25rem"
|
||||
color="white"
|
||||
border="2px solid #D35725"
|
||||
fontWeight="400"
|
||||
>
|
||||
Sign up for free
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
variant="outline"
|
||||
colorScheme="gray"
|
||||
color="black"
|
||||
borderRadius={ButtonRadius}
|
||||
w={buttonWidth}
|
||||
minW="14rem"
|
||||
mr="1.25rem"
|
||||
size={buttonSize}
|
||||
fontWeight="400"
|
||||
onClick={() => {
|
||||
openPopupWidget({
|
||||
url: "https://calendly.com/neeraj-simiotics/bugout-30",
|
||||
});
|
||||
}}
|
||||
>
|
||||
Book office hours
|
||||
</Button>
|
||||
</Flex>
|
||||
</Center>
|
||||
</GridItem>
|
||||
<GridItem
|
||||
px="7%"
|
||||
colSpan="12"
|
||||
pt="66px"
|
||||
bgColor="primary.50"
|
||||
pb={["20px", "30px", "92px", null, "92px", "196px"]}
|
||||
>
|
||||
<Heading {...HEADING_PROPS} textAlign="center" pb={14} pt={0}>
|
||||
Loved by proactive teams{" "}
|
||||
<span role="img" aria-label="heart">
|
||||
💙
|
||||
</span>
|
||||
</Heading>
|
||||
<Flex wrap="wrap" direction="row" justifyContent="center">
|
||||
<Suspense fallback={""}>
|
||||
<TrustedBadge
|
||||
name="activeloop"
|
||||
caseURL="/case-studies/activeloop"
|
||||
ImgURL={assets["activeloopLogo"]}
|
||||
/>
|
||||
<TrustedBadge
|
||||
name="ai incube"
|
||||
ImgURL={assets["aiIncubeLogo"]}
|
||||
/>
|
||||
<TrustedBadge name="b612" ImgURL={assets["b612Logo"]} />
|
||||
<TrustedBadge name="harvard" ImgURL={assets["harvardLogo"]} />
|
||||
<TrustedBadge
|
||||
name="mattermark"
|
||||
ImgURL={assets["mattermarkLogo"]}
|
||||
/>
|
||||
<TrustedBadge name="mixrank" ImgURL={assets["mixrankLogo"]} />
|
||||
<TrustedBadge
|
||||
name="toolchain"
|
||||
ImgURL={assets["toolchainLogo"]}
|
||||
/>
|
||||
</Suspense>
|
||||
</Flex>
|
||||
</GridItem>
|
||||
<GridItem px="7%" colSpan="12" py={24}>
|
||||
<Heading textAlign="center" {...HEADING_PROPS} pb={8}>
|
||||
Ready to learn more?
|
||||
</Heading>
|
||||
<Text textAlign="center" {...TEXT_PROPS}>
|
||||
Book office hours with Neeraj Kashyap (
|
||||
<Link
|
||||
color="primary.500"
|
||||
isExternal
|
||||
href="https://github.com/zomglings"
|
||||
>
|
||||
@zomglings
|
||||
</Link>
|
||||
), CEO of Bugout
|
||||
</Text>
|
||||
</GridItem>
|
||||
|
||||
<GridItem px="7%" colSpan="12"></GridItem>
|
||||
</Grid>
|
||||
<Flex
|
||||
bg="primary.1200"
|
||||
direction={["column", null, "row"]}
|
||||
w="100%"
|
||||
py="2rem"
|
||||
px="7%"
|
||||
h="100%"
|
||||
>
|
||||
<Flex
|
||||
w={["100%", null, "50%"]}
|
||||
textColor="white.200"
|
||||
direction="column"
|
||||
pr={[0, 0, 12, null, 12]}
|
||||
>
|
||||
<Heading
|
||||
fontSize={["xl", "3xl", null, "3xl", "5xl", "5xl"]}
|
||||
fontWeight="500"
|
||||
alignSelf="left"
|
||||
pt={[4, 4, 24, null, 24]}
|
||||
pb={[6, 6, 12, null, 16]}
|
||||
>
|
||||
{`Let's talk about:`}
|
||||
</Heading>
|
||||
<List
|
||||
fontWeight="400"
|
||||
fontSize={["md", null, "2xl", "2xl", "3xl", "4xl"]}
|
||||
alignSelf="center"
|
||||
spacing={[4, 4, 8, null, 8]}
|
||||
>
|
||||
<ListItem>
|
||||
<ListIcon as={() => "- "} />
|
||||
How to measure and improve the quality of your users’
|
||||
experience
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={() => "- "} />
|
||||
Ethical data collection
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={() => "- "} />
|
||||
Developer tools best practices, pulling from our experience at
|
||||
OpenAI and Google (TensorFlow, Kubeflow, Google Cloud)
|
||||
</ListItem>
|
||||
</List>
|
||||
<Heading
|
||||
fontSize={["xl", "3xl", null, "3xl", "5xl", "5xl"]}
|
||||
fontWeight="500"
|
||||
pt={[4, null, 8, 16, 24]}
|
||||
>
|
||||
Book now →
|
||||
</Heading>
|
||||
</Flex>
|
||||
<Flex className="CalendlyWrapper" w={["100%", null, "45%"]}>
|
||||
<InlineWidget
|
||||
styles={{
|
||||
width: "100%",
|
||||
height: "720px",
|
||||
}}
|
||||
hid
|
||||
url="https://calendly.com/neeraj-simiotics/bugout-30?hide_event_type_details=1"
|
||||
/>
|
||||
</Flex>
|
||||
</Flex>
|
||||
|
||||
<Grid px="7%" templateColumns="repeat(12,1fr)">
|
||||
<GridItem colSpan="4" py={2}>
|
||||
|
||||
</GridItem>
|
||||
<GridItem colSpan="4" py={2}>
|
||||
<Center>
|
||||
<iframe
|
||||
title="substack"
|
||||
src="https://bugout.substack.com/embed"
|
||||
width="480"
|
||||
height="320"
|
||||
frameBorder="0"
|
||||
scrolling="no"
|
||||
></iframe>
|
||||
</Center>
|
||||
</GridItem>
|
||||
<GridItem colSpan="4" py={2}>
|
||||
|
||||
</GridItem>
|
||||
</Grid>
|
||||
</Flex>
|
||||
</Box>
|
||||
</Fade>
|
||||
);
|
||||
};
|
||||
|
||||
export async function getStaticProps() {
|
||||
const metaTags = {
|
||||
title: "Bugout: Measure the success of your dev tool",
|
||||
description:
|
||||
"Get usage metrics and crash reports. Improve your users' experience",
|
||||
keywords:
|
||||
"bugout, bugout-dev, bugout.dev, usage-metrics, analytics, dev-tool ,knowledge, docs, journal, entry, find-anything",
|
||||
url: "https://bugout.dev",
|
||||
image:
|
||||
"https://s3.amazonaws.com/static.simiotics.com/landing/aviator-2.svg",
|
||||
};
|
||||
|
||||
const assetPreload = Object.keys(assets).map((key) => {
|
||||
return {
|
||||
rel: "preload",
|
||||
href: assets[key],
|
||||
as: "image",
|
||||
};
|
||||
});
|
||||
const preconnects = [
|
||||
{ rel: "preconnect", href: "https://s3.amazonaws.com" },
|
||||
{ rel: "preconnect", href: "https://assets.calendly.com/" },
|
||||
];
|
||||
|
||||
const preloads = assetPreload.concat(preconnects);
|
||||
|
||||
return {
|
||||
props: { metaTags, preloads },
|
||||
};
|
||||
}
|
||||
|
||||
Homepage.layout = "default";
|
||||
Homepage.getLayout = getLayout;
|
||||
|
||||
export default Homepage;
|
|
@ -1,235 +0,0 @@
|
|||
import React from "react";
|
||||
import {
|
||||
Box,
|
||||
Stack,
|
||||
HStack,
|
||||
Heading,
|
||||
Text,
|
||||
VStack,
|
||||
useColorModeValue,
|
||||
List,
|
||||
ListItem,
|
||||
ListIcon,
|
||||
Button,
|
||||
} from "@chakra-ui/react";
|
||||
import { FaCheckCircle } from "react-icons/fa";
|
||||
import { getLayout } from "../src/layouts";
|
||||
|
||||
function PriceWrapper({ children }) {
|
||||
return (
|
||||
<Box
|
||||
mb={4}
|
||||
shadow="base"
|
||||
borderWidth="1px"
|
||||
alignSelf={{ base: "center", lg: "flex-start" }}
|
||||
borderColor={useColorModeValue("gray.200", "gray.500")}
|
||||
borderRadius={"xl"}
|
||||
>
|
||||
{children}
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
const Pricing = () => {
|
||||
return (
|
||||
<Box py={12} minH="100vh">
|
||||
<VStack spacing={2} textAlign="center">
|
||||
<Heading as="h1" fontSize="4xl">
|
||||
Plans that fit your need
|
||||
</Heading>
|
||||
<Text fontSize="lg" color={"gray.500"}>
|
||||
Start with 14-day free trial. No credit card needed. Cancel at
|
||||
anytime.
|
||||
</Text>
|
||||
</VStack>
|
||||
<Stack
|
||||
direction={{ base: "column", md: "row" }}
|
||||
textAlign="center"
|
||||
justify="center"
|
||||
spacing={{ base: 4, lg: 10 }}
|
||||
py={10}
|
||||
>
|
||||
<PriceWrapper>
|
||||
<Box py={4} px={12}>
|
||||
<Text fontWeight="500" fontSize="2xl">
|
||||
Hobby
|
||||
</Text>
|
||||
<HStack justifyContent="center">
|
||||
<Text fontSize="3xl" fontWeight="600">
|
||||
$
|
||||
</Text>
|
||||
<Text fontSize="5xl" fontWeight="900">
|
||||
79
|
||||
</Text>
|
||||
<Text fontSize="3xl" color="gray.500">
|
||||
/month
|
||||
</Text>
|
||||
</HStack>
|
||||
</Box>
|
||||
<VStack
|
||||
bg={useColorModeValue("gray.50", "gray.700")}
|
||||
py={4}
|
||||
borderBottomRadius={"xl"}
|
||||
>
|
||||
<List spacing={3} textAlign="start" px={12}>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
unlimited build minutes
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
Lorem, ipsum dolor.
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
5TB Lorem, ipsum dolor.
|
||||
</ListItem>
|
||||
</List>
|
||||
<Box w="80%" pt={7}>
|
||||
<Button w="full" colorScheme="primary" variant="outline">
|
||||
Start trial
|
||||
</Button>
|
||||
</Box>
|
||||
</VStack>
|
||||
</PriceWrapper>
|
||||
|
||||
<PriceWrapper>
|
||||
<Box position="relative">
|
||||
<Box
|
||||
position="absolute"
|
||||
top="-16px"
|
||||
left="50%"
|
||||
style={{ transform: "translate(-50%)" }}
|
||||
>
|
||||
<Text
|
||||
textTransform="uppercase"
|
||||
bg={useColorModeValue("secondary.300", "secondary.700")}
|
||||
px={3}
|
||||
py={1}
|
||||
color={useColorModeValue("white.900", "white.300")}
|
||||
fontSize="sm"
|
||||
fontWeight="600"
|
||||
rounded="xl"
|
||||
>
|
||||
Most Popular
|
||||
</Text>
|
||||
</Box>
|
||||
<Box py={4} px={12}>
|
||||
<Text fontWeight="500" fontSize="2xl">
|
||||
Growth
|
||||
</Text>
|
||||
<HStack justifyContent="center">
|
||||
<Text fontSize="3xl" fontWeight="600">
|
||||
$
|
||||
</Text>
|
||||
<Text fontSize="5xl" fontWeight="900">
|
||||
149
|
||||
</Text>
|
||||
<Text fontSize="3xl" color="gray.500">
|
||||
/month
|
||||
</Text>
|
||||
</HStack>
|
||||
</Box>
|
||||
<VStack
|
||||
bg={useColorModeValue("gray.50", "gray.700")}
|
||||
py={4}
|
||||
borderBottomRadius={"xl"}
|
||||
>
|
||||
<List spacing={3} textAlign="start" px={12}>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
unlimited build minutes
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
Lorem, ipsum dolor.
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
5TB Lorem, ipsum dolor.
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
5TB Lorem, ipsum dolor.
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
5TB Lorem, ipsum dolor.
|
||||
</ListItem>
|
||||
</List>
|
||||
<Box w="80%" pt={7}>
|
||||
<Button w="full" colorScheme="suggested">
|
||||
Start trial
|
||||
</Button>
|
||||
</Box>
|
||||
</VStack>
|
||||
</Box>
|
||||
</PriceWrapper>
|
||||
<PriceWrapper>
|
||||
<Box py={4} px={12}>
|
||||
<Text fontWeight="500" fontSize="2xl">
|
||||
Scale
|
||||
</Text>
|
||||
<HStack justifyContent="center">
|
||||
<Text fontSize="3xl" fontWeight="600">
|
||||
$
|
||||
</Text>
|
||||
<Text fontSize="5xl" fontWeight="900">
|
||||
349
|
||||
</Text>
|
||||
<Text fontSize="3xl" color="gray.500">
|
||||
/month
|
||||
</Text>
|
||||
</HStack>
|
||||
</Box>
|
||||
<VStack
|
||||
bg={useColorModeValue("gray.50", "gray.700")}
|
||||
py={4}
|
||||
borderBottomRadius={"xl"}
|
||||
>
|
||||
<List spacing={3} textAlign="start" px={12}>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
unlimited build minutes
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
Lorem, ipsum dolor.
|
||||
</ListItem>
|
||||
<ListItem>
|
||||
<ListIcon as={FaCheckCircle} color="suggested.900" />
|
||||
5TB Lorem, ipsum dolor.
|
||||
</ListItem>
|
||||
</List>
|
||||
<Box w="80%" pt={7}>
|
||||
<Button w="full" colorScheme="primary" variant="outline">
|
||||
Start trial
|
||||
</Button>
|
||||
</Box>
|
||||
</VStack>
|
||||
</PriceWrapper>
|
||||
</Stack>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
export async function getStaticProps() {
|
||||
const metaTags = {
|
||||
title: "Bugout: Measure the success of your dev tool",
|
||||
description:
|
||||
"Get usage metrics and crash reports. Improve your users' experience",
|
||||
keywords:
|
||||
"bugout, bugout-dev, bugout.dev, usage-metrics, analytics, dev-tool ,knowledge, docs, journal, entry, find-anything",
|
||||
url: "https://bugout.dev",
|
||||
image:
|
||||
"https://s3.amazonaws.com/static.simiotics.com/landing/aviator-2.svg",
|
||||
};
|
||||
|
||||
return {
|
||||
props: { metaTags },
|
||||
};
|
||||
}
|
||||
|
||||
Pricing.getLayout = getLayout;
|
||||
|
||||
export default Pricing;
|
|
@ -0,0 +1,10 @@
|
|||
<svg width="71" height="55" viewBox="0 0 71 55" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0)">
|
||||
<path d="M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z" fill="#5865F2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0">
|
||||
<rect width="71" height="55" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 2.0 KiB |
|
@ -1,6 +1,4 @@
|
|||
/** @jsxRuntime classic */
|
||||
/** @jsx jsx */
|
||||
import { jsx } from "@emotion/react";
|
||||
import React from "react";
|
||||
import RouterLink from "next/link";
|
||||
import {
|
||||
Menu,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useUser, useRouter } from "../core/hooks";
|
||||
import { React, useEffect, Fragment, useState } from "react";
|
||||
import React, { useEffect, Fragment, useState } from "react";
|
||||
import { Heading, Center, Spinner, Link, Button } from "@chakra-ui/react";
|
||||
import RouterLink from "next/link";
|
||||
const ACCOUNT_SCREEN_WIDGETS = {
|
||||
|
|
|
@ -0,0 +1,130 @@
|
|||
import React, { useEffect, useRef, useContext } from "react";
|
||||
import { Flex, Heading, Button, Link, SimpleGrid } from "@chakra-ui/react";
|
||||
import Xarrow, { useXarrow } from "react-xarrows";
|
||||
import UIContext from "../core/providers/UIProvider/context";
|
||||
|
||||
const ArrowCTA = (props) => {
|
||||
const ui = useContext(UIContext);
|
||||
const box0Ref = useRef(null);
|
||||
const box1Ref = useRef(null);
|
||||
const box2Ref = useRef(null);
|
||||
const box3Ref = useRef(null);
|
||||
|
||||
const updateXarrow = useXarrow();
|
||||
|
||||
useEffect(() => {
|
||||
updateXarrow();
|
||||
// eslint-disable-next-line
|
||||
}, [ui.isMobileView]);
|
||||
|
||||
return (
|
||||
<SimpleGrid
|
||||
columns={[1, 2, 3, null, 3]}
|
||||
spacing={[10, 0, 10, null, 10]}
|
||||
placeItems="center"
|
||||
w="100%"
|
||||
_after={{}}
|
||||
>
|
||||
<Flex
|
||||
gridColumn={[1, 1, 2, null, 2]}
|
||||
gridRow={[1, 2, 1, null, 1]}
|
||||
// mb={14}
|
||||
w={["180px", "180px", "250px", null, "250px"]}
|
||||
// ml="16px"
|
||||
placeSelf="center"
|
||||
placeContent="center"
|
||||
>
|
||||
<Heading m={0} ref={box0Ref} fontSize={["lg", "lg", "lg", null, "lg"]}>
|
||||
{props.title}
|
||||
</Heading>
|
||||
</Flex>
|
||||
|
||||
<Button
|
||||
as={props.button1.link && Link}
|
||||
href={props.button1.link ?? null}
|
||||
gridColumn={[1, 2, 1, null, 1]}
|
||||
gridRow={[2, 1, 2, null, 2]}
|
||||
zIndex={10}
|
||||
ref={box1Ref}
|
||||
boxShadow="md"
|
||||
variant="solid"
|
||||
colorScheme="suggested"
|
||||
className="MoonStockSpeciality element1"
|
||||
w={["180px", "180px", "250px", null, "250px"]}
|
||||
onClick={props.button1.onClick}
|
||||
>
|
||||
{props.button1.label}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
as={props.button2.link && Link}
|
||||
href={props.button2.link ?? null}
|
||||
gridColumn={[1, 2, 2, null, 2]}
|
||||
gridRow={[3, 2, 2, null, 2]}
|
||||
zIndex={10}
|
||||
ref={box2Ref}
|
||||
boxShadow="md"
|
||||
variant="solid"
|
||||
colorScheme="secondary"
|
||||
className="MoonStockSpeciality element2"
|
||||
w={["180px", "180px", "250px", null, "250px"]}
|
||||
onClick={props.button2.onClick}
|
||||
>
|
||||
{props.button2.label}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
as={props.button3.link && Link}
|
||||
href={props.button3.link ?? null}
|
||||
gridColumn={[1, 2, 3, null, 3]}
|
||||
gridRow={[4, 3, 2, null, 2]}
|
||||
zIndex={10}
|
||||
ref={box3Ref}
|
||||
boxShadow="md"
|
||||
variant="solid"
|
||||
colorScheme="primary"
|
||||
w={["180px", "180px", "250px", null, "250px"]}
|
||||
onClick={props.button3.onClick}
|
||||
>
|
||||
{props.button3.label}
|
||||
</Button>
|
||||
<Xarrow
|
||||
// showXarrow={!!box0Ref.current && !!box1Ref.current}
|
||||
dashness={{
|
||||
strokeLen: 10,
|
||||
nonStrokeLen: 15,
|
||||
animation: -2,
|
||||
}}
|
||||
// animateDrawing={true}
|
||||
color="#92D050"
|
||||
showHead={false}
|
||||
start={box0Ref} //can be react ref
|
||||
end={box1Ref} //or an id
|
||||
/>
|
||||
<Xarrow
|
||||
dashness={{
|
||||
strokeLen: 10,
|
||||
nonStrokeLen: 15,
|
||||
animation: -1,
|
||||
}}
|
||||
color="#FD5602"
|
||||
showHead={false}
|
||||
start={box0Ref} //can be react ref
|
||||
end={box2Ref} //or an id
|
||||
/>
|
||||
<Xarrow
|
||||
dashness={{
|
||||
strokeLen: 10,
|
||||
nonStrokeLen: 15,
|
||||
animation: -4,
|
||||
}}
|
||||
color="#212990"
|
||||
showHead={false}
|
||||
start={box0Ref} //can be react ref
|
||||
end={box3Ref} //or an id
|
||||
/>
|
||||
</SimpleGrid>
|
||||
);
|
||||
};
|
||||
|
||||
export default ArrowCTA;
|
|
@ -63,7 +63,7 @@ const EntriesNavigation = () => {
|
|||
const ui = useContext(UIContext);
|
||||
const { isOpen, onOpen, onClose } = useDisclosure();
|
||||
const { subscriptionsCache } = useSubscriptions();
|
||||
const [newFilterState, _setNewFilterState] = useState([
|
||||
const [newFilterState, setNewFilterState] = useState([
|
||||
{
|
||||
type: FILTER_TYPES.ADDRESS,
|
||||
direction: DIRECTIONS.SOURCE,
|
||||
|
@ -73,17 +73,6 @@ const EntriesNavigation = () => {
|
|||
]);
|
||||
const [filterState, setFilterState] = useState([]);
|
||||
|
||||
const setNewFilterState = useCallback(
|
||||
(props) => {
|
||||
console.log(
|
||||
"setNewFilterState",
|
||||
props,
|
||||
subscriptionsCache.data.subscriptions[0].id
|
||||
);
|
||||
_setNewFilterState(props);
|
||||
},
|
||||
[subscriptionsCache?.data?.subscriptions]
|
||||
);
|
||||
const loadMoreButtonRef = useRef(null);
|
||||
|
||||
const { fetchMore, isFetchingMore, canFetchMore, EntriesPages, isLoading } =
|
||||
|
@ -144,7 +133,6 @@ const EntriesNavigation = () => {
|
|||
};
|
||||
|
||||
const dropFilterArrayItem = (idx) => {
|
||||
console.log("dropFilterArrayItem", idx, filterState);
|
||||
const newArray = [...filterState];
|
||||
newArray[idx].type = FILTER_TYPES.DISABLED;
|
||||
setFilterState(newArray);
|
||||
|
@ -160,18 +148,15 @@ const EntriesNavigation = () => {
|
|||
};
|
||||
|
||||
const handleConditionChange = (idx) => (e) => {
|
||||
console.log("handleConditionChange", idx, e.target.value);
|
||||
setFilterProps(idx, { condition: parseInt(e.target.value) });
|
||||
};
|
||||
|
||||
const handleFilterStateCallback = (props) => {
|
||||
console.log("handleFilterStateCallback", props);
|
||||
const newFilterState = [...filterState];
|
||||
newFilterState.push({ ...props });
|
||||
setFilterState(newFilterState);
|
||||
};
|
||||
if (subscriptionsCache.isLoading) return "";
|
||||
console.log("filterstate test", filterState);
|
||||
return (
|
||||
<Flex
|
||||
id="JournalNavigation"
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
/** @jsxRuntime classic */
|
||||
/** @jsx jsx */
|
||||
import { jsx } from "@emotion/react";
|
||||
import { Flex, Heading, Text, Link } from "@chakra-ui/react";
|
||||
import React from "react";
|
||||
import { Flex, Text, Link } from "@chakra-ui/react";
|
||||
import CustomIcon from "../components/CustomIcon";
|
||||
import RouterLink from "next/link";
|
||||
|
||||
const ICONS = [
|
||||
{
|
||||
social: "youtube",
|
||||
link: "https://www.youtube.com/channel/UCLVwTlHSiTl05av2GIDPtvQ",
|
||||
social: "discord",
|
||||
link: "https://discord.gg/FetK5BxD",
|
||||
},
|
||||
{ social: "in", link: "https://www.linkedin.com/company/bugoutdev/" },
|
||||
|
||||
{ social: "twit", link: "https://twitter.com/Bugout_dev" },
|
||||
{
|
||||
social: "slack",
|
||||
|
@ -18,11 +15,6 @@ const ICONS = [
|
|||
},
|
||||
];
|
||||
|
||||
const LINKS_SIZES = {
|
||||
fontWeight: "300",
|
||||
fontSize: "lg",
|
||||
};
|
||||
|
||||
const SITEMAP_FLEX_PROPS = {
|
||||
px: 2,
|
||||
alignItems: "flex-start",
|
||||
|
@ -54,32 +46,32 @@ const Footer = () => (
|
|||
maxW="40rem"
|
||||
>
|
||||
<Flex {...SITEMAP_FLEX_PROPS}>
|
||||
<Heading pb={8} size="md">
|
||||
{/* <Heading pb={8} size="md">
|
||||
About
|
||||
</Heading>
|
||||
<RouterLink passHref href="/team">
|
||||
</Heading> */}
|
||||
{/* <RouterLink passHref href="/team">
|
||||
<Link {...LINKS_SIZES}>Team</Link>
|
||||
</RouterLink>
|
||||
<RouterLink passHref href="/events">
|
||||
</RouterLink> */}
|
||||
{/* <RouterLink passHref href="/events">
|
||||
<Link {...LINKS_SIZES}>Events</Link>
|
||||
</RouterLink>
|
||||
<RouterLink passHref href="http://blog.bugout.dev">
|
||||
<Link {...LINKS_SIZES}>Blog</Link>
|
||||
</RouterLink>
|
||||
</RouterLink> */}
|
||||
</Flex>
|
||||
<Flex {...SITEMAP_FLEX_PROPS}>
|
||||
<Heading pb={8} size="md">
|
||||
{/* <Heading pb={8} size="md">
|
||||
Legal
|
||||
</Heading>
|
||||
<RouterLink href="/tos" passHref>
|
||||
<Link {...LINKS_SIZES}>Terms of service</Link>
|
||||
</RouterLink>
|
||||
<RouterLink passHref href="/privacy-policy">
|
||||
</RouterLink> */}
|
||||
{/* <RouterLink passHref href="/privacy-policy">
|
||||
<Link {...LINKS_SIZES}>Privacy policy</Link>
|
||||
</RouterLink>
|
||||
</RouterLink> */}
|
||||
</Flex>
|
||||
|
||||
<Flex {...SITEMAP_FLEX_PROPS}>
|
||||
{/* <Flex {...SITEMAP_FLEX_PROPS}>
|
||||
<Heading pb={8} size="md">
|
||||
Product
|
||||
</Heading>
|
||||
|
@ -89,14 +81,14 @@ const Footer = () => (
|
|||
<RouterLink passHref href={"/case-studies/activeloop"}>
|
||||
<Link {...LINKS_SIZES}>Case studies</Link>
|
||||
</RouterLink>
|
||||
</Flex>
|
||||
</Flex> */}
|
||||
</Flex>
|
||||
<Flex
|
||||
direction="column"
|
||||
flexGrow="1"
|
||||
w="100%"
|
||||
maxW="40rem"
|
||||
alignItems={["center", "center", null, "flex-end"]}
|
||||
alignItems={["flex-end", "flex-end", null, "flex-end"]}
|
||||
pr={[0, null, 8]}
|
||||
>
|
||||
<Text
|
||||
|
@ -106,12 +98,12 @@ const Footer = () => (
|
|||
fontSize="xl"
|
||||
fontWeight="500"
|
||||
>
|
||||
Power to the developers!
|
||||
Stay in touch
|
||||
<span role="img" aria-label="heart">
|
||||
💙
|
||||
</span>
|
||||
</Text>
|
||||
<Flex px={2} width="100%" maxW="30rem" justifyContent="space-between">
|
||||
<Flex px={2} width="100%" maxW="30rem" justifyContent="flex-end">
|
||||
{ICONS.map((icon, index) => (
|
||||
<Link
|
||||
key={`social-footer-icons-${index}`}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { React } from "react";
|
||||
import React from "react";
|
||||
import { Heading, Box, Text, Center, VStack } from "@chakra-ui/react";
|
||||
const Page404 = () => (
|
||||
<Box pt={8} w="100%" h="100%">
|
|
@ -1,4 +1,4 @@
|
|||
import { React } from "react";
|
||||
import React from "react";
|
||||
import { Heading, Box, Text, VStack, Center } from "@chakra-ui/react";
|
||||
const Page403 = ({ location }) => (
|
||||
<Box pt={8} w="100%" h="100%">
|
|
@ -1,4 +1,4 @@
|
|||
import { React } from "react";
|
||||
import React from "react";
|
||||
import Head from "next/head";
|
||||
import propTypes from "prop-types";
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import { React } from "react";
|
||||
import React from "react";
|
||||
import Head from "next/head";
|
||||
import propTypes from "prop-types";
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
import React, { useEffect } from "react";
|
||||
import { Heading, Spinner } from "@chakra-ui/react";
|
||||
import Modal from "./Modal";
|
||||
import { useToast } from "../core/hooks";
|
||||
import HubspotForm from "react-hubspot-form";
|
||||
|
||||
const RequestIntegration = ({ toggleModal, title, formId }) => {
|
||||
const toast = useToast();
|
||||
|
||||
useEffect(() => {
|
||||
function handler(event) {
|
||||
if (
|
||||
event.data.type === "hsFormCallback" &&
|
||||
event.data.eventName === "onFormSubmitted"
|
||||
) {
|
||||
if (event.data.id === formId) {
|
||||
toggleModal(null);
|
||||
toast("Request sent", "success");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
window.addEventListener("message", handler);
|
||||
return () => {
|
||||
window.removeEventListener("message", handler);
|
||||
};
|
||||
// eslint-disable-next-line
|
||||
}, [toast, toggleModal]);
|
||||
|
||||
return (
|
||||
<Modal onClose={() => toggleModal(null)}>
|
||||
<Heading my={2} as="h2" fontSize={["xl", "3xl"]}>
|
||||
{title}
|
||||
</Heading>
|
||||
<HubspotForm
|
||||
region="na1"
|
||||
portalId="8018701"
|
||||
formId={formId}
|
||||
loading={<Spinner colorScheme="primary" speed="1s" />}
|
||||
/>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
||||
export default RequestIntegration;
|
|
@ -1,19 +0,0 @@
|
|||
import { React } from "react";
|
||||
import { IconButton as IconButtonChakra } from "@chakra-ui/react";
|
||||
import { CheckIcon } from "@chakra-ui/icons";
|
||||
|
||||
const IconButton = (props) => {
|
||||
return (
|
||||
<IconButtonChakra
|
||||
p={0}
|
||||
boxSize="24px"
|
||||
icon={<CheckIcon boxSize="18px" />}
|
||||
bg="none"
|
||||
_hover={{ transform: "scale(1.2)" }}
|
||||
_focus={{ outline: "none" }}
|
||||
_active={{ bg: "none" }}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
export default IconButton;
|
|
@ -6,15 +6,10 @@ import {
|
|||
Image,
|
||||
ButtonGroup,
|
||||
Spacer,
|
||||
Menu,
|
||||
MenuButton,
|
||||
MenuList,
|
||||
MenuItem,
|
||||
MenuGroup,
|
||||
MenuDivider,
|
||||
Link,
|
||||
IconButton,
|
||||
} from "@chakra-ui/react";
|
||||
import { ChevronDownIcon } from "@chakra-ui/icons";
|
||||
import { HamburgerIcon } from "@chakra-ui/icons";
|
||||
import useModals from "../core/hooks/useModals";
|
||||
import UIContext from "../core/providers/UIProvider/context";
|
||||
import ChakraAccountIconButton from "./AccountIconButton";
|
||||
|
@ -24,135 +19,79 @@ const LandingNavbar = () => {
|
|||
const { toggleModal } = useModals();
|
||||
return (
|
||||
<>
|
||||
{!ui.isMobileView && (
|
||||
<Fragment>
|
||||
<Flex pl="7%">
|
||||
<RouterLink href="/" passHref>
|
||||
<Link>
|
||||
<Image
|
||||
h="2rem"
|
||||
src="/icons/bugout-dev-white.svg"
|
||||
alt="bugout.dev"
|
||||
/>
|
||||
</Link>
|
||||
</RouterLink>
|
||||
</Flex>
|
||||
<>
|
||||
{ui.isMobileView && (
|
||||
<>
|
||||
<IconButton
|
||||
alignSelf="flex-start"
|
||||
colorScheme="primary"
|
||||
variant="solid"
|
||||
onClick={() => ui.setSidebarToggled(!ui.sidebarToggled)}
|
||||
icon={<HamburgerIcon />}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
<Flex ml={ui.isMobileView ? 2 : 8} justifySelf="flex-start">
|
||||
<RouterLink href="/" passHref>
|
||||
<Link>
|
||||
<Image
|
||||
w="200px"
|
||||
src="/icons/bugout-dev-white.svg"
|
||||
alt="bugout.dev"
|
||||
/>
|
||||
</Link>
|
||||
</RouterLink>
|
||||
</Flex>
|
||||
|
||||
<ButtonGroup
|
||||
variant="link"
|
||||
colorScheme="secondary"
|
||||
spacing={4}
|
||||
justifyContent="space-evenly"
|
||||
width="100%"
|
||||
pr={16}
|
||||
>
|
||||
{!ui.isMobileView && (
|
||||
<>
|
||||
<Spacer />
|
||||
{ui.isLoggedIn && (
|
||||
<RouterLink href="/stream" passHref>
|
||||
<ButtonGroup
|
||||
variant="link"
|
||||
colorScheme="secondary"
|
||||
spacing={4}
|
||||
pr={16}
|
||||
>
|
||||
{ui.isLoggedIn && (
|
||||
<RouterLink href="/stream" passHref>
|
||||
<Button
|
||||
as={Link}
|
||||
colorScheme="secondary"
|
||||
variant="outline"
|
||||
size="sm"
|
||||
fontWeight="400"
|
||||
borderRadius="2xl"
|
||||
>
|
||||
App
|
||||
</Button>
|
||||
</RouterLink>
|
||||
)}
|
||||
{!ui.isLoggedIn && (
|
||||
<Button
|
||||
as={Link}
|
||||
colorScheme="secondary"
|
||||
colorScheme="whiteAlpha"
|
||||
variant="outline"
|
||||
onClick={() => toggleModal("register")}
|
||||
size="sm"
|
||||
fontWeight="400"
|
||||
borderRadius="2xl"
|
||||
>
|
||||
App
|
||||
Get started
|
||||
</Button>
|
||||
</RouterLink>
|
||||
)}
|
||||
{!ui.isLoggedIn && (
|
||||
<Button
|
||||
colorScheme="whiteAlpha"
|
||||
variant="outline"
|
||||
onClick={() => toggleModal("register")}
|
||||
size="sm"
|
||||
fontWeight="400"
|
||||
borderRadius="2xl"
|
||||
>
|
||||
Get started
|
||||
</Button>
|
||||
)}
|
||||
{!ui.isLoggedIn && (
|
||||
<Button
|
||||
color="white"
|
||||
onClick={() => toggleModal("login")}
|
||||
fontWeight="400"
|
||||
>
|
||||
Log in
|
||||
</Button>
|
||||
)}
|
||||
{ui.isLoggedIn && <ChakraAccountIconButton />}
|
||||
</ButtonGroup>
|
||||
</Fragment>
|
||||
)}
|
||||
{ui.isMobileView && (
|
||||
<Menu>
|
||||
<MenuButton
|
||||
as={Button}
|
||||
m={0}
|
||||
variant="solid"
|
||||
w={["100%", "100%", "18rem", "20rem", "22rem", "24rem"]}
|
||||
p={3}
|
||||
colorScheme="primary"
|
||||
h="3rem"
|
||||
borderRadius={0}
|
||||
rightIcon={<ChevronDownIcon boxSize="1.5rem" />}
|
||||
>
|
||||
<Image
|
||||
h="1.5rem"
|
||||
src="/icons/bugout-dev-white.svg"
|
||||
alt="bugout.dev"
|
||||
/>
|
||||
</MenuButton>
|
||||
<MenuList
|
||||
zIndex={100}
|
||||
width={["100vw", "100vw", "18rem", "20rem", "22rem", "24rem"]}
|
||||
borderRadius={0}
|
||||
m={0}
|
||||
>
|
||||
<MenuGroup>
|
||||
{ui.isLoggedIn && (
|
||||
<RouterLink href="/stream" passHref>
|
||||
<MenuItem bgColor="secondary.600">Open App</MenuItem>
|
||||
</RouterLink>
|
||||
)}
|
||||
{!ui.isLoggedIn && (
|
||||
<>
|
||||
<MenuItem onClick={() => toggleModal("register")}>
|
||||
Sign Up
|
||||
</MenuItem>
|
||||
<MenuItem onClick={() => toggleModal("login")}>
|
||||
Login
|
||||
</MenuItem>
|
||||
</>
|
||||
<Button
|
||||
color="white"
|
||||
onClick={() => toggleModal("login")}
|
||||
fontWeight="400"
|
||||
>
|
||||
Log in
|
||||
</Button>
|
||||
)}
|
||||
</MenuGroup>
|
||||
|
||||
<MenuDivider />
|
||||
<RouterLink href="/" passHref>
|
||||
<MenuItem>Home</MenuItem>
|
||||
</RouterLink>
|
||||
<RouterLink href="/pricing" passHref>
|
||||
<MenuItem>Pricing</MenuItem>
|
||||
</RouterLink>
|
||||
<RouterLink href="/case-studies/activeloop" passHref>
|
||||
<MenuItem>Case study</MenuItem>
|
||||
</RouterLink>
|
||||
<RouterLink href="/team" passHref>
|
||||
<MenuItem>Team</MenuItem>
|
||||
</RouterLink>
|
||||
<RouterLink href="/events" passHref>
|
||||
<MenuItem>Events</MenuItem>
|
||||
</RouterLink>
|
||||
|
||||
<MenuItem as="a" href="http://blog.bugout.dev">
|
||||
Blog
|
||||
</MenuItem>
|
||||
</MenuList>
|
||||
{/* <Box bg="pink" w={["15rem", "15rem", "15rem", "18rem", "20rem"]} h="100%"></Box> */}
|
||||
</Menu>
|
||||
)}
|
||||
{ui.isLoggedIn && <ChakraAccountIconButton />}
|
||||
</ButtonGroup>
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -9,6 +9,7 @@ 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"));
|
||||
|
||||
const Navbar = () => {
|
||||
const { modal, toggleModal, isAppView, isLoggedIn } = useContext(UIContext);
|
||||
|
@ -22,7 +23,7 @@ const Navbar = () => {
|
|||
// overflow="initial"
|
||||
bgColor="primary.1200"
|
||||
// flexWrap="wrap"
|
||||
direction={["column", "row", "row", null, "row"]}
|
||||
direction={["row", "row", "row", null, "row"]}
|
||||
// zIndex={100}
|
||||
w="100%"
|
||||
minW="100%"
|
||||
|
@ -32,11 +33,29 @@ const Navbar = () => {
|
|||
>
|
||||
<Suspense fallback={""}>
|
||||
{modal === "register" && <SignUp toggleModal={toggleModal} />}
|
||||
|
||||
{modal === "login" && <SignIn toggleModal={toggleModal} />}
|
||||
|
||||
{modal === "forgot" && <ForgotPassword toggleModal={toggleModal} />}
|
||||
|
||||
{modal === "hubspot-trader" && (
|
||||
<HubspotForm
|
||||
toggleModal={toggleModal}
|
||||
title={"Join the waitlist"}
|
||||
formId={"29a17405-819b-405d-9563-f75bfb3774e0"}
|
||||
/>
|
||||
)}
|
||||
{modal === "hubspot-fund" && (
|
||||
<HubspotForm
|
||||
toggleModal={toggleModal}
|
||||
title={"Join the waitlist"}
|
||||
formId={"04f0b8df-6b8f-4cd0-871f-4e872523b6f5"}
|
||||
/>
|
||||
)}
|
||||
{modal === "hubspot-developer" && (
|
||||
<HubspotForm
|
||||
toggleModal={toggleModal}
|
||||
title={"Join the waitlist"}
|
||||
formId={"1897f4a1-3a00-475b-9bd5-5ca2725bd720"}
|
||||
/>
|
||||
)}
|
||||
{(!isAppView || !isLoggedIn) && <LandingNavbar />}
|
||||
{isAppView && isLoggedIn && <AppNavbar />}
|
||||
</Suspense>
|
||||
|
|
|
@ -8,7 +8,7 @@ const RadioCard = (props) => {
|
|||
const checkbox = getCheckboxProps();
|
||||
|
||||
return (
|
||||
<Flex as="label" h="fill-availible" onClick={() => console.log("hello2")}>
|
||||
<Flex as="label" h="fill-availible">
|
||||
<input {...input} />
|
||||
<Box
|
||||
justifyContent="left"
|
||||
|
|
|
@ -1,19 +1,45 @@
|
|||
import { Flex, Box } from "@chakra-ui/react";
|
||||
import React, { useEffect, useRef, useState } from "react";
|
||||
import { useRouter } from "../core/hooks";
|
||||
import { useRouter, useAnalytics } from "../core/hooks";
|
||||
const Scrollable = (props) => {
|
||||
const scrollerRef = useRef();
|
||||
const router = useRouter();
|
||||
const [path, setPath] = useState();
|
||||
|
||||
const [scrollDepth, setScrollDepth] = useState(0);
|
||||
const { mixpanel, isLoaded } = useAnalytics();
|
||||
|
||||
const getScrollPrecent = ({ currentTarget }) => {
|
||||
const scroll_level =
|
||||
(100 * (currentTarget.scrollTop + currentTarget.clientHeight)) /
|
||||
currentTarget.scrollHeight;
|
||||
return scroll_level;
|
||||
};
|
||||
|
||||
const handleScroll = (e) => {
|
||||
const currentScroll = Math.ceil(getScrollPrecent(e) / 10);
|
||||
if (currentScroll > scrollDepth) {
|
||||
// withTracking(
|
||||
setScrollDepth(currentScroll);
|
||||
isLoaded &&
|
||||
mixpanel.people.increment({
|
||||
[`Scroll depth at: ${router.nextRouter.pathname}`]: currentScroll,
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
setPath(router.nextRouter.pathname);
|
||||
}, [router.nextRouter.pathname]);
|
||||
|
||||
scrollerRef?.current?.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: path === router.nextRouter.pathname ? "smooth" : "auto",
|
||||
});
|
||||
useEffect(() => {
|
||||
scrollerRef?.current?.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: path === router.nextRouter.pathname ? "smooth" : "auto",
|
||||
});
|
||||
// eslint-disable-next-line
|
||||
}, [path]);
|
||||
|
||||
return (
|
||||
<Flex
|
||||
|
@ -28,6 +54,7 @@ const Scrollable = (props) => {
|
|||
direction="column"
|
||||
ref={scrollerRef}
|
||||
overflowY="scroll"
|
||||
onScroll={(e) => handleScroll(e)}
|
||||
>
|
||||
{props.children}
|
||||
</Box>
|
||||
|
|
|
@ -1,288 +0,0 @@
|
|||
import {
|
||||
React,
|
||||
useState,
|
||||
useContext,
|
||||
useRef,
|
||||
useLayoutEffect,
|
||||
useEffect,
|
||||
} from "react";
|
||||
import {
|
||||
Input,
|
||||
InputLeftElement,
|
||||
InputGroup,
|
||||
Box,
|
||||
Flex,
|
||||
chakra,
|
||||
InputRightElement,
|
||||
Menu,
|
||||
MenuItem,
|
||||
MenuList,
|
||||
MenuButton,
|
||||
Button,
|
||||
Portal,
|
||||
MenuGroup,
|
||||
Spinner,
|
||||
} from "@chakra-ui/react";
|
||||
import { Search2Icon, CloseIcon } from "@chakra-ui/icons";
|
||||
import UIContext from "../core/providers/UIProvider/context";
|
||||
import { useJournalEntries, useJournals, useRouter } from "../core/hooks";
|
||||
|
||||
const SearchBar = (props) => {
|
||||
const ui = useContext(UIContext);
|
||||
const router = useRouter();
|
||||
const { refetch } = useJournalEntries({
|
||||
journalId: router.params.id,
|
||||
journalType: router.params.appScope,
|
||||
pageSize: 25,
|
||||
isContent: false,
|
||||
searchQuery: ui.searchTerm,
|
||||
});
|
||||
|
||||
const [selectedJournal, setSelectedJournal] = useState();
|
||||
const [showError, setShowError] = useState(false);
|
||||
const [InputFieldValue, setInputFieldValue] = useState(ui.serachTerm ?? "");
|
||||
const { journalsCache, publicJournalsCache } = useJournals();
|
||||
|
||||
const inputRef = useRef(null);
|
||||
const showSearchBar = !ui.isMobileView || ui.searchBarActive;
|
||||
|
||||
const handleSearch = (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
const journalIdToSearchIn =
|
||||
selectedJournal?.id ?? router.params.id ?? false;
|
||||
const searchAtSameRoute =
|
||||
router.params.id &&
|
||||
journalIdToSearchIn &&
|
||||
router.params.id === journalIdToSearchIn;
|
||||
|
||||
if (journalIdToSearchIn) {
|
||||
if (searchAtSameRoute) {
|
||||
ui.searchTerm === InputFieldValue
|
||||
? refetch()
|
||||
: ui.setSearchTerm(InputFieldValue);
|
||||
} else {
|
||||
const newQuery = { ...router.nextRouter.query };
|
||||
newQuery.id = selectedJournal.id;
|
||||
newQuery.appScope = selectedJournal.isPublic ? "public" : "personal";
|
||||
|
||||
delete newQuery.entryId;
|
||||
ui.setSearchTerm(InputFieldValue);
|
||||
router.push({ pathname: "/stream/", query: newQuery }, undefined, {
|
||||
shallow: false,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
setShowError(true);
|
||||
}
|
||||
};
|
||||
|
||||
useLayoutEffect(() => {
|
||||
showError && setTimeout(() => setShowError(false), 200);
|
||||
}, [showError]);
|
||||
|
||||
useEffect(() => {
|
||||
const cache =
|
||||
router.params.appScope === "personal"
|
||||
? publicJournalsCache
|
||||
: journalsCache;
|
||||
if (router.params.id && !cache.isLoading) {
|
||||
const newJournal = cache.data.find(
|
||||
(journal) => journal.id === router.params.id
|
||||
);
|
||||
newJournal && setSelectedJournal(newJournal);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [router.params.id, journalsCache, publicJournalsCache]);
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (ui.searchTerm !== InputFieldValue) {
|
||||
setInputFieldValue(ui.searchTerm);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [ui.searchTerm]);
|
||||
|
||||
const handleBlur = (e) => {
|
||||
const currentTarget = e.currentTarget;
|
||||
|
||||
// Check the newly focused element in the next tick of the event loop
|
||||
setTimeout(() => {
|
||||
// Check if the new activeElement is a child of the original container
|
||||
if (
|
||||
!currentTarget.contains(document.activeElement) &&
|
||||
!document.activeElement.className.includes("bugout-search-bar")
|
||||
) {
|
||||
// You can invoke a callback or add custom logic here
|
||||
ui.setSearchBarActive(false);
|
||||
}
|
||||
}, 100);
|
||||
};
|
||||
|
||||
const handleLeftElementClick = () => {
|
||||
if (!showSearchBar) {
|
||||
ui.setSearchBarActive(true);
|
||||
}
|
||||
inputRef.current.focus();
|
||||
};
|
||||
|
||||
const handleCloseSearchBar = () => {
|
||||
ui.setSearchBarActive(false);
|
||||
ui.setSearchTerm("");
|
||||
};
|
||||
|
||||
return (
|
||||
<Flex {...props} transition="1s">
|
||||
<form
|
||||
onSubmit={(e) => handleSearch(e)}
|
||||
style={{ width: "100%", height: "100%" }}
|
||||
>
|
||||
<InputGroup
|
||||
bgColor={showSearchBar ? "white" : "transparent"}
|
||||
borderRadius="lg"
|
||||
overflow="hidden"
|
||||
h="100%"
|
||||
w="100%"
|
||||
onFocus={() => {
|
||||
ui.setSearchBarActive(true);
|
||||
}}
|
||||
onBlur={handleBlur}
|
||||
>
|
||||
<InputLeftElement
|
||||
onClick={() => handleLeftElementClick()}
|
||||
minW="48px"
|
||||
w="fit-content"
|
||||
position="static"
|
||||
justifySelf="flex-start"
|
||||
h="100%"
|
||||
overflowY="visible"
|
||||
transform="1s"
|
||||
>
|
||||
{!ui.searchBarActive && (
|
||||
<Search2Icon
|
||||
color={showSearchBar ? "primary.1200" : "white.100"}
|
||||
/>
|
||||
)}
|
||||
{ui.searchBarActive && (
|
||||
<Menu>
|
||||
<MenuButton
|
||||
as={Button}
|
||||
variant="ghost"
|
||||
colorScheme="primary"
|
||||
h="100%"
|
||||
m={0}
|
||||
borderRightRadius={0}
|
||||
transition="0.05s"
|
||||
className="bugout-search-bar"
|
||||
bgColor={showError ? "unsafe.900" : "primary.100"}
|
||||
textColor={showError ? "white.100" : "primary.900"}
|
||||
>
|
||||
{`Search in: ${
|
||||
router.params.id && !selectedJournal?.name
|
||||
? "current"
|
||||
: selectedJournal?.name ?? "Select one"
|
||||
}`}
|
||||
</MenuButton>
|
||||
<Portal>
|
||||
<MenuList
|
||||
overflowY="scroll"
|
||||
maxH="300px"
|
||||
className="bugout-search-bar"
|
||||
>
|
||||
{router.params.id && (
|
||||
<MenuItem
|
||||
className="bugout-search-bar"
|
||||
onClick={() =>
|
||||
setSelectedJournal(
|
||||
journalsCache.data.filter(
|
||||
(journal) => journal.id === router.params.id
|
||||
)[0]
|
||||
)
|
||||
}
|
||||
>
|
||||
Current
|
||||
</MenuItem>
|
||||
)}
|
||||
<MenuGroup textColor="gray" title="personal journals">
|
||||
{journalsCache.isLoading && <Spinner />}
|
||||
{!journalsCache.isLoading &&
|
||||
journalsCache.data.map((journal, idx) => (
|
||||
<MenuItem
|
||||
className="bugout-search-bar"
|
||||
key={`journal-search-list-${idx}`}
|
||||
onClick={() =>
|
||||
setSelectedJournal({
|
||||
...journal,
|
||||
isPublic: false,
|
||||
})
|
||||
}
|
||||
>
|
||||
{journal.name}
|
||||
</MenuItem>
|
||||
))}
|
||||
</MenuGroup>
|
||||
<MenuGroup textColor="gray" title="public journals">
|
||||
{publicJournalsCache.isLoading && <Spinner />}
|
||||
{!publicJournalsCache.isLoading &&
|
||||
publicJournalsCache.data.map((journal, idx) => (
|
||||
<MenuItem
|
||||
className="bugout-search-bar"
|
||||
key={`public-journal-search-list-${idx}`}
|
||||
onClick={() =>
|
||||
setSelectedJournal({
|
||||
...journal,
|
||||
isPublic: true,
|
||||
})
|
||||
}
|
||||
>
|
||||
{journal.name}
|
||||
</MenuItem>
|
||||
))}
|
||||
</MenuGroup>
|
||||
</MenuList>
|
||||
</Portal>
|
||||
</Menu>
|
||||
)}
|
||||
</InputLeftElement>
|
||||
<Input
|
||||
hidden={!showSearchBar}
|
||||
h="100%"
|
||||
px="8px"
|
||||
display="flex"
|
||||
paddingInlineStart="8px !important"
|
||||
sx={{
|
||||
WebkitPaddingStart: "8px !important",
|
||||
WebkitPaddingEnd: "8px !important",
|
||||
}}
|
||||
flexBasis="50px"
|
||||
flexGrow={1}
|
||||
textColor="black"
|
||||
ref={inputRef}
|
||||
_hover={{ bgColor: "white" }}
|
||||
_active={{ bgColor: "white" }}
|
||||
_focus={{ bgColor: "white", textColor: "black" }}
|
||||
value={InputFieldValue}
|
||||
onChange={(e) => setInputFieldValue(e.target.value)}
|
||||
/>
|
||||
<InputRightElement
|
||||
h="100%"
|
||||
position="static"
|
||||
justifySelf="flex-end"
|
||||
hidden={!ui.searchBarActive}
|
||||
>
|
||||
<Box
|
||||
onClick={() => handleCloseSearchBar()}
|
||||
transition="1s"
|
||||
_hover={{ transform: "scale(1.2)" }}
|
||||
>
|
||||
<CloseIcon color="primary.1200" />
|
||||
</Box>
|
||||
</InputRightElement>
|
||||
</InputGroup>
|
||||
</form>
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
|
||||
const ChakraSearchBar = chakra(SearchBar);
|
||||
|
||||
export default ChakraSearchBar;
|
|
@ -59,31 +59,54 @@ const Sidebar = () => {
|
|||
/>
|
||||
</Flex>
|
||||
</SidebarHeader>
|
||||
<SidebarContent>
|
||||
<Menu iconShape="square">
|
||||
<MenuItem icon={<MdTimeline />}>
|
||||
{" "}
|
||||
<RouterLink href="/stream">Stream</RouterLink>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<Menu iconShape="square">
|
||||
<MenuItem icon={<ImStatsBars />}>
|
||||
{" "}
|
||||
<RouterLink href="/analytics">Analytics </RouterLink>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<Menu iconShape="square">
|
||||
<MenuItem icon={<MdSettings />}>
|
||||
{" "}
|
||||
<RouterLink href="/subscriptions">Subscriptions </RouterLink>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</SidebarContent>
|
||||
<SidebarFooter>
|
||||
{/**
|
||||
* You can add a footer for the sidebar ex: copyright
|
||||
*/}
|
||||
</SidebarFooter>
|
||||
{ui.isLoggedIn && (
|
||||
<SidebarContent>
|
||||
<Menu iconShape="square">
|
||||
<MenuItem icon={<MdTimeline />}>
|
||||
{" "}
|
||||
<RouterLink href="/stream">Stream</RouterLink>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<Menu iconShape="square">
|
||||
<MenuItem icon={<ImStatsBars />}>
|
||||
{" "}
|
||||
<RouterLink href="/analytics">Analytics </RouterLink>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<Menu iconShape="square">
|
||||
<MenuItem icon={<MdSettings />}>
|
||||
{" "}
|
||||
<RouterLink href="/subscriptions">Subscriptions </RouterLink>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</SidebarContent>
|
||||
)}
|
||||
{!ui.isLoggedIn && (
|
||||
<SidebarContent>
|
||||
<Menu iconShape="square">
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
ui.toggleModal("register");
|
||||
ui.setSidebarToggled(false);
|
||||
}}
|
||||
>
|
||||
Sign up
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
<Menu iconShape="square">
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
ui.toggleModal("login");
|
||||
ui.setSidebarToggled(false);
|
||||
}}
|
||||
>
|
||||
Login
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</SidebarContent>
|
||||
)}
|
||||
|
||||
<SidebarFooter></SidebarFooter>
|
||||
</ProSidebar>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -0,0 +1,183 @@
|
|||
import {
|
||||
Container,
|
||||
SimpleGrid,
|
||||
Image,
|
||||
Flex,
|
||||
Heading,
|
||||
Text,
|
||||
Stack,
|
||||
StackDivider,
|
||||
Icon,
|
||||
useColorModeValue,
|
||||
Button,
|
||||
Center,
|
||||
useBreakpointValue,
|
||||
} from "@chakra-ui/react";
|
||||
// import Xarrow, { useXarrow } from "react-xarrows";
|
||||
import React, { useContext } from "react";
|
||||
import UIContext from "../core/providers/UIProvider/context";
|
||||
|
||||
const Feature = ({ text, icon, iconBg, bullets }) => {
|
||||
return (
|
||||
<Flex direction="column">
|
||||
<Stack direction={"row"} align={"center"}>
|
||||
<Flex
|
||||
w={8}
|
||||
maxW={8}
|
||||
maxH={8}
|
||||
h={8}
|
||||
flexShrink={0}
|
||||
align={"center"}
|
||||
justify={"center"}
|
||||
rounded={"full"}
|
||||
bg={iconBg}
|
||||
>
|
||||
{icon}
|
||||
</Flex>
|
||||
<Text fontWeight={600}>{text}</Text>
|
||||
</Stack>
|
||||
{bullets?.length > 0 && (
|
||||
<Stack pt={8} pl={8} direction={"column"} spacing={2}>
|
||||
{bullets.map((bullet, idx) => {
|
||||
return (
|
||||
<Feature
|
||||
key={`nested-bullet-${idx}-${bullet.text}`}
|
||||
iconBg={bullet.bgColor}
|
||||
text={bullet.text}
|
||||
{...bullet}
|
||||
icon={
|
||||
<Icon as={bullet.icon} color={bullet.color} w={5} h={5} />
|
||||
}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
</Stack>
|
||||
)}
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
|
||||
const SplitWithImage = ({
|
||||
badge,
|
||||
title,
|
||||
body,
|
||||
bullets,
|
||||
colorScheme,
|
||||
imgURL,
|
||||
mirror,
|
||||
elementName,
|
||||
cta,
|
||||
}) => {
|
||||
const buttonSize = useBreakpointValue({
|
||||
base: "md",
|
||||
sm: "md",
|
||||
md: "md",
|
||||
lg: "lg",
|
||||
xl: "xl",
|
||||
"2xl": "xl",
|
||||
});
|
||||
|
||||
const ui = useContext(UIContext);
|
||||
|
||||
const [isVisible, setVisible] = React.useState(true);
|
||||
const domRef = React.useRef();
|
||||
React.useEffect(() => {
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach((entry) => setVisible(entry.isIntersecting));
|
||||
});
|
||||
observer.observe(domRef.current);
|
||||
const current = domRef.current;
|
||||
return () => observer.unobserve(current);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Container
|
||||
maxW={"7xl"}
|
||||
py={0}
|
||||
className={`fade-in-section ${isVisible ? "is-visible" : ""}`}
|
||||
ref={domRef}
|
||||
>
|
||||
<SimpleGrid columns={{ base: 1, md: 2 }} spacing={[0, 0, 10, null, 10]}>
|
||||
{mirror && !ui.isMobileView && (
|
||||
<Flex>
|
||||
<Image
|
||||
rounded={"md"}
|
||||
alt={"feature image"}
|
||||
src={imgURL}
|
||||
objectFit={"contain"}
|
||||
/>
|
||||
</Flex>
|
||||
)}
|
||||
<Stack spacing={4} justifyContent="center">
|
||||
<Text
|
||||
id={`MoonBadge ${elementName}`}
|
||||
// id={`MoonBadge${elementName}`}
|
||||
textTransform={"uppercase"}
|
||||
color={useColorModeValue(`${colorScheme}.50`, `${colorScheme}.900`)}
|
||||
fontWeight={600}
|
||||
fontSize={"sm"}
|
||||
bg={useColorModeValue(`${colorScheme}.900`, `${colorScheme}.50`)}
|
||||
p={2}
|
||||
alignSelf={mirror && !ui.isMobileView ? "flex-end" : "flex-start"}
|
||||
rounded={"md"}
|
||||
>
|
||||
{badge}
|
||||
</Text>
|
||||
<Heading>{title}</Heading>
|
||||
<Text color={`primary.500`} fontSize={"lg"}>
|
||||
{body}
|
||||
</Text>
|
||||
<Stack
|
||||
spacing={4}
|
||||
divider={
|
||||
<StackDivider
|
||||
borderColor={useColorModeValue("gray.100", "gray.700")}
|
||||
/>
|
||||
}
|
||||
>
|
||||
{bullets?.map((bullet, idx) => {
|
||||
return (
|
||||
<Feature
|
||||
key={`splitWImageBullet-${idx}-${title}`}
|
||||
icon={
|
||||
<Icon as={bullet.icon} color={bullet.color} w={5} h={5} />
|
||||
}
|
||||
iconBg={bullet.bgColor}
|
||||
text={bullet.text}
|
||||
bullets={bullet?.bullets}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
<Container>
|
||||
<Center>
|
||||
<Button
|
||||
colorScheme={colorScheme}
|
||||
variant="outline"
|
||||
mt={[0, 0, null, 16]}
|
||||
fontSize={["xs", "sm", "lg", null, "lg"]}
|
||||
size={buttonSize}
|
||||
onClick={cta.onClick}
|
||||
>
|
||||
{cta.label}
|
||||
</Button>
|
||||
</Center>
|
||||
</Container>
|
||||
</Stack>
|
||||
</Stack>
|
||||
{(!mirror || ui.isMobileView) && (
|
||||
<Flex justifyContent="center">
|
||||
<Image
|
||||
rounded={"md"}
|
||||
alt={"feature image"}
|
||||
src={imgURL}
|
||||
objectFit={"contain"}
|
||||
// boxSize={ui.isMobileView ? "lg" : null}
|
||||
/>
|
||||
</Flex>
|
||||
)}
|
||||
</SimpleGrid>
|
||||
</Container>
|
||||
);
|
||||
};
|
||||
|
||||
export default SplitWithImage;
|
|
@ -1,33 +0,0 @@
|
|||
import { React } from "react";
|
||||
import { Flex, Image, Link } from "@chakra-ui/react";
|
||||
|
||||
const TrustedBadge = ({ name, caseURL, ImgURL }) => {
|
||||
return (
|
||||
<Flex
|
||||
m={1}
|
||||
justifyContent="center"
|
||||
alignItems="center"
|
||||
alignSelf="center"
|
||||
wrap="nowrap"
|
||||
p={8}
|
||||
direction="column"
|
||||
>
|
||||
<Image
|
||||
sx={{ filter: "grayscale(100%)" }}
|
||||
h={["2.25rem", null, "3rem", "3rem", "4rem", "6rem"]}
|
||||
src={ImgURL}
|
||||
alt={name}
|
||||
></Image>
|
||||
{caseURL && (
|
||||
<Link
|
||||
fontSize={["sm", null, "md", "lg"]}
|
||||
textColor="secondary.900"
|
||||
href="/case-studies/activeloop"
|
||||
>
|
||||
{`Read case study >`}
|
||||
</Link>
|
||||
)}
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
export default TrustedBadge;
|
|
@ -18,10 +18,7 @@ const useSignUp = (source) => {
|
|||
isSuccess,
|
||||
} = useMutation(AuthService.register(), {
|
||||
onSuccess: (response) => {
|
||||
localStorage.setItem(
|
||||
"MOONSTREAM_ACCESS_TOKEN",
|
||||
response.data.access_token
|
||||
);
|
||||
localStorage.setItem("MOONSTREAM_ACCESS_TOKEN", response.data.id);
|
||||
const invite_code = window.sessionStorage.getItem("invite_code");
|
||||
if (invite_code) {
|
||||
inviteAccept(invite_code);
|
||||
|
|
|
@ -18,13 +18,6 @@ const useJournalEntries = ({
|
|||
pageParam = 0;
|
||||
}
|
||||
|
||||
const searchTags = searchTerm.split(" ").filter(function (n) {
|
||||
if (n.startsWith("#")) return n;
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
||||
const response = await SubscriptionsService.getStream({
|
||||
searchTerm,
|
||||
isContent,
|
||||
|
@ -58,7 +51,7 @@ const useJournalEntries = ({
|
|||
getNextPageParam: (lastGroup) => {
|
||||
return lastGroup.next_offset === null ? false : lastGroup.next_offset;
|
||||
},
|
||||
onSuccess: (data) => {},
|
||||
onSuccess: () => {},
|
||||
enabled: !!enabled,
|
||||
});
|
||||
|
||||
|
|
|
@ -9,22 +9,6 @@ const useSubscriptions = () => {
|
|||
const toast = useToast();
|
||||
const stripe = useStripe();
|
||||
|
||||
// const manageSubscription = useMutation(
|
||||
// SubscriptionsService.manageSubscription(),
|
||||
// {
|
||||
// onError: (error) => toast(error, "error"),
|
||||
// onSuccess: (response) => {
|
||||
// const { session_id: sessionId, session_url: sessionUrl } =
|
||||
// response.data;
|
||||
// if (sessionId) {
|
||||
// stripe.redirectToCheckout({ sessionId });
|
||||
// } else if (sessionUrl) {
|
||||
// window.location = sessionUrl;
|
||||
// }
|
||||
// },
|
||||
// }
|
||||
// );
|
||||
|
||||
const getSubscriptions = async () => {
|
||||
const response = await SubscriptionsService.getSubscriptions();
|
||||
return response.data;
|
||||
|
@ -68,7 +52,7 @@ const useSubscriptions = () => {
|
|||
|
||||
const changeNote = useMutation(SubscriptionsService.modifySubscription(), {
|
||||
onError: (error) => toast(error, "error"),
|
||||
onSuccess: (response) => {
|
||||
onSuccess: () => {
|
||||
subscriptionsCache.refetch();
|
||||
},
|
||||
});
|
||||
|
@ -77,7 +61,7 @@ const useSubscriptions = () => {
|
|||
SubscriptionsService.deleteSubscription(),
|
||||
{
|
||||
onError: (error) => toast(error, "error"),
|
||||
onSuccess: (response) => {
|
||||
onSuccess: () => {
|
||||
subscriptionsCache.refetch();
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import { jsx } from "@emotion/react";
|
||||
import { useToast as useChakraToast, Box } from "@chakra-ui/react";
|
||||
import { useCallback } from "react";
|
||||
import React, { useCallback } from "react";
|
||||
import { useAnalytics } from ".";
|
||||
|
||||
const useToast = () => {
|
||||
|
|
|
@ -12,13 +12,14 @@ export const MIXPANEL_EVENTS = {
|
|||
LAST_LOGIN_DATE: "Last login date",
|
||||
LAST_VISITED: "Last visited",
|
||||
TOAST_ERROR_DISPLAYED: "Error Toast",
|
||||
HOMEPAGE_SCROLL_DEPTH: "Homepage scroll depth",
|
||||
SCROLL_DEPTH: "Homepage scroll depth",
|
||||
CONVERT_TO_USER: "User Signs up",
|
||||
USER_LOGS_IN: "User Logs in",
|
||||
USER_LOGS_OUT: "User Logs out",
|
||||
PAGEVIEW: "Page view",
|
||||
PRICING_PLAN_CLICKED: "Pricing Plan clicked",
|
||||
BUTTON_CLICKED: "Button clicked",
|
||||
LEFT_PAGE: "Left page",
|
||||
};
|
||||
|
||||
export default MIXPANEL_EVENTS;
|
||||
|
|
|
@ -11,6 +11,29 @@ const AnalyticsProvider = ({ children }) => {
|
|||
const [isLoaded, setIsLoaded] = useState(false);
|
||||
const router = useRouter();
|
||||
|
||||
useEffect(() => {
|
||||
let durationSeconds = 0;
|
||||
|
||||
const intervalId =
|
||||
isLoaded &&
|
||||
setInterval(() => {
|
||||
durationSeconds = durationSeconds + 1;
|
||||
mixpanel.track(
|
||||
MIXPANEL_EVENTS.LEFT_PAGE,
|
||||
{
|
||||
duration_seconds: durationSeconds,
|
||||
url: router.nextRouter.pathname,
|
||||
query: router.query,
|
||||
pathParams: router.params,
|
||||
},
|
||||
{ transport: "sendBeacon" }
|
||||
);
|
||||
}, 1000);
|
||||
|
||||
return () => clearInterval(intervalId);
|
||||
// eslint-disable-next-line
|
||||
}, [isLoaded]);
|
||||
|
||||
useEffect(() => {
|
||||
isLoaded &&
|
||||
mixpanel.track(MIXPANEL_EVENTS.PAGEVIEW, {
|
||||
|
|
|
@ -18,6 +18,15 @@ const UIProvider = ({ children }) => {
|
|||
"2xl": false,
|
||||
});
|
||||
|
||||
const currentBreakpoint = useBreakpointValue({
|
||||
base: 0,
|
||||
sm: 1,
|
||||
md: 2,
|
||||
lg: 3,
|
||||
xl: 4,
|
||||
"2xl": 5,
|
||||
});
|
||||
|
||||
const { modal, toggleModal } = useContext(ModalContext);
|
||||
const [searchTerm, setSearchTerm] = useQuery("q", " ", true, false);
|
||||
|
||||
|
@ -104,10 +113,27 @@ const UIProvider = ({ children }) => {
|
|||
useEffect(() => {
|
||||
if (isMobileView) {
|
||||
setSidebarVisible(true);
|
||||
setSidebarCollapsed(false);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [isMobileView]);
|
||||
|
||||
//Sidebar is visible at at breakpoint value less then 2
|
||||
//Sidebar is visible always in appView
|
||||
useEffect(() => {
|
||||
if (currentBreakpoint < 2) {
|
||||
setSidebarVisible(true);
|
||||
setSidebarCollapsed(false);
|
||||
} else {
|
||||
if (!isAppView) {
|
||||
setSidebarVisible(false);
|
||||
} else {
|
||||
setSidebarVisible(true);
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [currentBreakpoint, isAppView]);
|
||||
|
||||
// *********** Entries layout states **********************
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import moment from "moment";
|
||||
const MOCK_API = process.env.NEXT_PUBLIC_SIMIOTICS_AUTH_URL;
|
||||
var MockAdapter = require("axios-mock-adapter");
|
||||
const makeid = (length) => {
|
||||
export const makeid = (length) => {
|
||||
var result = "";
|
||||
var characters =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
||||
|
@ -12,7 +12,7 @@ const makeid = (length) => {
|
|||
return result;
|
||||
};
|
||||
|
||||
const makenum = (length) => {
|
||||
export const makenum = (length) => {
|
||||
var result = "";
|
||||
var characters = "0123456789";
|
||||
var charactersLength = characters.length;
|
||||
|
@ -27,7 +27,7 @@ const randDate = () => {
|
|||
new Date(+new Date() - Math.floor(Math.random() * 10000000000))
|
||||
).format("MM/DD/YYYY");
|
||||
};
|
||||
let MockSubscriptions = [
|
||||
export let MockSubscriptions = [
|
||||
{
|
||||
label: "Bobs wallet",
|
||||
address: `0x` + makeid(24),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { jsx } from "@emotion/react";
|
||||
import React from "react";
|
||||
import { Box } from "@chakra-ui/react";
|
||||
import { getLayout as getSiteLayout } from "./AppLayout";
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { jsx } from "@emotion/react";
|
||||
import React from "react";
|
||||
import { Scrollable, Footer } from "../components";
|
||||
import { getLayout as getSiteLayout } from "./index";
|
||||
|
||||
const DefaultLayout = (props) => {
|
||||
return (
|
||||
<Scrollable>
|
||||
<Scrollable bgImg={""}>
|
||||
{props.children}
|
||||
<Footer />
|
||||
</Scrollable>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { jsx } from "@emotion/react";
|
||||
import { Flex, Spinner } from "@chakra-ui/react";
|
||||
import React, { Suspense, useContext, useState, useEffect } from "react";
|
||||
const Sidebar = React.lazy(() => import("../components/Sidebar"));
|
||||
|
@ -29,7 +28,7 @@ const RootLayout = (props) => {
|
|||
maxH="100%"
|
||||
>
|
||||
<Suspense fallback="">
|
||||
{ui.isAppView && ui.isLoggedIn && <Sidebar />}
|
||||
<Sidebar />
|
||||
</Suspense>
|
||||
<Flex
|
||||
direction="column"
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import React from "react";
|
||||
import Footer from "../components/Footer";
|
||||
import Scrollable from "../components/Scrollable";
|
||||
import RootLayout from "./RootLayout";
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: white;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
z-index: 100;
|
||||
display: none;
|
||||
}
|
||||
|
|
|
@ -134,6 +134,7 @@
|
|||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
overflow-y: overlay !important;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/* ----- react-mde specific ------- */
|
||||
|
@ -183,4 +184,19 @@
|
|||
|
||||
code {
|
||||
white-space: pre-line !important;
|
||||
}
|
||||
|
||||
|
||||
.fade-in-section {
|
||||
opacity: 0;
|
||||
transform: translateY(5vh);
|
||||
visibility: hidden;
|
||||
transition: opacity 0.3s ease-out, transform 0.6s ease-out;
|
||||
will-change: opacity, visibility;
|
||||
}
|
||||
.fade-in-section.is-visible {
|
||||
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
visibility: visible;
|
||||
}
|
|
@ -1153,7 +1153,7 @@
|
|||
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
|
||||
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
|
||||
|
||||
"@types/prop-types@*":
|
||||
"@types/prop-types@*", "@types/prop-types@^15.7.3":
|
||||
version "15.7.4"
|
||||
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.4.tgz#fcf7205c25dff795ee79af1e30da2c9790808f11"
|
||||
integrity sha512-rZ5drC/jWjrArrS8BR6SIr4cWpW09RNTYt9AMZo3Jwwif+iacXAqgVjm0B0Bv/S1jhDXKHqRVNCbACkJ89RAnQ==
|
||||
|
@ -3222,7 +3222,7 @@ lodash.truncate@^4.4.2:
|
|||
resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193"
|
||||
integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=
|
||||
|
||||
lodash@^4.17.13, lodash@^4.17.4:
|
||||
lodash@^4.17.13, lodash@^4.17.21, lodash@^4.17.4:
|
||||
version "4.17.21"
|
||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
|
||||
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
|
||||
|
@ -4084,6 +4084,15 @@ react-style-singleton@^2.1.0:
|
|||
invariant "^2.2.4"
|
||||
tslib "^1.0.0"
|
||||
|
||||
react-xarrows@^2.0.2:
|
||||
version "2.0.2"
|
||||
resolved "https://registry.yarnpkg.com/react-xarrows/-/react-xarrows-2.0.2.tgz#7555687612339eaefd4ed55fc5c63f2302726d9c"
|
||||
integrity sha512-tDlAqaxHNmy0vegW/6NdhoWyXJq1LANX/WUAlHyzoHe9BwFVnJPPDghmDjYeVr7XWFmBrVTUrHsrW7GKYI6HtQ==
|
||||
dependencies:
|
||||
"@types/prop-types" "^15.7.3"
|
||||
lodash "^4.17.21"
|
||||
prop-types "^15.7.2"
|
||||
|
||||
react@^17.0.2:
|
||||
version "17.0.2"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037"
|
||||
|
|
Ładowanie…
Reference in New Issue