Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

update modal

AykutSaracd5811929997f
diff --git a/src/features/editor/views/GraphView/NotSupported.tsx b/src/features/editor/views/GraphView/NotSupported.tsx
index 0bb55359..7c0e9f1e 100644
--- a/src/features/editor/views/GraphView/NotSupported.tsx
+++ b/src/features/editor/views/GraphView/NotSupported.tsx
@@ -2,6 +2,7 @@ import React from "react";
import Link from "next/link";
import { Button, Text } from "@mantine/core";
import styled from "styled-components";
+import { LuZap } from "react-icons/lu";
import { UpgradeContent } from "../../../modals/UpgradeModal";
const StyledNotSupported = styled.div`
@@ -146,8 +147,8 @@ export const NotSupported = () => {
<StyledContent>
<UpgradeContent direction="column-reverse" />
<Text c="dimmed" maw="400" my="lg" ta="center">
- JSON Crack is unable to support data of this size. Please try our new editor for better
- performance.
+ JSON Crack is unable to support data of this size. <br />
+ Try the new editor for better performance.
</Text>
<Link
rel="noopener"
@@ -155,8 +156,8 @@ export const NotSupported = () => {
target="_blank"
passHref
>
- <Button size="lg" color="indigo" radius="xl">
- Open New Editor &rarr;
+ <Button size="lg" color="teal" leftSection={<LuZap />} radius="xl">
+ Try new editor &rarr;
</Button>
</Link>
</StyledContent>
diff --git a/src/features/modals/UpgradeModal/index.tsx b/src/features/modals/UpgradeModal/index.tsx
index da93e6e9..c994a706 100644
--- a/src/features/modals/UpgradeModal/index.tsx
+++ b/src/features/modals/UpgradeModal/index.tsx
@@ -13,40 +13,46 @@ import {
Anchor,
Image,
Box,
+ CloseButton,
} from "@mantine/core";
import Cookie from "js-cookie";
-import { LuCheck } from "react-icons/lu";
+import { LuCheck, LuZap } from "react-icons/lu";
import useConfig from "../../../store/useConfig";
-import { Logo } from "../../editor/Toolbar/Logo";
export const UpgradeContent = (props: FlexProps) => {
const darkmodeEnabled = useConfig(state => state.darkmodeEnabled);
return (
<Flex direction="column" gap="0" {...props}>
- <Flex gap="sm">
+ <Flex justify="center" gap="60" px="sm">
<List
center
+ c="bright"
+ fz="lg"
+ spacing="xs"
icon={
<ThemeIcon color="green" variant="transparent">
- <LuCheck />
+ <LuCheck size="18" />
</ThemeIcon>
}
>
- <List.Item>Load larger datasets (100x more)</List.Item>
- <List.Item>Modify data from diagrams</List.Item>
- <List.Item>Clean and fast layout</List.Item>
+ <List.Item>No size limit</List.Item>
+ <List.Item>Editable diagrams</List.Item>
+ <List.Item>Fast and optimized</List.Item>
</List>
<List
center
+ c="bright"
+ fz="lg"
+ spacing="xs"
icon={
<ThemeIcon color="green" variant="transparent">
- <LuCheck />
+ <LuCheck size="18" />
</ThemeIcon>
}
>
- <List.Item>Customize colors</List.Item>
- <List.Item>Improved UI & More tools</List.Item>
+ <List.Item>Custom themes</List.Item>
+ <List.Item>Modern UI</List.Item>
<List.Item>
<Anchor
href="https://chromewebstore.google.com/detail/todiagram/gpcnkpjdmgihedngamkhendifclghjhn"
@@ -87,7 +93,7 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
return (
<Modal
- size="auto"
+ size="lg"
opened={opened}
onClose={handleCloseModal}
zIndex={1001}
@@ -96,18 +102,24 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
overlayProps={{ blur: 2 }}
withCloseButton={false}
closeOnClickOutside={false}
- title={
- <Flex align="center" gap="4">
- <Logo />
- <Text fz="lg" fw="600">
- JSON Crack 2.0 - Professional Edition
- </Text>
- </Flex>
- }
>
- <UpgradeContent />
- <Group justify="space-between">
- <Button onClick={handleCloseModal} color="gray" variant="subtle">
+ <Flex justify="center" align="center" gap="xs">
+ <Image
+ ml="auto"
+ pl="28"
+ src="https://todiagram.com/logo-64x64.png"
+ alt="todiagram"
+ width={30}
+ height={30}
+ />
+ <Text fz="24" fw="600" c="bright">
+ Try JSON Crack 2.0
+ </Text>
+ <CloseButton ml="auto" onClick={handleCloseModal} />
+ </Flex>
+ <UpgradeContent direction="column-reverse" />
+ <Group justify="center" gap="lg" mt="xl">
+ <Button size="md" onClick={handleCloseModal} color="gray" variant="light">
Maybe later
</Button>
<Link
@@ -115,8 +127,8 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
rel="noopener"
target="_blank"
>
- <Button onClick={handleCloseModal} color="teal">
- Try Now &rarr;
+ <Button size="md" onClick={handleCloseModal} leftSection={<LuZap />} color="teal">
+ Try for free &rarr;
</Button>
</Link>
</Group>