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 lifetime banner

AykutSaracae933361a3fb
diff --git a/src/layout/Navbar.tsx b/src/layout/Navbar.tsx
index e57d7d54..d90c44d5 100644
--- a/src/layout/Navbar.tsx
+++ b/src/layout/Navbar.tsx
@@ -1,7 +1,9 @@
import React from "react";
import Link from "next/link";
-import { Button } from "@mantine/core";
+import { Text, Alert, Button, ThemeIcon } from "@mantine/core";
import styled from "styled-components";
+import { FaGift } from "react-icons/fa6";
+import { PRICING } from "src/pages/pricing";
import { JSONCrackLogo } from "./JsonCrackLogo";
const StyledNavbarWrapper = styled.div`
@@ -45,6 +47,18 @@ const Right = styled.div`
export const Navbar = () => {
return (
<StyledNavbarWrapper className="navbar">
+ <Alert variant="filled" color="orange.4" fw={500} ta="center" p="6" mt="-1rem">
+ <Link href="/#buyonce">
+ <ThemeIcon size="sm" variant="transparent" color="black" mr={2}>
+ <FaGift size="12" />
+ </ThemeIcon>
+ Limited Offer: Lifetime Plan for ${PRICING.LTD}! Buy once,
+ <Text ml={4} component="span" inherit td="underline">
+ use forever
+ </Text>
+ .
+ </Link>
+ </Alert>
<StyledNavbar>
<Left>
<JSONCrackLogo />
diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx
index 596d89eb..6906234b 100644
--- a/src/pages/pricing.tsx
+++ b/src/pages/pricing.tsx
@@ -14,6 +14,7 @@ import {
Tooltip,
Anchor,
type PaperProps,
+ Box,
} from "@mantine/core";
import styled from "styled-components";
import { AiOutlineInfoCircle } from "react-icons/ai";
@@ -357,34 +358,36 @@ 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
+ <Box id="buyonce" pt="lg">
+ <StyledPaper w="100%" style={{ borderColor: "orange" }} 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>
- <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>
+ <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>
+ </Box>
</Stack>
);
};