|
1 | 1 | import React from "react"; |
2 | 2 | import Link from "next/link"; |
3 | 3 | import type { ModalProps } from "@mantine/core"; |
4 | | -import { Text, Divider, List, Button, Modal } from "@mantine/core"; |
| 4 | +import { Text, Divider, List, Button, Modal, Flex, Box, AspectRatio } from "@mantine/core"; |
5 | 5 | import { IoMdCheckmarkCircleOutline } from "react-icons/io"; |
6 | 6 | import { MdChevronRight } from "react-icons/md"; |
7 | 7 |
|
8 | 8 | export const UpgradeModal = ({ opened, onClose }: ModalProps) => { |
9 | 9 | return ( |
10 | 10 | <Modal |
11 | 11 | title={ |
12 | | - <Text c="bright" fz="h2" fw={600}> |
13 | | - Upgrade |
| 12 | + <Text fz="h2" fw={600}> |
| 13 | + Try ToDiagram for free |
14 | 14 | </Text> |
15 | 15 | } |
16 | | - size="md" |
| 16 | + size="1000" |
17 | 17 | opened={opened} |
18 | 18 | onClose={onClose} |
19 | 19 | zIndex={1001} |
20 | 20 | centered |
21 | 21 | > |
22 | | - <Divider mb="xs" fz="md" labelPosition="left" label="Included features" color="dimmed" /> |
23 | | - <List spacing="6" c="gray" icon={<IoMdCheckmarkCircleOutline size="24" color="#16a34a" />}> |
24 | | - <List.Item>Larger data support up to 4 MB</List.Item> |
25 | | - <List.Item>Edit data directly on visualizations</List.Item> |
26 | | - <List.Item>Compare data differences on graphs</List.Item> |
27 | | - <List.Item>AI-powered data filter</List.Item> |
28 | | - <List.Item>Customizable graph colors</List.Item> |
29 | | - <List.Item>Tabs for multiple documents</List.Item> |
30 | | - <List.Item>...and more</List.Item> |
31 | | - </List> |
32 | | - <Link href="https://todiagram.com/#preview" target="_blank" passHref> |
33 | | - <Button |
34 | | - color="green" |
35 | | - fullWidth |
36 | | - mt="md" |
37 | | - size="md" |
38 | | - fw={500} |
39 | | - radius="md" |
40 | | - rightSection={<MdChevronRight size="24" />} |
41 | | - > |
42 | | - See more |
43 | | - </Button> |
44 | | - </Link> |
| 22 | + <Flex align="center"> |
| 23 | + <Box flex="0.6"> |
| 24 | + <Text fz="sm" mb="sm"> |
| 25 | + More productivity. More power. Try our most-requested features, free for 7 days. |
| 26 | + </Text> |
| 27 | + <Text fz="sm" fw={500} mb="sm"> |
| 28 | + Here's what you get with ToDiagram. |
| 29 | + </Text> |
| 30 | + <List spacing="6" fz="sm" icon={<IoMdCheckmarkCircleOutline size="24" color="#16a34a" />}> |
| 31 | + <List.Item>Larger data support up to 4 MB</List.Item> |
| 32 | + <List.Item>Edit data directly on visualizations</List.Item> |
| 33 | + <List.Item>Compare data differences on graphs</List.Item> |
| 34 | + <List.Item>AI-powered data filter</List.Item> |
| 35 | + <List.Item>Customizable graph colors</List.Item> |
| 36 | + <List.Item>Tabs for multiple documents</List.Item> |
| 37 | + <List.Item>...and more</List.Item> |
| 38 | + </List> |
| 39 | + <Link href="https://todiagram.com/#pricing" target="_blank" passHref> |
| 40 | + <Button |
| 41 | + color="green" |
| 42 | + fullWidth |
| 43 | + mt="md" |
| 44 | + size="md" |
| 45 | + fw={500} |
| 46 | + radius="md" |
| 47 | + rightSection={<MdChevronRight size="24" />} |
| 48 | + > |
| 49 | + Start free trial |
| 50 | + </Button> |
| 51 | + </Link> |
| 52 | + </Box> |
| 53 | + <Divider orientation="vertical" mx="md" /> |
| 54 | + <Box flex="1"> |
| 55 | + <AspectRatio ratio={16 / 9}> |
| 56 | + <video |
| 57 | + autoPlay |
| 58 | + height="auto" |
| 59 | + muted |
| 60 | + loop |
| 61 | + playsInline |
| 62 | + style={{ display: "block", borderRadius: "8px", border: "2px solid #e9e9e9" }} |
| 63 | + > |
| 64 | + <source src="https://todiagram.com/videos/diagrams.mp4" type="video/mp4" /> |
| 65 | + </video> |
| 66 | + </AspectRatio> |
| 67 | + </Box> |
| 68 | + </Flex> |
45 | 69 | </Modal> |
46 | 70 | ); |
47 | 71 | }; |
0 commit comments