Skip to content

Commit e6a185b

Browse files
committed
feat: update upgrade ui
1 parent 1cf5b09 commit e6a185b

File tree

5 files changed

+38
-55
lines changed

5 files changed

+38
-55
lines changed

src/features/editor/Toolbar/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ export const Toolbar = ({ isWidget = false }: ToolbarProps) => {
8383
<Group gap="6" justify="right" w="100%" style={{ flexWrap: "nowrap" }}>
8484
{!isWidget && (
8585
<Button
86-
variant="default"
86+
variant="gradient"
87+
gradient={{ from: "teal", to: "blue", deg: 45 }}
88+
autoContrast
8789
size="compact-sm"
8890
fz="12"
8991
fw="600"

src/features/editor/views/GraphView/NotSupported.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ export const NotSupported = () => {
151151
</Text>
152152
<Link
153153
rel="noopener"
154-
href="https://todiagram.com?utm_source=jsoncrack&utm_medium=data_limit"
154+
href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=data_limit"
155155
target="_blank"
156156
passHref
157157
>
158-
<Button size="lg" color="green" radius="xl">
159-
Try New Editor &rarr;
158+
<Button size="lg" color="indigo" radius="xl">
159+
Open New Editor &rarr;
160160
</Button>
161161
</Link>
162162
</StyledContent>

src/features/modals/UpgradeModal/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
9494
withCloseButton={false}
9595
closeOnClickOutside={false}
9696
title={
97-
<Flex align="center" gap="sm">
97+
<Flex align="center" gap="4">
9898
<Logo />
9999
<Text fz="lg" fw="600">
100100
Upgrade to New Editor
@@ -108,12 +108,12 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
108108
Maybe later
109109
</Button>
110110
<Link
111-
href="https://todiagram.com/?utm_source=jsoncrack&utm_medium=upgrade_modal"
111+
href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=upgrade_modal"
112112
rel="noopener"
113113
target="_blank"
114114
>
115115
<Button onClick={handleCloseModal} color="gray" variant="outline">
116-
Try for Free &rarr;
116+
Open Editor &rarr;
117117
</Button>
118118
</Link>
119119
</Group>

src/layout/Landing/LovedBy.tsx

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { Button, Container, Flex, Text, Image } from "@mantine/core";
2+
import { Button, Container, Flex, Text } from "@mantine/core";
33
import styled from "styled-components";
44
import CountUp from "react-countup";
55
import { FaGithub, FaHackerNews, FaLinkedin, FaProductHunt, FaXTwitter } from "react-icons/fa6";
@@ -84,23 +84,6 @@ export const LovedBy = ({ stars }: LovedByProps) => {
8484
>
8585
Share on LinkedIn
8686
</Button>
87-
<Button
88-
component="a"
89-
href="https://todiagram.com?utm_source=jsoncrack&utm_medium=loved_by"
90-
color="#fe5e49"
91-
leftSection={
92-
<Image
93-
src="https://todiagram.com/192.png"
94-
loading="lazy"
95-
alt="Todiagram Logo"
96-
w={14}
97-
h={14}
98-
style={{ filter: "brightness(0) saturate(100%) invert(100%)" }}
99-
/>
100-
}
101-
>
102-
ToDiagram
103-
</Button>
10487
</Flex>
10588
</Container>
10689
);

src/store/useFile.ts

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,40 @@ import useJson from "./useJson";
1111

1212
const defaultJson = JSON.stringify(
1313
{
14-
appName: "JSON Crack",
15-
author: "Aykut Saraç",
16-
launched: 2022,
17-
openSource: true,
18-
stars: 34633,
19-
upgrade: {
20-
appName: "ToDiagram",
21-
detail: "New powerful JSON editor.",
22-
website: "https://todiagram.com",
23-
brandColor: "#fe5e49",
24-
paid: true,
25-
},
26-
milestones: [
27-
{
28-
title: "Launch",
29-
year: 2022,
30-
},
31-
{
32-
title: "10K Stars",
33-
date: 2022,
14+
orderId: "A12345",
15+
customer: {
16+
name: "Jane Doe",
17+
18+
address: {
19+
street: "123 Main St",
20+
city: "New York",
21+
state: "NY",
22+
zipCode: "10001",
3423
},
24+
isMember: true,
25+
},
26+
products: [
3527
{
36-
title: "20K Stars",
37-
date: 2023,
28+
productId: "P001",
29+
name: "Wireless Mouse",
30+
quantity: 2,
31+
price: 25.5,
32+
image: "https://example.com/wireless-mouse.jpg",
33+
color: "#3498db",
3834
},
3935
{
40-
title: "30K Stars",
41-
date: 2024,
36+
productId: "P002",
37+
name: "Keyboard",
38+
quantity: 1,
39+
price: 45,
40+
image: "https://example.com/keyboard.jpg",
41+
color: "#2ecc71",
4242
},
4343
],
44-
social: {
45-
github: "https://github.com/AykutSarac/jsoncrack.com",
46-
twitter: "https://x.com/jsoncrack",
47-
linkedin: "https://linkedin.com/company/todiagram",
48-
},
49-
images: ["https://jsoncrack.com/assets/192.png"],
44+
orderDate: "2025-01-02T10:15:30Z",
45+
status: "Processing",
46+
isPaid: false,
47+
totalAmount: 96,
5048
},
5149
null,
5250
2

0 commit comments

Comments
 (0)