import React, { useEffect } from "react"; import { Box, Center, VStack, Text, Icon, Spinner } from "@chakra-ui/react"; import { getLayout, getLayoutProps } from "../../src/layouts/WideInfoPage"; import HubspotForm from "react-hubspot-form"; import { useRouter } from "next/router"; import { BiArrowBack } from "react-icons/bi"; const Contact = () => { const router = useRouter(); const formId = "b54d192f-59b1-410a-8ac1-a1e8383c423c"; useEffect(() => { function handler(event) { if ( event.data.type === "hsFormCallback" && event.data.eventName === "onFormSubmitted" ) { if (event.data.id === formId) { router.push("/"); } } } window.addEventListener("message", handler); return () => { window.removeEventListener("message", handler); }; }); return ( { router.push("/"); }} position="absolute" justifySelf="left" alignSelf="left" >
Thanks for your interest in Moonstream. Our tools are fully customized to your project.
Please answer these questions to get started:
} />
We'll reach out directly within 3 business days after you submit this form. You won't be receiving any spam emails from us, only the most important technical updates.
); }; Contact.getLayout = getLayout; export async function getStaticProps() { const layoutProps = getLayoutProps(); const metaTags = { title: "Moonstream: Contact form", description: "Form requesting contact information to connect with Moonstream", keywords: "moonstream, contact, web3, game economy, get acquainted", url: "https://www.moonstream.to/contact", }; layoutProps.props.metaTags = { ...layoutProps.props.metaTags, ...metaTags }; return { ...layoutProps }; } export default Contact;