2
0
Files
bot/ee/apps/landing-page/components/common/Header/MobileMenu.tsx

60 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-04-05 09:51:43 +02:00
import { Collapse, Stack, Button, Text } from '@chakra-ui/react'
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
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
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
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
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>
)