-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(console): typeform and early access upgrade CTA (#2516)
- Loading branch information
1 parent
99d6329
commit e3aeafb
Showing
15 changed files
with
249 additions
and
107 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+25.1 KB
.yarn/cache/@typeform-embed-react-npm-2.27.0-684fec21c3-d6077a1339.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Button } from '@proofzero/design-system' | ||
import { AccountURN } from '@proofzero/urns/account' | ||
import { Text } from '@proofzero/design-system/src/atoms/text/Text' | ||
import { useRef } from 'react' | ||
import { PopupButton } from '@typeform/embed-react' | ||
|
||
export default ({ urn, type }: { urn: AccountURN; type: 'btn' | 'text' }) => { | ||
const ref = useRef<any>(null) | ||
const openPopup = () => ref.current?.open() | ||
|
||
return ( | ||
<> | ||
<PopupButton | ||
id="V4FksPxe" | ||
ref={ref} | ||
hidden={{ | ||
urn, | ||
}} | ||
> | ||
{null} | ||
</PopupButton> | ||
|
||
{type === 'btn' ? ( | ||
<Button btnType="primary-alt" onClick={() => openPopup()}> | ||
Contact us for early access | ||
</Button> | ||
) : ( | ||
<Text size="sm" weight="semibold"> | ||
<span className="text-gray-600">Any questions?</span> | ||
<button className="ml-1" onClick={() => openPopup()}> | ||
<span className="text-indigo-500">Contact us</span> | ||
</button> | ||
</Text> | ||
)} | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
import EarlyAccessPanel from '~/components/EarlyAccess/EarlyAccessPanel' | ||
import audienceSVG from '~/assets/early/audience.svg' | ||
import { useOutletContext } from '@remix-run/react' | ||
import { appDetailsProps } from '~/types' | ||
import { AccountURN } from '@proofzero/urns/account' | ||
|
||
export default () => ( | ||
<EarlyAccessPanel | ||
title="Audience Builder" | ||
subtitle="Direct User Acquisition" | ||
copy="With the zero-knowledge audience builder tool, businesses can identify and target specific groups of potential users, creating personalized marketing messages that optimize user acquisition efforts. This feature enables businesses to launch their application and acquire their first and next users efficiently and effectively, ensuring a successful launch." | ||
imgSrc={audienceSVG} | ||
url={'https://docs.rollup.id/platform/console/audience-builder'} | ||
/> | ||
) | ||
export default () => { | ||
const { appDetails, accountURN } = useOutletContext<{ | ||
appDetails: appDetailsProps | ||
accountURN: AccountURN | ||
}>() | ||
|
||
return ( | ||
<EarlyAccessPanel | ||
clientID={appDetails.clientId as string} | ||
title="Audience Builder" | ||
subtitle="Direct User Acquisition" | ||
copy="With the zero-knowledge audience builder tool, businesses can identify and target specific groups of potential users, creating personalized marketing messages that optimize user acquisition efforts. This feature enables businesses to launch their application and acquire their first and next users efficiently and effectively, ensuring a successful launch." | ||
imgSrc={audienceSVG} | ||
url={'https://docs.rollup.id/platform/console/audience-builder'} | ||
earlyAccess={true} | ||
currentPlan={appDetails.appPlan} | ||
accountURN={accountURN} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.