-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84c832d
commit a57c46c
Showing
3 changed files
with
60 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,71 @@ | ||
import React from "react"; | ||
import Link from "next/link"; | ||
import type { ModalProps } from "@mantine/core"; | ||
import { Text, Divider, List, Button, Modal } from "@mantine/core"; | ||
import { Text, Divider, List, Button, Modal, Flex, Box, AspectRatio } from "@mantine/core"; | ||
import { IoMdCheckmarkCircleOutline } from "react-icons/io"; | ||
import { MdChevronRight } from "react-icons/md"; | ||
|
||
export const UpgradeModal = ({ opened, onClose }: ModalProps) => { | ||
return ( | ||
<Modal | ||
title={ | ||
<Text c="bright" fz="h2" fw={600}> | ||
Upgrade | ||
<Text fz="h2" fw={600}> | ||
Try ToDiagram for free | ||
</Text> | ||
} | ||
size="md" | ||
size="1000" | ||
opened={opened} | ||
onClose={onClose} | ||
zIndex={1001} | ||
centered | ||
> | ||
<Divider mb="xs" fz="md" labelPosition="left" label="Included features" color="dimmed" /> | ||
<List spacing="6" c="gray" icon={<IoMdCheckmarkCircleOutline size="24" color="#16a34a" />}> | ||
<List.Item>Larger data support up to 4 MB</List.Item> | ||
<List.Item>Edit data directly on visualizations</List.Item> | ||
<List.Item>Compare data differences on graphs</List.Item> | ||
<List.Item>AI-powered data filter</List.Item> | ||
<List.Item>Customizable graph colors</List.Item> | ||
<List.Item>Tabs for multiple documents</List.Item> | ||
<List.Item>...and more</List.Item> | ||
</List> | ||
<Link href="https://todiagram.com/#preview" target="_blank" passHref> | ||
<Button | ||
color="green" | ||
fullWidth | ||
mt="md" | ||
size="md" | ||
fw={500} | ||
radius="md" | ||
rightSection={<MdChevronRight size="24" />} | ||
> | ||
See more | ||
</Button> | ||
</Link> | ||
<Flex align="center"> | ||
<Box flex="0.6"> | ||
<Text fz="sm" mb="sm"> | ||
More productivity. More power. Try our most-requested features, free for 7 days. | ||
</Text> | ||
<Text fz="sm" fw={500} mb="sm"> | ||
Here's what you get with ToDiagram. | ||
</Text> | ||
<List spacing="6" fz="sm" icon={<IoMdCheckmarkCircleOutline size="24" color="#16a34a" />}> | ||
<List.Item>Larger data support up to 4 MB</List.Item> | ||
<List.Item>Edit data directly on visualizations</List.Item> | ||
<List.Item>Compare data differences on graphs</List.Item> | ||
<List.Item>AI-powered data filter</List.Item> | ||
<List.Item>Customizable graph colors</List.Item> | ||
<List.Item>Tabs for multiple documents</List.Item> | ||
<List.Item>...and more</List.Item> | ||
</List> | ||
<Link href="https://todiagram.com/#pricing" target="_blank" passHref> | ||
<Button | ||
color="green" | ||
fullWidth | ||
mt="md" | ||
size="md" | ||
fw={500} | ||
radius="md" | ||
rightSection={<MdChevronRight size="24" />} | ||
> | ||
Start free trial | ||
</Button> | ||
</Link> | ||
</Box> | ||
<Divider orientation="vertical" mx="md" /> | ||
<Box flex="1"> | ||
<AspectRatio ratio={16 / 9}> | ||
<video | ||
autoPlay | ||
height="auto" | ||
muted | ||
loop | ||
playsInline | ||
style={{ display: "block", borderRadius: "8px", border: "2px solid #e9e9e9" }} | ||
> | ||
<source src="https://todiagram.com/videos/diagrams.mp4" type="video/mp4" /> | ||
</video> | ||
</AspectRatio> | ||
</Box> | ||
</Flex> | ||
</Modal> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters