✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
feat: update landing
AykutSaracff5d6bc46ba2
diff --git a/package.json b/package.jsonindex 097d9205..f51fc6ac 100644--- a/package.json+++ b/package.json@@ -14,6 +14,7 @@"analyze": "ANALYZE=true npm run build"},"dependencies": {+ "@mantine/carousel": "^7.6.2","@mantine/code-highlight": "^7.6.2","@mantine/core": "^7.6.2","@mantine/dropzone": "^7.6.2",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 5adcdd70..67241339 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -5,6 +5,9 @@ settings:excludeLinksFromLockfile: falsedependencies:+ '@mantine/carousel':+ specifier: ^7.6.2+ version: 7.6.2(@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected])([email protected])'@mantine/code-highlight':specifier: ^7.6.2version: 7.6.2(@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected])@@ -598,6 +601,22 @@ packages:call-bind: 1.0.7dev: false+ /@mantine/[email protected](@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-Iy0ffVyJz+5zNhiNhVALhXne0reQ/PhF7BFmyLDj/LKBrJG9aPNDiYZehOUeBOuXHsdhX5yIb/kuEKxd+3fMlA==}+ peerDependencies:+ '@mantine/core': 7.6.2+ '@mantine/hooks': 7.6.2+ embla-carousel-react: '>=7.0.0'+ react: ^18.2.0+ react-dom: ^18.2.0+ dependencies:+ '@mantine/core': 7.6.2(@mantine/[email protected])(@types/[email protected])([email protected])([email protected])+ '@mantine/hooks': 7.6.2([email protected])+ embla-carousel-react: 8.0.2([email protected])+ react: 18.2.0+ react-dom: 18.2.0([email protected])+ dev: false+/@mantine/[email protected](@mantine/[email protected])(@mantine/[email protected])([email protected])([email protected]):resolution: {integrity: sha512-5JrCpONCdgrBfASQS5a7ZFrLD9e4uvjJDET10UX6ZS4dMPRqZZCYweJFUwaxhvRoIctpQeN5+Fuh95PVcZ5NXw==}peerDependencies:@@ -1932,6 +1951,28 @@ packages:tape: 4.17.0dev: false+ resolution: {integrity: sha512-RHe1GKLulOW8EDN+cJgbFbVVfRXcaLT2/89dyVw3ONGgVpZjD19wB87I1LUZ1aCzOSrTccx0PFSQanK4OOfGPA==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.1 || ^18.0.0+ dependencies:+ embla-carousel: 8.0.2+ embla-carousel-reactive-utils: 8.0.2([email protected])+ react: 18.2.0+ dev: false++ resolution: {integrity: sha512-nLZqDkQdO0hvOP49/dUwjkkepMnUXgIzhyRuDjwGqswpB4Ibnc5M+w7rSQQAM+uMj0cPaXnYOTlv8XD7I/zVNw==}+ peerDependencies:+ embla-carousel: 8.0.2+ dependencies:+ embla-carousel: 8.0.2+ dev: false++ resolution: {integrity: sha512-bogsDO8xosuh/l3PxIvA5AMl3+BnRVAse9sDW/60amzj4MbGS5re4WH5eVEXiuH8G1/3G7QUAX2QNr3Yx8z5rA==}+ dev: false+resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}dev: truediff --git a/public/assets/preview/1.webp b/public/assets/preview/1.webpnew file mode 100644index 00000000..076976f8Binary files /dev/null and b/public/assets/preview/1.webp differdiff --git a/public/assets/preview/2.webp b/public/assets/preview/2.webpnew file mode 100644index 00000000..3d6cf1efBinary files /dev/null and b/public/assets/preview/2.webp differdiff --git a/public/assets/preview/3.webp b/public/assets/preview/3.webpnew file mode 100644index 00000000..dc683480Binary files /dev/null and b/public/assets/preview/3.webp differdiff --git a/public/assets/preview/4.webp b/public/assets/preview/4.webpnew file mode 100644index 00000000..a8289948Binary files /dev/null and b/public/assets/preview/4.webp differdiff --git a/public/assets/preview/5.webp b/public/assets/preview/5.webpnew file mode 100644index 00000000..5d90a40aBinary files /dev/null and b/public/assets/preview/5.webp differdiff --git a/src/constants/globalStyle.ts b/src/constants/globalStyle.tsindex e3d8a2cc..6481ae34 100644--- a/src/constants/globalStyle.ts+++ b/src/constants/globalStyle.ts@@ -2,7 +2,7 @@ import { createGlobalStyle } from "styled-components";const GlobalStyle = createGlobalStyle`html, body {- background: #000;+ background: #ffffff;overscroll-behavior: none;-webkit-font-smoothing: subpixel-antialiased !important;}diff --git a/src/containers/Modals/PremiumModal/index.tsx b/src/containers/Modals/PremiumModal/index.tsxindex 089ff61a..72a2cc1a 100644--- a/src/containers/Modals/PremiumModal/index.tsx+++ b/src/containers/Modals/PremiumModal/index.tsx@@ -1,4 +1,5 @@import React from "react";+import Link from "next/link";import {Modal,ModalProps,@@ -39,8 +40,9 @@ export const PremiumModal: React.FC<ModalProps> = ({ opened, onClose }) => {<Stack gap="xs"><Title order={3}>JSON Crack Plus</Title><Button- component="a"- href="https://pro.jsoncrack.com/pricing"+ component={Link}+ prefetch={false}+ href="/pricing"target="_blank"variant="filled"color="teal"diff --git a/src/containers/Toolbar/index.tsx b/src/containers/Toolbar/index.tsxindex 684037d8..aaf80889 100644--- a/src/containers/Toolbar/index.tsx+++ b/src/containers/Toolbar/index.tsx@@ -1,5 +1,4 @@import React from "react";-import Link from "next/link";import { Badge, Flex, Group, Select, Text } from "@mantine/core";import toast from "react-hot-toast";import { AiOutlineFullscreen } from "react-icons/ai";@@ -84,7 +83,7 @@ export const Toolbar: React.FC<{ isWidget?: boolean }> = ({ isWidget = false }))}{premium && !isWidget && (- <Link href="https://pro.jsoncrack.com" target="_blank" passHref>+ <a href="https://pro.jsoncrack.com/sign-in"><Styles.StyledToolElement><Textdisplay="flex"@@ -100,7 +99,7 @@ export const Toolbar: React.FC<{ isWidget?: boolean }> = ({ isWidget = false })</Badge></Text></Styles.StyledToolElement>- </Link>+ </a>)}<SearchInput />diff --git a/src/containers/Views/GraphView/PremiumView.tsx b/src/containers/Views/GraphView/PremiumView.tsxindex 6aeafe55..49a72ff0 100644--- a/src/containers/Views/GraphView/PremiumView.tsx+++ b/src/containers/Views/GraphView/PremiumView.tsx@@ -1,4 +1,5 @@import React from "react";+import Link from "next/link";import { Button, Title } from "@mantine/core";import styled from "styled-components";import { MdChevronRight } from "react-icons/md";@@ -165,17 +166,18 @@ export const PremiumView = () => (</StyledInfo><Button+ component={Link}+ prefetch={false}+ href="/pricing"mt="lg"size="lg"- component="a"fw="bolder"color="indigo"radius="sm"- href="https://pro.jsoncrack.com"target="_blank"rightSection={<MdChevronRight size="24" />}>- Take me there+ Get Pro Editor</Button></StyledContent>diff --git a/src/layout/Navbar/index.tsx b/src/layout/Navbar/index.tsxindex eccf3e16..9f18111b 100644--- a/src/layout/Navbar/index.tsx+++ b/src/layout/Navbar/index.tsx@@ -9,24 +9,33 @@ import { JSONCrackLogo } from "../JsonCrackLogo";const StyledNavbarWrapper = styled.div`position: sticky;- top: 0;+ top: -1px;left: 0;z-index: 3;+ transition: background 0.2s ease-in-out;++ &.is-pinned {+ background: rgba(255, 255, 255, 0.5);+ border-bottom: 1px solid gray;+ box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);+ }`;-const StyledNavbar = styled.div`+const StyledNavbar = styled.nav`display: flex;justify-content: space-between;align-items: center;width: 100%;height: 56px;margin: 0 auto;- border-bottom: 1px solid gray;- background: #ffffff;- padding: 8px 16px;- box-shadow:- 0 0 0 1px rgba(0, 0, 0, 0.35),- 0 2px 5px 0 rgba(0, 0, 0, 0.35);+ padding: 46px 40px;+ background: rgba(255, 255, 255, 0.1);+ backdrop-filter: blur(5px);+ -webkit-backdrop-filter: blur(5px);++ @media only screen and (max-width: 768px) {+ padding: 16px 24px;+ }@media only screen and (max-width: 1024px) {.desktop {@@ -49,56 +58,70 @@ const Right = styled.div``;export const Navbar = () => {- const isAuthenticated = useUser(state => state.isAuthenticated);+ const hasSession = useUser(state => !!state.user);const [opened, { toggle }] = useDisclosure();+ React.useEffect(() => {+ const el = document.querySelector(".navbar");+ const observer = new IntersectionObserver(+ ([e]) => e.target.classList.toggle("is-pinned", e.intersectionRatio < 1),+ { threshold: [1] }+ );++ if (el) observer.observe(el);++ return () => observer.disconnect();+ }, []);+return (- <StyledNavbarWrapper>+ <StyledNavbarWrapper className="navbar"><StyledNavbar><Left><JSONCrackLogo /><Buttonml="lg"component="a"- href="https://pro.jsoncrack.com/pricing"+ href="https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode"target="_blank"variant="subtle"- color="black"+ color="gray"radius="md"visibleFrom="sm"+ size="md">- Pricing+ VS Code</Button><Button- component="a"- href="https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode"- target="_blank"+ component={Link}+ href="/pricing"variant="subtle"- color="black"+ color="gray"radius="md"visibleFrom="sm"+ size="md">- VS Code+ Pricing</Button><Buttoncomponent={Link}href="/docs"- prefetch={false}variant="subtle"- color="black"+ color="gray"radius="md"visibleFrom="sm"+ size="md">- Docs+ Embed</Button><Menu trigger="hover" offset={15} withArrow shadow="md"><Menu.Target><Buttonvariant="subtle"- color="black"+ color="gray"radius="md"rightSection={<BiChevronDown size="18" />}visibleFrom="sm"+ size="md">Legal</Button>@@ -123,10 +146,11 @@ export const Navbar = () => {<Menu.Target><Buttonvariant="subtle"- color="black"+ color="gray"radius="md"rightSection={<BiChevronDown size="18" />}visibleFrom="sm"+ size="md">Social</Button>@@ -148,21 +172,46 @@ export const Navbar = () => {</Menu></Left><Right>- {!isAuthenticated && (+ {!hasSession && (+ <>+ <Button+ component={Link}+ href="/sign-in"+ variant="outline"+ color="gray"+ className="hide-mobile"+ radius="md"+ visibleFrom="sm"+ size="md"+ >+ Login+ </Button>+ <Button+ component={Link}+ href="/sign-up"+ color="dark"+ className="hide-mobile"+ visibleFrom="sm"+ radius="md"+ size="md"+ >+ Sign Up+ </Button>+ </>+ )}+ {hasSession && (<Button- component={Link}- href="/sign-in"- variant="outline"color="dark"- className="hide-mobile"+ size="md"+ radius="xl"+ component={Link}+ href="/editor"+ prefetch={false}visibleFrom="sm">- Login+ Editor</Button>)}- <Button color="dark" component={Link} href="/editor" prefetch={false} visibleFrom="sm">- Editor- </Button><Burger opened={opened} onClick={toggle} aria-label="Toggle navigation" hiddenFrom="sm" />{opened && (<Overlay top={56} h="100dvh">@@ -176,44 +225,21 @@ export const Navbar = () => {style={{ zIndex: 3, borderBottom: "1px solid black" }}><Flex pt="lg" direction="column" align="center" justify="center" gap="lg">- <Button- component="a"- href="https://pro.jsoncrack.com/pricing"- target="_blank"- variant="transparent"- color="black"- radius="md"- onClick={toggle}- >- Pricing- </Button>- <Button- component="a"- href="https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode"- target="_blank"- variant="transparent"- color="black"- radius="md"- onClick={toggle}- >- VS Code- </Button><Buttoncomponent={Link}- href="/docs"- prefetch={false}+ href="/pricing"variant="transparent"- color="black"+ color="dark"radius="md"onClick={toggle}>- Docs+ Pricing</Button><Menu trigger="click" offset={15} withArrow shadow="md"><Menu.Target><Buttonvariant="transparent"- color="black"+ color="dark"radius="md"rightSection={<BiChevronDown size="18" />}>@@ -244,7 +270,7 @@ export const Navbar = () => {<Menu.Target><Buttonvariant="transparent"- color="black"+ color="dark"radius="md"rightSection={<BiChevronDown size="18" />}>diff --git a/src/pages/docs.tsx b/src/pages/docs.tsxindex b3644a16..00f5aaab 100644--- a/src/pages/docs.tsx+++ b/src/pages/docs.tsx@@ -41,9 +41,9 @@ const Docs = () => {<title>Documentation - JSON Crack</title><meta name="description" content="Embedding JSON Crack tutorial into your websites." /></Head>- <Stack mx="auto" maw="75%">+ <Stack mx="auto" maw="90%"><Group mb="lg" mt={40}>- <Title order={1} c="white">+ <Title order={1} c="dark">Documentation</Title></Group>diff --git a/src/pages/index.tsx b/src/pages/index.tsxindex 601b45c3..4a17581c 100644--- a/src/pages/index.tsx+++ b/src/pages/index.tsx@@ -1,90 +1,153 @@import React from "react";+import dynamic from "next/dynamic";import Head from "next/head";import Link from "next/link";-import { Button, Flex, Group, Stack, Text } from "@mantine/core";+import {+ Badge,+ Button,+ Center,+ Divider,+ Flex,+ Grid,+ Group,+ Paper,+ Stack,+ Text,+ ThemeIcon,+ Title,+ Tooltip,+ rem,+} from "@mantine/core";+import { Carousel } from "@mantine/carousel";+import "@mantine/carousel/styles.css";import styled from "styled-components";-import { MdChevronRight } from "react-icons/md";+import { FaGithub } from "react-icons/fa";+import { MdChevronRight, MdCompare, MdImage, MdOutlineArrowRightAlt } from "react-icons/md";+import { MdRebaseEdit, MdOutlineSearch } from "react-icons/md";import Layout from "src/layout/Layout";+const PricingCards = dynamic(() => import("./pricing").then(mod => mod.PricingCards));+const StyledHeroSection = styled.section`position: relative;- padding: 4em 4em 2em;- background-size: 20px 20px;- background-image: linear-gradient(to right, #1a1c20 1px, transparent 1px),- linear-gradient(to bottom, #1a1c20 1px, transparent 1px);- background-position: top center;- image-rendering: pixelated;- -webkit-mask-image: linear-gradient(to bottom, transparent, 20%, white, 90%, transparent);- mask-image: linear-gradient(to bottom, transparent, 20%, white, 90%, transparent);+ &:before {+ position: absolute;+ content: "";+ width: 100%;+ height: 100%;+ background-color: #ffffff;+ background-image: radial-gradient(#e3e1e1 1px, #ffffff 1px);+ background-size: 10px 10px;+ background-position: top center;+ image-rendering: pixelated;+ -webkit-mask-image: linear-gradient(to bottom, transparent, 20%, white, 80%, transparent);+ mask-image: linear-gradient(to bottom, transparent, 20%, white, 80%, transparent);+ }- @media only screen and (max-width: 768px) {- padding: 2em;+ @media only screen and (max-width: 1240px) {+ flex-direction: column;}`;const StyledHeroSectionBody = styled.div`position: relative;- z-index: 1;- min-height: 70vh;display: flex;- justify-content: space-between;+ flex-wrap: wrap;align-items: center;- margin: 0 auto;- width: fit-content;- gap: 4vw;-`;--const StyledHeroTitle = styled.h1`- font-size: clamp(24px, 4vw, 50px);- color: white;+ justify-content: center;+ padding: 5em 10%;+ overflow: hidden;+ backdrop-filter: blur(1px);+ -webkit-backdrop-filter: blur(1px);+ text-align: center;+ gap: 60px;+ min-height: 60vh;@media only screen and (max-width: 768px) {- font-size: 34px;+ padding: 3em 16px;}`;const StyledHeroText = styled.p`- font-size: clamp(18px, 2vw, 22px);- color: #bcbcbc;- max-width: 600px;+ font-size: 0.8rem;+ color: #414141;+ font-weight: 400;+ max-width: 100%;+ min-width: 400px;+ text-align: center;- @media only screen and (max-width: 768px) {- font-size: 20px;- max-width: 100%;+ @media only screen and (min-width: 576px) {+ font-size: 1.3rem;+ max-width: 80%;+ }++ @media only screen and (min-width: 1400px) {+ font-size: 1.4rem;+ max-width: 60%;}`;-const StyledImageWrapper = styled.div`- border: 8px solid #36393e;- border-radius: 6px;- border-top: none;- width: 100%;- max-width: 40vw;- flex: auto;- height: fit-content;- margin: 0 auto;+const StyledHeroTitle = styled.h1`+ position: relative;+ font-size: 1.8rem;+ font-weight: 800;+ display: inline;+ color: #2e2e2e;+ width: fit-content;+ line-height: 1.2;+ filter: drop-shadow(2px 1px 1px rgba(0, 0, 0, 0.1));++ @keyframes textShine {+ 0% {+ background-position: 0% 50%;+ }+ 100% {+ background-position: 100% 50%;+ }+ }- img {- display: block;- width: 100%;+ @media only screen and (min-width: 576px) {+ font-size: 3rem;}- @media only screen and (max-width: 768px) {- display: none;+ @media only screen and (min-width: 992px) {+ font-size: 4rem;+ }++ @media only screen and (min-width: 1400px) {+ font-size: 4.5rem;}`;-const StyledFeaturedSection = styled.section`- padding: 0 1em;+const StyledHeroGradient = styled.span`+ background: linear-gradient(90deg, #f5a623, #ff5f6d);+ background-size: 200% 200%;+ animation: textShine 2s linear infinite alternate;+ -webkit-background-clip: text;+ background-clip: text;+ -webkit-text-fill-color: transparent;+ padding-left: 8px;+`;++const StyledCarouselWrapper = styled.section`+ max-width: 75%;+ position: relative;+ z-index: 1;+ border: 6px solid #bdbdbd;+ margin: 60px auto;+ border-radius: 14px;+ overflow: hidden;img {- filter: brightness(70%) grayscale(100%);- transition: filter 200ms ease;+ width: 100%;+ height: 100%;+ object-fit: cover;}- img:hover {- filter: none;+ @media only screen and (max-width: 768px) {+ max-width: 85%;+ margin: 0 auto;}`;@@ -92,102 +155,256 @@ export const HomePage = () => {return (<Layout><Head>- <title>JSON Crack | More Than a JSON Editor</title>+ <title>JSON Crack | Best JSON Visualizer, Formatter and Viewer for everyone</title></Head><StyledHeroSection id="hero-section"><StyledHeroSectionBody>- <Stack gap="xs">- <StyledHeroTitle>More than a JSON editor.</StyledHeroTitle>+ <Stack flex="1" miw={250} mx="auto" align="center">+ <StyledHeroTitle>+ Transform your data+ <br />+ into+ <StyledHeroGradient>interactive graphs</StyledHeroGradient>+ </StyledHeroTitle><StyledHeroText>- Visualize, analyze, and manipulate data with ease, a versatile and powerful tool for- data representation and exploration.+ Experience the ultimate online editor designed to empower you in visualizing,+ refining, and formatting data effortlessly.</StyledHeroText>- <Group mt="sm" justify="left">- <Link href="/editor" prefetch={false}>- <Button- size="xl"- color="violet"- rightSection={<MdChevronRight size={30} />}- visibleFrom="md"- >- GO TO EDITOR- </Button>- <Button- size="lg"- color="violet"- rightSection={<MdChevronRight size={30} />}- hiddenFrom="md"- >- GO TO EDITOR- </Button>- </Link>+ <Group justify="center"><Button- component="a"- href="https://pro.jsoncrack.com"- target="_blank"+ component={Link}+ href="/pricing"size="xl"- variant="outline"- color="#A771FE"- visibleFrom="md"+ fw="bold"+ color="indigo"+ rightSection={<MdChevronRight size={30} />}+ visibleFrom="sm"+ radius="md">- Get Premium++ Get Pro Editor</Button>+ <Button+ component={Link}+ href="/pricing"+ fw="bold"+ size="md"+ color="indigo"+ rightSection={<MdChevronRight size={24} />}+ hiddenFrom="sm"+ radius="md"+ >+ Get Pro Editor+ </Button>++ <Tooltip+ position="bottom"+ label="Free version has different visualization interface, performance, experience and features managed by the open-source community."+ maw={400}+ multiline+ withArrow+ >+ <Button+ component="a"+ href="https://jsoncrack.com/editor"+ target="_blank"+ size="xl"+ fw="bold"+ variant="outline"+ color="gray.7"+ leftSection={<FaGithub />}+ visibleFrom="sm"+ radius="md"+ >+ <Stack gap={0}>+ Use Free Version+ <Text fz={12} c="gray.5">+ (No registration needed)+ </Text>+ </Stack>+ </Button>+ </Tooltip>+<Buttoncomponent="a"- href="https://pro.jsoncrack.com"+ href="https://jsoncrack.com/editor"target="_blank"- size="lg"+ fw="bold"+ size="md"variant="outline"- color="#A771FE"- hiddenFrom="md"+ color="gray.7"+ leftSection={<FaGithub />}+ hiddenFrom="sm"+ radius="md">- Get Premium++ Use Free Version</Button></Group>+ <Flex gap="xs">+ <Badge color="dark" radius="sm" variant="light">+ JSON+ </Badge>+ <Badge color="dark" radius="sm" variant="light">+ YAML+ </Badge>+ <Badge color="dark" radius="sm" variant="light">+ CSV+ </Badge>+ <Badge color="dark" radius="sm" variant="light">+ XML+ </Badge>+ <Badge color="dark" radius="sm" variant="light">+ TOML+ </Badge>+ </Flex></Stack>- <StyledImageWrapper>- <img- loading="eager"- fetchPriority="high"- src="./assets/preview.png"- alt="JSON Crack Preview"- />- </StyledImageWrapper></StyledHeroSectionBody></StyledHeroSection>- <StyledFeaturedSection>- <Flex- mx="auto"- align="center"- justify="center"- pb={120}- gap="md"- wrap="wrap"- style={{ whiteSpace: "nowrap" }}++ <StyledCarouselWrapper id="preview">+ <Carousel+ getEmblaApi={embla => {+ setInterval(() => {+ embla.scrollNext();+ }, 10_000);+ }}+ withIndicators+ loop+ height="100%"+ style={{ flex: 1 }}>- <Text fz="xs" c="dimmed">- Featured on- </Text>- <a href="https://news.ycombinator.com/item?id=32626873" target="_blank" rel="noreferrer">- <img width={128} src="./assets/hn.svg" alt="Hacker News" />- </a>- <a- href="https://www.producthunt.com/products/JSON-Crack"- target="_blank"- rel="noreferrer"- >- <img width={128} src="./assets/ph.svg" alt="Product Hunt" />- </a>- <a- href="https://twitter.com/github/status/1519363257794015233"- target="_blank"- rel="noreferrer"- >- <img width={32} src="./assets/x.svg" alt="X" />- </a>- </Flex>- </StyledFeaturedSection>+ <Carousel.Slide>+ <img width="1440" height="760" src="./assets/preview/1.webp" alt="Preview 1" />+ </Carousel.Slide>+ <Carousel.Slide>+ <img+ loading="lazy"+ width="1440"+ height="760"+ src="./assets/preview/2.webp"+ alt="Preview 2"+ />+ </Carousel.Slide>+ <Carousel.Slide>+ <img+ loading="lazy"+ width="1440"+ height="760"+ src="./assets/preview/3.webp"+ alt="Preview 3"+ />+ </Carousel.Slide>+ <Carousel.Slide>+ <img+ loading="lazy"+ width="1440"+ height="760"+ src="./assets/preview/4.webp"+ alt="Preview 4"+ />+ </Carousel.Slide>+ <Carousel.Slide>+ <img+ loading="lazy"+ width="1440"+ height="760"+ src="./assets/preview/5.webp"+ alt="Preview 5"+ />+ </Carousel.Slide>+ </Carousel>+ </StyledCarouselWrapper>+ <Paper+ component="section"+ id="features"+ pt={rem(280)}+ px={rem(80)}+ pb={rem(100)}+ maw="95%"+ radius="xl"+ bg="dark.9"+ mx="auto"+ mt="-17.5rem"+ style={{ textAlign: "center" }}+ visibleFrom="sm"+ >+ <Title c="white" order={2} fz={36} fw={500} mb="md">+ Optimized for easy navigation+ </Title>+ <Text mx="auto" fz={16} maw="80%" c="dimmed" mb={60}>+ Designed to help you navigate through your data with ease. The editor provides a clean and+ intuitive interface that allows you to focus on what matters most: your data.+ </Text>+ <Grid justify="space-between" gutter="xl" mx="auto" style={{ textAlign: "center" }}>+ <Grid.Col span={{ sm: 6, md: 3 }}>+ <Flex gap="xs" justify="center" align="center">+ <ThemeIcon variant="transparent" size="md" color="gray.4">+ <MdRebaseEdit size="24" />+ </ThemeIcon>+ <Text fz={28} c="gray.4">+ Modify+ </Text>+ </Flex>+ <Text fz={16} c="dimmed">+ Directly modify your data through the graphs, without wasting time on manual editing.+ </Text>+ </Grid.Col>+ <Grid.Col span={{ sm: 6, md: 3 }}>+ <Flex gap="xs" justify="center" align="center">+ <ThemeIcon variant="transparent" size="md" color="gray.4">+ <MdOutlineSearch size="24" />+ </ThemeIcon>+ <Text fz={28} c="gray.4">+ Search+ </Text>+ </Flex>+ <Text fz={16} c="dimmed">+ Highlight and search what you need in your data, without any hassle.+ </Text>+ </Grid.Col>+ <Grid.Col span={{ sm: 6, md: 3 }}>+ <Flex gap="xs" justify="center" align="center">+ <ThemeIcon variant="transparent" size="md" color="gray.4">+ <MdImage size="24" />+ </ThemeIcon>+ <Text fz={28} c="gray.4">+ Download+ </Text>+ </Flex>+ <Text fz={16} c="dimmed">+ Export as image, use at your presentations, documentations or share with your team.+ </Text>+ </Grid.Col>+ <Grid.Col span={{ sm: 6, md: 3 }}>+ <Flex gap="xs" justify="center" align="center">+ <ThemeIcon variant="transparent" size="md" color="gray.4">+ <MdCompare size="24" />+ </ThemeIcon>+ <Text fz={28} c="gray.4">+ Compare+ </Text>+ </Flex>+ <Text fz={16} c="dimmed">+ Compare and analyze your data smoothly with the interactive graphs. See the+ differences at a glance.+ </Text>+ </Grid.Col>+ </Grid>+ </Paper>+ <Divider label="◆" color="dimmed" mt={120} mb={40} w="40%" mx="auto" />+ <PricingCards />+ <Divider color="dimmed" my={80} w="70%" mx="auto" />+ <Center>+ <Stack align="center">+ <StyledHeroText>More than an editor.</StyledHeroText>++ <Link href="/sign-up" prefetch={false}>+ <Button size="lg" color="dark" rightSection={<MdOutlineArrowRightAlt />} fullWidth>+ Start using now+ </Button>+ </Link>+ </Stack>+ </Center></Layout>);};diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsxindex 8cb9e5db..d4721e32 100644--- a/src/pages/pricing.tsx+++ b/src/pages/pricing.tsx@@ -1,10 +1,19 @@import React from "react";import Head from "next/head";-import { Flex, Stack, Button, List, Text, Paper, SegmentedControl, Center } from "@mantine/core";+import Link from "next/link";+import {+ Flex,+ Stack,+ Button,+ List,+ Text,+ Paper,+ SegmentedControl,+ Center,+ Badge,+} from "@mantine/core";import styled from "styled-components";import { AiOutlineInfoCircle } from "react-icons/ai";-import { FaCheck } from "react-icons/fa";-import { ImCheckmark } from "react-icons/im";import { VscArrowRight } from "react-icons/vsc";import Layout from "src/layout/Layout";import useUser from "src/store/useUser";@@ -16,28 +25,21 @@ const purchaseLinks = {"https://herowand.lemonsqueezy.com/checkout/buy/577928ea-fb09-4076-9307-3e5931b35ad0?enabled=82417",};-const StyledPaper = styled(Paper)`+const StyledPaperFree = styled(Paper)`padding: 1.5em;- border-radius: 1rem;width: 400px;- background: rgb(14, 14, 14);-- background: linear-gradient(- 180deg,- rgba(48, 48, 48, 0.5) 0%,- rgba(0, 0, 0, 1) 25%,- rgba(0, 0, 0, 1) 50%,- rgba(0, 0, 0, 1) 90%,- rgba(101, 0, 94, 0.5) 100%- );-- border-bottom: 1px solid rgba(101, 0, 94, 1);- border-top: 1px solid rgba(48, 48, 48, 1);- transition: transform 0.5s;+ border-radius: 1em;+ border: 2px solid #e1e1e1;+`;- &:hover {- transform: scale(1.01);- }+const StyledPaper = styled(Paper)`+ padding: 1.5em;+ width: 400px;+ background:+ linear-gradient(white, white) padding-box,+ linear-gradient(#ec85f5, #fb7eb0 28%, #fc9f96 53%, #ffbc88 78%, #ffc86a) border-box;+ border-radius: 1em;+ border: 2px solid transparent;`;export const PricingCards = () => {@@ -50,100 +52,87 @@ export const PricingCards = () => {};return (- <Stack gap="0" align="center">+ <Stack component="section" id="pricing" gap="0" align="center"><Center my="lg"><SegmentedControlcolor="dark"+ value={isMonthly ? "Monthly" : "Yearly"}onChange={v => setIsMonthly(v === "Monthly")}- size="lg"+ size="md"data={["Monthly", "Yearly"]}w={200}- radius="xl"+ radius="lg"/></Center>- <Flex gap="lg" wrap="wrap" justify="center" w="fit-content" p="lg" mx="auto">- <StyledPaper>+ <Flex gap="lg" wrap="wrap" justify="center" w="fit-content" p="lg" mx="auto" maw="100%">+ <StyledPaperFree><Flex justify="space-between"><Stack gap="0">- <Text fz="xl" fw="bold" c="white">+ <Badge mb="lg" size="lg" variant="outline" color="gray.3" c="dark">Free- </Text>- <Text fz={32} fw="bold" c="white">- $0- </Text>- <Text fz="xs" c="gray.6">+ </Badge>++ <Flex gap="xs" align="baseline">+ <Text fz={32} fw="bold" c="dark">+ $0+ </Text>+ <Text fz="sm" fw={500} c="gray.8">+ / month+ </Text>+ </Flex>+ <Text fz="xs" c="gray.7">billed {isMonthly ? "monthly" : "annually"}</Text></Stack></Flex><Button- component="a"- href="https://jsoncrack.com"- target="_blank"- my="md"- size="md"+ component={Link}+ href="/sign-up"+ size="lg"radius="md"- color="gray.6"variant="outline"+ color="dark"fullWidth+ my="md">- Free+ Sign up</Button>- <Flex direction="column" justify="space-between" h={270}>- <List- spacing="xs"- size="sm"- mt="lg"- center- icon={<FaCheck color="white" size="1rem" />}- >+ <Flex direction="column" justify="space-between" h={280}>+ <List spacing="xs" size="sm" mt="lg" center icon="✦"><List.Item>- <Text c="white" fz="sm">+ <Text c="gray.7" fw={500} fz="sm">Open Source</Text></List.Item><List.Item>- <Text c="white" fz="sm">- Visualize multiple data formats- </Text>- <Text c="dimmed" fz="xs">- JSON, YAML, CSV, XML, TOML+ <Text c="gray.7" fw={500} fz="sm">+ Visualize graphs up to 800 nodes</Text></List.Item><List.Item>- <Text c="white" fz="sm">- Download graph as image- </Text>- </List.Item>- <List.Item>- <Text c="white" fz="sm">- Generate types- </Text>- <Text c="dimmed" fz="xs">- TypeScript, Rust, Go, etc.+ <Text c="gray.7" fw={500} fz="sm">+ Download graphs as images</Text></List.Item></List></Flex>- </StyledPaper>-+ </StyledPaperFree><StyledPaper><Flex justify="space-between"><Stack gap="0">- <Flex align="center" gap="xs">- <Text fz="xl" fw="bold" c="white">- Premium- </Text>- </Flex>- <Flex gap="xs" align="center">- <Text fz={32} fw="bold" c="white">+ <Badge mb="lg" size="lg" variant="outline" color="gray.3" c="dark" leftSection="✦">+ Premium+ </Badge>++ <Flex gap="xs" align="baseline">+ <Text fz={32} fw="bold" c="dark">${isMonthly ? "6" : "5"}</Text>- <Text fz="md" fw={500} c="gray.5">+ <Text fz="sm" fw={500} c="gray.8">/ month</Text></Flex>- <Text fz="xs" c="gray.6">+ <Text fz="xs" c="gray.7">billed {isMonthly ? "monthly" : "annually"}</Text></Stack>@@ -152,64 +141,54 @@ export const PricingCards = () => {component="a"href={paymentURL(isMonthly ? purchaseLinks.monthly : purchaseLinks.annual)}target="_blank"- size="md"+ size="lg"radius="md"- color="white"- bg="grape"+ color="indigo"fullWidthmy="md"rightSection={<VscArrowRight />}>Upgrade</Button>- <Flex direction="column" justify="space-between" h={300}>- <List- spacing="xs"- size="sm"- mt="lg"- center- icon={<ImCheckmark color="white" size="1rem" />}- >+ <Flex direction="column" justify="space-between" h={280}>+ <List spacing="xs" size="sm" mt="lg" center icon="✦"><List.Item>- <Text c="gray.4" fz="sm">- Lightning speed graph visualization+ <Text c="gray.7" fw={500} fz="sm">+ Live Graph & Tree visualization</Text></List.Item><List.Item>- <Text c="gray.4" fz="sm">- Smooth user interface & experience+ <Text c="gray.7" fw={500} fz="sm">+ Compare data differences on graph</Text></List.Item><List.Item>- <Text c="gray.4" fz="sm">- Modify data directly through the graph+ <Text c="gray.7" fw={500} fz="sm">+ Modify directly on the visualization</Text></List.Item><List.Item>- <Text c="gray.4" fz="sm">- Switch tabs within the editor+ <Text c="gray.7" fw={500} fz="sm">+ Built-in tabs for multiple documents</Text></List.Item><List.Item>- <Text c="gray.4" fz="sm">- Save up to 200 documents in the cloud+ <Text c="gray.7" fw={500} fz="sm">+ Download graphs as images</Text></List.Item><List.Item>- <Text c="gray.4" fz="sm">- JSON Schema+ <Text c="gray.7" fw={500} fz="sm">+ Save up to 200 documents in the cloud</Text></List.Item><List.Item>- <Text c="gray.4" fz="sm">- Bigger dataset support- </Text>- <Text c="dimmed" fz="xs">- Supports up to 4 MB.+ <Text c="gray.7" fw={500} fz="sm">+ Visualize up to 4 MBs</Text></List.Item><List.Item>- <Text c="gray.4" fz="sm">+ <Text c="gray.7" fw={500} fz="sm">Join alpha test of AI</Text><Text c="dimmed" fz="xs">