docs(lp): 💄 Add interactive indications
This commit is contained in:
22
apps/landing-page/assets/illustrations/HandDrawnArrow.tsx
Normal file
22
apps/landing-page/assets/illustrations/HandDrawnArrow.tsx
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import { Icon, IconProps } from '@chakra-ui/react'
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
export const HandDrawnArrow = (props: IconProps) => (
|
||||||
|
<Icon
|
||||||
|
viewBox="0 0 120 124"
|
||||||
|
fill="none"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M53.5 106.5C79.3333 81 78.8935 57.3316 77 49.0001C74.5 38.0001 71 22.5001 42.5 17.5001"
|
||||||
|
stroke="white"
|
||||||
|
strokeWidth="2"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M55.5 87.5C56.5 91 52 108.5 52 108.5C52 108.5 61.7329 102.589 66.5 101C68 100.5 72 100 74.5 101"
|
||||||
|
stroke="white"
|
||||||
|
strokeWidth="2"
|
||||||
|
/>
|
||||||
|
</Icon>
|
||||||
|
)
|
@ -9,7 +9,6 @@ import {
|
|||||||
Input,
|
Input,
|
||||||
Checkbox,
|
Checkbox,
|
||||||
Textarea,
|
Textarea,
|
||||||
VStack,
|
|
||||||
} from '@chakra-ui/react'
|
} from '@chakra-ui/react'
|
||||||
import React, { useEffect, useState } from 'react'
|
import React, { useEffect, useState } from 'react'
|
||||||
import { TypebotViewer } from 'bot-engine'
|
import { TypebotViewer } from 'bot-engine'
|
||||||
@ -17,6 +16,7 @@ import { PublicTypebot } from 'models'
|
|||||||
import { sendRequest } from 'utils'
|
import { sendRequest } from 'utils'
|
||||||
import { DontIcon } from 'assets/icons/DontIcon'
|
import { DontIcon } from 'assets/icons/DontIcon'
|
||||||
import { DoIcon } from 'assets/icons/DoIcon'
|
import { DoIcon } from 'assets/icons/DoIcon'
|
||||||
|
import { HandDrawnArrow } from 'assets/illustrations/HandDrawnArrow'
|
||||||
|
|
||||||
export const IntroducingChatApps = () => {
|
export const IntroducingChatApps = () => {
|
||||||
const [typebot, setTypebot] = useState<PublicTypebot>()
|
const [typebot, setTypebot] = useState<PublicTypebot>()
|
||||||
@ -69,12 +69,18 @@ export const IntroducingChatApps = () => {
|
|||||||
spacing="6"
|
spacing="6"
|
||||||
data-aos="fade"
|
data-aos="fade"
|
||||||
>
|
>
|
||||||
<VStack spacing={6} flex="1">
|
<Stack spacing={6} flex="1" align={['flex-start', 'center']}>
|
||||||
<DontIcon />
|
<DontIcon />
|
||||||
<FakeLeadGenForm />
|
<FakeLeadGenForm />
|
||||||
</VStack>
|
</Stack>
|
||||||
|
|
||||||
<VStack spacing={6} flex="1" h="full">
|
<Stack
|
||||||
|
spacing={6}
|
||||||
|
flex="1"
|
||||||
|
h="full"
|
||||||
|
pos="relative"
|
||||||
|
align={['flex-start', 'center']}
|
||||||
|
>
|
||||||
<DoIcon />
|
<DoIcon />
|
||||||
{typebot && (
|
{typebot && (
|
||||||
<Flex
|
<Flex
|
||||||
@ -90,7 +96,19 @@ export const IntroducingChatApps = () => {
|
|||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
</VStack>
|
<Flex top="-20px" right="40px" pos="absolute">
|
||||||
|
<Text fontFamily="'Indie Flower'" fontSize="2xl">
|
||||||
|
Try it out!
|
||||||
|
</Text>
|
||||||
|
<HandDrawnArrow
|
||||||
|
transform="rotate(30deg)"
|
||||||
|
boxSize="100px"
|
||||||
|
top="15px"
|
||||||
|
right="-60px"
|
||||||
|
pos="absolute"
|
||||||
|
/>
|
||||||
|
</Flex>
|
||||||
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
@ -9,7 +9,7 @@ class MyDocument extends Document {
|
|||||||
<Head>
|
<Head>
|
||||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&family=Indie+Flower:wght@400&display=swap"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
<noscript>
|
<noscript>
|
||||||
|
@ -24,25 +24,6 @@
|
|||||||
{
|
{
|
||||||
"id": "nrFcoNFtGcGJNifcjiEFya",
|
"id": "nrFcoNFtGcGJNifcjiEFya",
|
||||||
"steps": [
|
"steps": [
|
||||||
{
|
|
||||||
"id": "s7x5riciJaWVdvmHUbBmyqY",
|
|
||||||
"type": "text",
|
|
||||||
"blockId": "nrFcoNFtGcGJNifcjiEFya",
|
|
||||||
"content": {
|
|
||||||
"html": "<div>With a typebot, you collect the result as soon as your user answers the first question. 🤯</div>",
|
|
||||||
"richText": [
|
|
||||||
{
|
|
||||||
"type": "p",
|
|
||||||
"children": [
|
|
||||||
{
|
|
||||||
"text": "With a typebot, you collect the result as soon as your user answers the first question. 🤯"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"plainText": "With a typebot, you collect the result as soon as your user answers the first question. 🤯"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "sjigBF5rKat4BForNiMfPwb",
|
"id": "sjigBF5rKat4BForNiMfPwb",
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
Reference in New Issue
Block a user