|
1 | 1 | import React from "react"; |
2 | 2 | import type { ModalProps } from "@mantine/core"; |
3 | 3 | import { |
4 | | - Text, |
5 | 4 | Button, |
6 | 5 | Modal, |
7 | 6 | Flex, |
8 | 7 | Stack, |
9 | 8 | Title, |
10 | | - ThemeIcon, |
11 | 9 | CloseButton, |
12 | 10 | FocusTrap, |
13 | 11 | Image, |
14 | 12 | Divider, |
| 13 | + List, |
| 14 | + ThemeIcon, |
| 15 | + Anchor, |
15 | 16 | } from "@mantine/core"; |
16 | 17 | import Cookie from "js-cookie"; |
17 | | -import { LuCrown, LuTrendingUp } from "react-icons/lu"; |
| 18 | +import { LuCheckCircle } from "react-icons/lu"; |
18 | 19 | import useConfig from "src/store/useConfig"; |
19 | 20 |
|
20 | 21 | export const UpgradeModal = ({ opened, onClose }: ModalProps) => { |
@@ -47,53 +48,57 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => { |
47 | 48 | style={{ objectPosition: "left" }} |
48 | 49 | /> |
49 | 50 | <Divider orientation="vertical" /> |
50 | | - <Stack gap="24" px="40" py="20"> |
51 | | - <Flex justify="space-between"> |
| 51 | + <Stack gap="24" px="40" py="20" w="100%"> |
| 52 | + <Flex justify="space-between" mr="-20"> |
52 | 53 | <Title c="bright" fw="500" fz="24"> |
53 | | - Upgrade to unlock all features |
| 54 | + Try the new editor! |
54 | 55 | </Title> |
55 | 56 | <CloseButton onClick={handleCloseModal} /> |
56 | 57 | </Flex> |
57 | | - <Flex gap="20"> |
58 | | - <ThemeIcon color="violet" variant="light" size="xl" radius="xl"> |
59 | | - <LuCrown size="20" /> |
60 | | - </ThemeIcon> |
61 | | - <Stack gap="4"> |
62 | | - <Title c="gray" order={3} fw="500" fz="16"> |
63 | | - Load larger files |
64 | | - </Title> |
65 | | - <Text fz="14" c="dimmed"> |
66 | | - We made it easy to visualize, format, and explore JSON data, faster than ever. |
67 | | - </Text> |
68 | | - </Stack> |
69 | | - </Flex> |
70 | | - <Flex gap="20"> |
71 | | - <ThemeIcon color="violet" variant="light" size="xl" radius="xl"> |
72 | | - <LuTrendingUp size="20" /> |
73 | | - </ThemeIcon> |
74 | | - <Stack gap="4"> |
75 | | - <Title c="gray" order={3} fw="500" fz="16"> |
76 | | - Powerful, colorful editor |
77 | | - </Title> |
78 | | - <Text fz="14" c="dimmed"> |
79 | | - Modify data, preview images, inspect nodes, and more! |
80 | | - </Text> |
81 | | - </Stack> |
82 | | - </Flex> |
| 58 | + <List |
| 59 | + spacing="4" |
| 60 | + icon={ |
| 61 | + <ThemeIcon variant="transparent" radius="xl" size="sm" color="green"> |
| 62 | + <LuCheckCircle size="16" /> |
| 63 | + </ThemeIcon> |
| 64 | + } |
| 65 | + > |
| 66 | + <List.Item>Large data support</List.Item> |
| 67 | + <List.Item>Custom themes</List.Item> |
| 68 | + <List.Item>Cloud Storage</List.Item> |
| 69 | + <List.Item>Compare Data</List.Item> |
| 70 | + <List.Item>AI-Filter</List.Item> |
| 71 | + <List.Item>API Integration</List.Item> |
| 72 | + <List.Item> |
| 73 | + <Anchor |
| 74 | + href="https://chromewebstore.google.com/detail/todiagram/gpcnkpjdmgihedngamkhendifclghjhn" |
| 75 | + target="_blank" |
| 76 | + rel="noopener" |
| 77 | + c="inherit" |
| 78 | + td="underline" |
| 79 | + > |
| 80 | + Chrome Extension |
| 81 | + </Anchor> |
| 82 | + </List.Item> |
| 83 | + </List> |
83 | 84 | <Button |
84 | 85 | component="a" |
85 | 86 | href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=upgrade_modal" |
86 | 87 | target="_blank" |
87 | | - mb="-16" |
88 | | - color="violet" |
| 88 | + color="green" |
89 | 89 | size="md" |
90 | 90 | radius="md" |
91 | | - leftSection={<LuCrown />} |
| 91 | + fullWidth |
| 92 | + leftSection={ |
| 93 | + <Image |
| 94 | + src="https://todiagram.com/logo.svg" |
| 95 | + alt="logo" |
| 96 | + w={20} |
| 97 | + style={{ filter: "grayscale(1) brightness(0) invert(1)" }} |
| 98 | + /> |
| 99 | + } |
92 | 100 | > |
93 | | - Try premium for free, no registration |
94 | | - </Button> |
95 | | - <Button size="md" variant="subtle" color="gray" radius="md" onClick={handleCloseModal}> |
96 | | - Maybe later |
| 101 | + Open Editor |
97 | 102 | </Button> |
98 | 103 | </Stack> |
99 | 104 | </Flex> |
|
0 commit comments