2022-04-05 09:51:43 +02:00
|
|
|
import { Collapse, Stack, Button, Text } from '@chakra-ui/react'
|
2022-11-03 19:39:42 +01:00
|
|
|
import Link from 'next/link'
|
2022-04-05 09:51:43 +02:00
|
|
|
import { links } from './_data'
|
|
|
|
|
|
|
|
type Props = { isOpen: boolean }
|
|
|
|
|
|
|
|
export const MobileMenu = ({ isOpen }: Props) => (
|
|
|
|
<Collapse in={isOpen}>
|
|
|
|
<Stack
|
|
|
|
pos="absolute"
|
|
|
|
insetX={0}
|
|
|
|
bgGradient="linear(to-b, gray.900, gray.800)"
|
|
|
|
px="6"
|
|
|
|
py="10"
|
|
|
|
spacing={4}
|
|
|
|
>
|
|
|
|
<Button
|
2022-11-03 19:39:42 +01:00
|
|
|
as={Link}
|
2022-04-05 09:51:43 +02:00
|
|
|
href="https://app.typebot.io/signin"
|
|
|
|
colorScheme="blue"
|
|
|
|
variant="outline"
|
|
|
|
fontWeight={700}
|
|
|
|
>
|
|
|
|
Sign in
|
|
|
|
</Button>
|
|
|
|
<Button
|
2022-11-03 19:39:42 +01:00
|
|
|
as={Link}
|
2022-04-05 09:51:43 +02:00
|
|
|
href="https://app.typebot.io/register"
|
|
|
|
colorScheme="orange"
|
|
|
|
fontWeight={700}
|
|
|
|
>
|
2024-09-14 12:04:33 +02:00
|
|
|
Create a BLS bot
|
2022-04-05 09:51:43 +02:00
|
|
|
</Button>
|
|
|
|
<Button
|
2022-11-03 19:39:42 +01:00
|
|
|
as={Link}
|
2022-04-05 09:51:43 +02:00
|
|
|
href="/pricing"
|
|
|
|
variant="outline"
|
|
|
|
colorScheme="gray"
|
|
|
|
fontWeight={700}
|
|
|
|
>
|
|
|
|
Pricing
|
|
|
|
</Button>
|
|
|
|
<Text fontWeight="700">Resources:</Text>
|
|
|
|
{links[0].children?.map((link, idx) => (
|
|
|
|
<Button
|
2022-11-03 19:39:42 +01:00
|
|
|
as={Link}
|
2022-04-05 09:51:43 +02:00
|
|
|
href={link.href}
|
|
|
|
key={idx}
|
|
|
|
variant="outline"
|
|
|
|
colorScheme="gray"
|
|
|
|
fontWeight={700}
|
|
|
|
py="6"
|
|
|
|
>
|
|
|
|
{link.label}
|
|
|
|
</Button>
|
|
|
|
))}
|
|
|
|
</Stack>
|
|
|
|
</Collapse>
|
|
|
|
)
|