Skip to content

Commit d1971f5

Browse files
committed
styling changes
1 parent c51cd0e commit d1971f5

File tree

2 files changed

+46
-40
lines changed

2 files changed

+46
-40
lines changed

src/features/editor/Toolbar/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,15 @@ export const Toolbar = ({ isWidget = false }: ToolbarProps) => {
8888
<Button
8989
component="a"
9090
href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=toolbar"
91+
target="_blank"
9192
color="green"
9293
size="compact-sm"
9394
fz="12"
9495
fw="600"
9596
leftSection={<LuCrown />}
9697
mr="6"
9798
>
98-
Try premium for free
99+
Unlock Pro Features
99100
</Button>
100101
)}
101102
<SearchInput />

src/features/modals/UpgradeModal/index.tsx

Lines changed: 44 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
import React from "react";
22
import type { ModalProps } from "@mantine/core";
33
import {
4-
Text,
54
Button,
65
Modal,
76
Flex,
87
Stack,
98
Title,
10-
ThemeIcon,
119
CloseButton,
1210
FocusTrap,
1311
Image,
1412
Divider,
13+
List,
14+
ThemeIcon,
15+
Anchor,
1516
} from "@mantine/core";
1617
import Cookie from "js-cookie";
17-
import { LuCrown, LuTrendingUp } from "react-icons/lu";
18+
import { LuCheckCircle } from "react-icons/lu";
1819
import useConfig from "src/store/useConfig";
1920

2021
export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
@@ -47,53 +48,57 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
4748
style={{ objectPosition: "left" }}
4849
/>
4950
<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">
5253
<Title c="bright" fw="500" fz="24">
53-
Upgrade to unlock all features
54+
Try the new editor!
5455
</Title>
5556
<CloseButton onClick={handleCloseModal} />
5657
</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>
8384
<Button
8485
component="a"
8586
href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=upgrade_modal"
8687
target="_blank"
87-
mb="-16"
88-
color="violet"
88+
color="green"
8989
size="md"
9090
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+
}
92100
>
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
97102
</Button>
98103
</Stack>
99104
</Flex>

0 commit comments

Comments
 (0)