✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
feat: add free trial premium
AykutSaracd69ab118bb53
diff --git a/src/containers/Modals/UpgradeModal/index.tsx b/src/containers/Modals/UpgradeModal/index.tsxindex 2c0fec97..2398eada 100644--- a/src/containers/Modals/UpgradeModal/index.tsx+++ b/src/containers/Modals/UpgradeModal/index.tsx@@ -22,19 +22,19 @@ import useUser from "src/store/useUser";const StyledRadioCard = styled(Radio.Card)`border-width: 2px;border-color: #efefef;- min-width: 400px;+ min-width: 450px;transition: 0.2s;&[data-checked] {- border-color: black;+ border-color: #ff7300;}&[data-checked]:hover {- background: #f6f6f6;+ background: #fffdfb;}&:hover {- border-color: #555555;+ border-color: #ffab6a;}`;@@ -66,12 +66,8 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {position="bottom"radius="lg"styles={{- body: {- background: "white",- },- header: {- background: "white",- },+ body: { background: "white" },+ header: { background: "white" },}}><Paper@@ -108,9 +104,14 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {<Stack><StyledRadioCard value="monthly" radius="lg" px="xl" py="md"><Group align="center" justify="space-between">- <Text c="gray.7" fz="xl" fw={600}>- Monthly- </Text>+ <Flex align="center" gap="xs">+ <Text fz="xl" c="gray.7" fw={600}>+ Monthly+ </Text>+ <Badge size="sm" radius="lg" color="yellow.4">+ 2 days free+ </Badge>+ </Flex><Flex fw={500} align="baseline" fz="sm" c="gray.5"><Text fw={600} fz="xl" c="gray.7">${PRICING.MONTHLY}@@ -125,7 +126,10 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {<Text fz="xl" c="gray.7" fw={600}>Yearly</Text>- <Badge size="md" radius="lg" color="yellow.4">+ <Badge size="sm" radius="lg" color="yellow.4">+ 2 days free+ </Badge>+ <Badge size="sm" radius="lg" color="yellow.4">Save {PRICING.getAnnualSave()}%</Badge></Flex>@@ -153,8 +157,8 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {</Group></StyledRadioCard></Stack>- <Button color="dark" fullWidth mt="xl" size="xl" radius="md" onClick={handleUpgrade}>- Upgrade+ <Button color="orange" fullWidth mt="xl" size="xl" radius="md" onClick={handleUpgrade}>+ {plan !== "ltd" ? "Start 2-Days Free Trial" : "Upgrade"}</Button></Radio.Group></Flex>diff --git a/src/containers/Toolbar/index.tsx b/src/containers/Toolbar/index.tsxindex 4dbb90b5..d24febc5 100644--- a/src/containers/Toolbar/index.tsx+++ b/src/containers/Toolbar/index.tsx@@ -103,7 +103,7 @@ export const Toolbar = ({ isWidget = false }: ToolbarProps) => {style={{ textAlign: "center", gap: 4 }}><AiFillGift size="18" />- Get Premium+ Try Premium</Text></Indicator></Styles.StyledToolElement>diff --git a/src/modules/GraphView/NotSupported.tsx b/src/modules/GraphView/NotSupported.tsxindex cc64b918..97f0d403 100644--- a/src/modules/GraphView/NotSupported.tsx+++ b/src/modules/GraphView/NotSupported.tsx@@ -181,7 +181,7 @@ export const NotSupported = () => {radius="md"rightSection={<MdChevronRight size="24" />}>- Upgrade now+ Start Free Trial</Button></StyledContent>diff --git a/src/modules/GraphView/index.tsx b/src/modules/GraphView/index.tsxindex e701a749..bd0e9f1c 100644--- a/src/modules/GraphView/index.tsx+++ b/src/modules/GraphView/index.tsx@@ -211,8 +211,7 @@ export const GraphView = ({ isWidget = false }: GraphProps) => {onClose={() => setDialogClosed(true)}><Text size="sm" fw={500}>- Try the powerful Premium editor for larger graphs and advanced features with- money-back guarantee.+ Try JSON Crack Premium for free! Start 2-days free trial to explore more features.</Text><Group justify="right" mt="sm"><Button variant="default" onClick={() => setDialogClosed(true)}>diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsxindex 6906234b..e371f370 100644--- a/src/pages/pricing.tsx+++ b/src/pages/pricing.tsx@@ -24,7 +24,7 @@ import Layout from "src/layout/Layout";import { gaEvent } from "src/lib/utils/gaEvent";export const PRICING = {- MONTHLY: 7,+ MONTHLY: 6,ANNUAL: 5,LTD: 120,getAnnualSave: () => Math.round(((PRICING.MONTHLY - PRICING.ANNUAL) / PRICING.MONTHLY) * 100),@@ -59,24 +59,7 @@ export const PricingCards = () => {value={isMonthly ? "Monthly" : "Annual"}onChange={v => setIsMonthly(v === "Monthly")}size="md"- miw={300}- data={[- {- label: "Monthly",- value: "Monthly",- },- {- label: (- <Flex align="center" gap="xs">- Annual{" "}- <Badge radius="sm" variant="light" color="orange">- Save {PRICING.getAnnualSave()}%- </Badge>- </Flex>- ),- value: "Annual",- },- ]}+ data={["Monthly", "Annual"]}w={200}radius="md"styles={{ label: { color: "black" } }}@@ -142,7 +125,7 @@ export const PricingCards = () => {my="md"rightSection={<VscArrowRight />}>- Upgrade+ Start 2-Days Free Trial</Button><Text mt="xs" fz="xs" c="dimmed">Remake version with advanced features, better performance and smooth user interface.@@ -259,7 +242,7 @@ export const PricingCards = () => {my="md"rightSection={<VscArrowRight />}>- Go to Editor+ Start Free</Button><Text mt="xs" fz="xs" c="dimmed">Basic version of the editor with limited features, open-source.