Skip to content

Commit 594ffe4

Browse files
committed
update modals
1 parent f25750d commit 594ffe4

File tree

3 files changed

+31
-15
lines changed

3 files changed

+31
-15
lines changed

src/features/modals/NodeModal/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { ModalProps } from "@mantine/core";
33
import { Modal, Stack, Text, ScrollArea, Button } from "@mantine/core";
44
import { CodeHighlight } from "@mantine/code-highlight";
55
import { event as gaEvent } from "nextjs-google-analytics";
6-
import { VscLock } from "react-icons/vsc";
76
import useGraph from "src/features/editor/views/GraphView/stores/useGraph";
87
import useModal from "src/store/useModal";
98

@@ -38,7 +37,6 @@ export const NodeModal = ({ opened, onClose }: ModalProps) => {
3837
setVisible("UpgradeModal", true);
3938
gaEvent("click_node_edit");
4039
}}
41-
rightSection={<VscLock strokeWidth={0.5} />}
4240
>
4341
Edit
4442
</Button>

src/features/modals/UpgradeModal/index.tsx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,24 @@ import {
1010
ThemeIcon,
1111
CloseButton,
1212
FocusTrap,
13-
Image,
14-
Divider,
1513
} from "@mantine/core";
1614
import { LuCrown, LuTrendingUp } from "react-icons/lu";
1715

1816
export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
1917
return (
2018
<Modal
21-
size="800"
19+
size="430"
2220
opened={opened}
2321
onClose={onClose}
2422
zIndex={1001}
2523
centered
2624
radius="lg"
2725
withCloseButton={false}
2826
styles={{ body: { padding: 0 } }}
29-
overlayProps={{ blur: 1 }}
27+
overlayProps={{ blur: 2 }}
3028
>
3129
<FocusTrap.InitialFocus />
3230
<Flex>
33-
<Image src="./assets/todiagram_img.webp" alt="todiagram" w="350" fit="contain" px="lg" />
34-
<Divider orientation="vertical" />
3531
<Stack gap="24" px="40" py="20">
3632
<Flex justify="space-between">
3733
<Title c="bright" fw="500" fz="24">
@@ -45,11 +41,10 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
4541
</ThemeIcon>
4642
<Stack gap="4">
4743
<Title c="gray" order={3} fw="500" fz="16">
48-
Accurate & beautiful diagrams
44+
New diagram structure
4945
</Title>
5046
<Text fz="14" c="dimmed">
51-
New diagram structure helps you to understand the data, modify from diagrams,
52-
customize colors, preview images.
47+
50% less size, faster & customizable!
5348
</Text>
5449
</Stack>
5550
</Flex>
@@ -59,11 +54,10 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
5954
</ThemeIcon>
6055
<Stack gap="4">
6156
<Title c="gray" order={3} fw="500" fz="16">
62-
Larger file support, faster performance
57+
Powerful
6358
</Title>
6459
<Text fz="14" c="dimmed">
65-
Load up to 4MB without performance issues, open multiple documents, and save work
66-
faster.
60+
Modify data, preview images, inspect nodes, and more!
6761
</Text>
6862
</Stack>
6963
</Flex>
@@ -77,7 +71,7 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
7771
radius="md"
7872
leftSection={<LuCrown />}
7973
>
80-
Try premium for free
74+
Try premium for free, no registration
8175
</Button>
8276
<Button size="md" variant="subtle" color="gray" radius="md" onClick={onClose}>
8377
Maybe later

src/layout/Landing/HeroSection.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,18 @@ export const HeroSection = () => {
136136
>
137137
Go to Editor
138138
</Button>
139+
<Button
140+
component="a"
141+
color="#202842"
142+
href="https://todiagram.com/editor?utm_source=jsoncrack.com&utm_medium=cta&utm_campaign=hero"
143+
target="_blank"
144+
size="md"
145+
variant="light"
146+
radius="md"
147+
fw="500"
148+
>
149+
Try Premium for Free
150+
</Button>
139151
</Flex>
140152
<Flex gap="lg" wrap="wrap" justify="center" visibleFrom="xs">
141153
<Button
@@ -149,6 +161,18 @@ export const HeroSection = () => {
149161
>
150162
Go to Editor
151163
</Button>
164+
<Button
165+
component="a"
166+
color="#202842"
167+
href="https://todiagram.com/editor?utm_source=jsoncrack.com&utm_medium=cta&utm_campaign=hero"
168+
target="_blank"
169+
size="lg"
170+
variant="light"
171+
radius="md"
172+
fw="500"
173+
>
174+
Try Premium for Free
175+
</Button>
152176
</Flex>
153177
</Stack>
154178
</StyledHeroSectionBody>

0 commit comments

Comments
 (0)