2
0
Files
bot/ee/apps/landing-page/components/Homepage/EndCta.tsx

70 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-04-19 13:20:58 +02:00
'use client'
import {
Heading,
Button,
Text,
Flex,
VStack,
StackProps,
} from '@chakra-ui/react'
import Link from 'next/link'
import React from 'react'
import { BackgroundPolygons } from './Hero/BackgroundPolygons'
type Props = {
heading?: string
polygonsBaseTop?: string
} & StackProps
export const EndCta = ({ heading, polygonsBaseTop, ...props }: Props) => {
return (
2022-03-17 14:37:00 +01:00
<VStack
as="section"
py={32}
pos="relative"
bgGradient="linear(to-b, gray.900, gray.800)"
height="100vh"
justifyContent="center"
{...props}
2022-03-17 14:37:00 +01:00
>
<BackgroundPolygons baseTop={polygonsBaseTop} />
2022-03-17 14:37:00 +01:00
<VStack
spacing="6"
maxW="3xl"
mx="auto"
px={{ base: '6', lg: '8' }}
py={{ base: '16', sm: '20' }}
textAlign="center"
>
{heading ? (
<Heading
fontWeight="extrabold"
letterSpacing="tight"
data-aos="fade-up"
>
{heading}
</Heading>
) : null}
2022-03-17 14:37:00 +01:00
<Flex>
<Button
as={Link}
2022-03-17 14:37:00 +01:00
href="https://app.typebot.io/register"
size="lg"
colorScheme="orange"
height="4rem"
2022-03-17 14:37:00 +01:00
data-aos="fade-up"
data-aos-delay="300"
2022-03-17 14:37:00 +01:00
>
Create a typebot
</Button>
</Flex>
2022-03-17 14:37:00 +01:00
<Text color="gray.400" data-aos="fade-up" data-aos-delay="400">
No trial. Generous <strong>free</strong> plan.
</Text>
2022-03-17 14:37:00 +01:00
</VStack>
</VStack>
)
}