Skip to content

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

feat: add ltd

AykutSarac0d45f243acb2
diff --git a/src/containers/Landing/HeroPreview.tsx b/src/containers/Landing/HeroPreview.tsx
index af32041f..f829d47d 100644
--- a/src/containers/Landing/HeroPreview.tsx
+++ b/src/containers/Landing/HeroPreview.tsx
@@ -92,6 +92,7 @@ export const HeroPreview = () => {
muted
loop
preload="auto"
+ playsInline
poster={`./assets/preview/${selectedFeature}.webp`}
key={selectedFeature}
style={{ display: "block" }}
diff --git a/src/containers/Modals/UpgradeModal/index.tsx b/src/containers/Modals/UpgradeModal/index.tsx
index 0066cbaa..2c0fec97 100644
--- a/src/containers/Modals/UpgradeModal/index.tsx
+++ b/src/containers/Modals/UpgradeModal/index.tsx
@@ -16,16 +16,9 @@ import {
import styled from "styled-components";
import { IoMdCheckmarkCircleOutline } from "react-icons/io";
import { gaEvent } from "src/lib/utils/gaEvent";
-import { PRICING } from "src/pages/pricing";
+import { PRICING, purchaseLinks } from "src/pages/pricing";
import useUser from "src/store/useUser";
-const overlayLinks = {
- monthly:
- "https://jsoncrack.lemonsqueezy.com/buy/ce30521f-c7cc-44f3-9435-995d3260ba22?&discount=0&enabled=67805",
- annual:
- "https://jsoncrack.lemonsqueezy.com/buy/577928ea-fb09-4076-9307-3e5931b35ad0?&discount=0&enabled=82417",
-};
-
const StyledRadioCard = styled(Radio.Card)`
border-width: 2px;
border-color: #efefef;
@@ -50,7 +43,7 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
const [plan, setPlan] = React.useState("monthly");
const handleUpgrade = () => {
- const link = new URL(overlayLinks[plan]);
+ const link = new URL(purchaseLinks[plan]);
if (user?.email) {
link.searchParams.append("checkout[email]", user.email);
@@ -125,9 +118,6 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
/month
</Flex>
</Group>
- <Text fz="xs" c="gray.6">
- 2 days money back guarantee
- </Text>
</StyledRadioCard>
<StyledRadioCard value="annual" radius="lg" px="xl" py="md">
<Group align="center" justify="space-between">
@@ -146,9 +136,21 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
/year
</Flex>
</Group>
- <Text fz="xs" c="gray.6">
- 3 days money back guarantee
- </Text>
+ </StyledRadioCard>
+ <StyledRadioCard value="ltd" radius="lg" px="xl" py="md">
+ <Group align="center" justify="space-between">
+ <Flex align="center" gap="xs">
+ <Text fz="xl" c="gray.7" fw={600}>
+ Lifetime
+ </Text>
+ </Flex>
+ <Flex fw={500} align="baseline" fz="sm" c="gray.5">
+ <Text fw={600} fz="xl" c="gray.7">
+ ${PRICING.LTD}
+ </Text>
+ /lifetime
+ </Flex>
+ </Group>
</StyledRadioCard>
</Stack>
<Button color="dark" fullWidth mt="xl" size="xl" radius="md" onClick={handleUpgrade}>
diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx
index aed2cc83..596d89eb 100644
--- a/src/pages/pricing.tsx
+++ b/src/pages/pricing.tsx
@@ -13,6 +13,7 @@ import {
Badge,
Tooltip,
Anchor,
+ type PaperProps,
} from "@mantine/core";
import styled from "styled-components";
import { AiOutlineInfoCircle } from "react-icons/ai";
@@ -24,6 +25,7 @@ import { gaEvent } from "src/lib/utils/gaEvent";
export const PRICING = {
MONTHLY: 7,
ANNUAL: 5,
+ LTD: 120,
getAnnualSave: () => Math.round(((PRICING.MONTHLY - PRICING.ANNUAL) / PRICING.MONTHLY) * 100),
};
@@ -32,9 +34,10 @@ export const purchaseLinks = {
"https://jsoncrack.lemonsqueezy.com/checkout/buy/ce30521f-c7cc-44f3-9435-995d3260ba22?enabled=67805",
annual:
"https://jsoncrack.lemonsqueezy.com/checkout/buy/577928ea-fb09-4076-9307-3e5931b35ad0?enabled=82417",
+ ltd: "https://jsoncrack.lemonsqueezy.com/buy/b4d2515e-1ed2-4f32-a6ad-615f208a89eb?enabled=384328",
};
-const StyledPaper = styled(Paper)`
+const StyledPaper = styled(Paper)<PaperProps & any>`
padding: 1.5em;
width: 350px;
border-radius: 4px;
@@ -47,7 +50,7 @@ export const PricingCards = () => {
const [isMonthly, setIsMonthly] = React.useState(true);
return (
- <Stack gap="0" align="center">
+ <Stack gap="0" align="center" maw="720px" mx="auto">
<Center my="lg">
<SegmentedControl
bg="gray.1"
@@ -354,6 +357,34 @@ export const PricingCards = () => {
</Flex>
</StyledPaper>
</Flex>
+ <StyledPaper w="100%" style={{ borderColor: "orange" }} mt="sm" visibleFrom="sm">
+ <Stack px="xl">
+ <Text fz="h2" fw={500} ta="center">
+ Buy once,
+ <Text ml={4} component="span" inherit c="orange">
+ use forever
+ </Text>
+ !
+ </Text>
+ <Text>
+ Gain lifetime access to JSON Crack, enjoy all the advantages of our Premium plan with
+ this one-time deal.
+ </Text>
+ <Button
+ component="a"
+ href={purchaseLinks.ltd}
+ target="_blank"
+ w="fit-content"
+ mx="auto"
+ fw={500}
+ size="md"
+ color="orange"
+ rightSection={<VscArrowRight />}
+ >
+ Get Lifetime Access for ${PRICING.LTD}
+ </Button>
+ </Stack>
+ </StyledPaper>
</Stack>
);
};