mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-16 14:52:31 +00:00
updated typeform flow (#598)
This commit is contained in:
1 parent
b180a50773
commit
493fa120e8
6 files changed
+99
-20
No files matched your search
+29
-17
@@ -6,12 +6,9 @@ import EmailSignUp from "v2/view/pages/landing/storyteller/PostlaunchLanding/Ema
|
||||
import ScrollingSceneCarousel from "v2/view/pages/landing/storyteller/PostlaunchLanding/ScrollingSceneCarousel";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import Panel from "../Panel";
|
||||
import { get } from "local-storage";
|
||||
|
||||
interface StorytellerStudioCTAProps {
|
||||
// Define props here
|
||||
}
|
||||
|
||||
const StorytellerStudioCTA = (props: StorytellerStudioCTAProps) => {
|
||||
const StorytellerStudioCTA = () => {
|
||||
const { open } = useModal();
|
||||
const openModal = () =>
|
||||
open({
|
||||
@@ -33,18 +30,33 @@ const StorytellerStudioCTA = (props: StorytellerStudioCTAProps) => {
|
||||
and effortlessly produce movies in any style you envision.
|
||||
</p>
|
||||
<div className="d-flex justify-content-center justify-content-lg-start gap-3">
|
||||
<Button
|
||||
label="Join the Waitlist"
|
||||
icon={faArrowRight}
|
||||
iconFlip={true}
|
||||
onClick={openModal}
|
||||
/>
|
||||
{/* <Button
|
||||
label="Visit Storyteller.ai"
|
||||
iconFlip={true}
|
||||
href="https://storyteller.ai/"
|
||||
variant="secondary"
|
||||
/> */}
|
||||
{!get<boolean>("firstFormIsSubmitted") ||
|
||||
!get<boolean>("secondFormIsSubmitted") ? (
|
||||
<>
|
||||
{!get<boolean>("firstFormIsSubmitted") ? (
|
||||
<Button
|
||||
label="Join the Waitlist"
|
||||
icon={faArrowRight}
|
||||
iconFlip={true}
|
||||
onClick={openModal}
|
||||
/>
|
||||
) : (
|
||||
<Button
|
||||
label="Get Access Sooner"
|
||||
icon={faArrowRight}
|
||||
iconFlip={true}
|
||||
to="/creator-onboarding"
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<Button
|
||||
label="Visit Storyteller.ai"
|
||||
icon={faArrowRight}
|
||||
iconFlip={true}
|
||||
href="https://storyteller.ai/"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-12 col-lg-6 d-flex flex-column justify-content-center">
|
||||
|
||||
@@ -66,6 +66,9 @@ export default function TopNav({
|
||||
const isOnWaitlistSuccessPage = window.location.pathname.includes(
|
||||
"/waitlist-next-steps"
|
||||
);
|
||||
const isOnCreatorOnboardingPage = window.location.pathname.includes(
|
||||
"/creator-onboarding"
|
||||
);
|
||||
|
||||
const { open } = useModal();
|
||||
const openModal = () => open({ component: InferenceJobsModal });
|
||||
@@ -204,7 +207,8 @@ export default function TopNav({
|
||||
if (pageContentWrapper) {
|
||||
if (
|
||||
(domain.titlePart === "Storyteller AI" && isOnLandingPage) ||
|
||||
isOnBetaKeyRedeemPage
|
||||
isOnBetaKeyRedeemPage ||
|
||||
isOnCreatorOnboardingPage
|
||||
) {
|
||||
pageContentWrapper.style.padding = "0px";
|
||||
} else {
|
||||
@@ -216,6 +220,7 @@ export default function TopNav({
|
||||
isOnLandingPage,
|
||||
isOnBetaKeyRedeemPage,
|
||||
isOnWaitlistSuccessPage,
|
||||
isOnCreatorOnboardingPage,
|
||||
]);
|
||||
|
||||
if (
|
||||
@@ -250,7 +255,11 @@ export default function TopNav({
|
||||
};
|
||||
}, [domain.titlePart, isOnLandingPage, topBarWrapper]);
|
||||
|
||||
if (isOnBetaKeyRedeemPage || isOnWaitlistSuccessPage) {
|
||||
if (
|
||||
isOnBetaKeyRedeemPage ||
|
||||
isOnWaitlistSuccessPage ||
|
||||
isOnCreatorOnboardingPage
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -127,6 +127,7 @@ import { ProfilePageV3 } from "./pages/profile/profile_view/ProfilePageV3";
|
||||
import ProfileSidePanel from "components/layout/ProfileSidePanel/ProfileSidePanel";
|
||||
import CreatorToolsPage from "./pages/creator_tools/CreatorToolsPage";
|
||||
import WaitlistNextStepsPage from "./pages/waitlist_next_steps/WaitlistNextStepsPage";
|
||||
import { CreatorTypeformPage } from "./pages/landing/storyteller/PostlaunchLanding/CreatorTypeformPage";
|
||||
|
||||
interface Props {
|
||||
sessionWrapper: SessionWrapper;
|
||||
@@ -944,6 +945,10 @@ class PageContainer extends React.Component<
|
||||
/>
|
||||
</Route>
|
||||
|
||||
<Route path="/creator-onboarding">
|
||||
<CreatorTypeformPage />
|
||||
</Route>
|
||||
|
||||
<Route path="/beta-key/create">
|
||||
<CreateBetaKeyPage />
|
||||
</Route>
|
||||
|
||||
@@ -135,6 +135,14 @@ function FooterNav(props: Props) {
|
||||
},
|
||||
];
|
||||
|
||||
const isOnCreatorOnboardingPage = window.location.pathname.includes(
|
||||
"/creator-onboarding"
|
||||
);
|
||||
|
||||
if (isOnCreatorOnboardingPage) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
{!isOnStudioPage && (
|
||||
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
import React from "react";
|
||||
import { Widget } from "@typeform/embed-react";
|
||||
import { useLocation } from "react-router-dom";
|
||||
import { useDomainConfig } from "context/DomainConfigContext";
|
||||
import { set } from "local-storage";
|
||||
|
||||
export const CreatorTypeformPage = () => {
|
||||
const location = useLocation();
|
||||
const queryParams = new URLSearchParams(location.search);
|
||||
const email = queryParams.get("email");
|
||||
const domain = useDomainConfig();
|
||||
|
||||
const formId = "ZQTkv9ha";
|
||||
|
||||
const fullFormUrl = `${formId}?${
|
||||
domain.titlePart === "FakeYou"
|
||||
? "typeform-source=fakeyou.com"
|
||||
: "typeform-source=storyteller.ai"
|
||||
}&email=${encodeURIComponent(email || "")}`;
|
||||
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
height: "100vh",
|
||||
width: "100%",
|
||||
overflow: "hidden",
|
||||
}}
|
||||
>
|
||||
<Widget
|
||||
onSubmit={() => {
|
||||
set<boolean>("secondFormIsSubmitted", true);
|
||||
}}
|
||||
id={fullFormUrl}
|
||||
className="h-100"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
+8
-1
@@ -1,6 +1,7 @@
|
||||
import React, { useState } from "react";
|
||||
import { Widget } from "@typeform/embed-react";
|
||||
import ModalHeader from "components/modals/ModalHeader";
|
||||
import { set } from "local-storage";
|
||||
|
||||
interface EmailSignUpProps {
|
||||
mobile?: boolean;
|
||||
@@ -55,7 +56,13 @@ export default function EmailSignUp({
|
||||
/>
|
||||
)}
|
||||
|
||||
<Widget id="TKSc5ImN" style={{ width: "100%", height: "300px" }} />
|
||||
<Widget
|
||||
onSubmit={() => {
|
||||
set<boolean>("firstFormIsSubmitted", true);
|
||||
}}
|
||||
id="TKSc5ImN"
|
||||
style={{ width: "100%", height: "300px" }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user