✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
update features section
AykutSarac0a4068e1637a
diff --git a/src/containers/Landing/Features.tsx b/src/containers/Landing/Features.tsxindex c37d0e28..82b46353 100644--- a/src/containers/Landing/Features.tsx+++ b/src/containers/Landing/Features.tsx@@ -1,230 +1,152 @@import React from "react";import {Container,- Grid,Flex,- rem,Title,Text,Paper,Center,Badge,ThemeIcon,+ SimpleGrid,} from "@mantine/core";-import { FaBolt, FaMagic, FaToolbox } from "react-icons/fa";-import { GrSearchAdvanced } from "react-icons/gr";-import { MdOutlineGeneratingTokens } from "react-icons/md";+import { FaBolt, FaToolbox } from "react-icons/fa";+import { IoImages, IoShieldCheckmark } from "react-icons/io5";+import { MdOutlineFormatIndentIncrease, MdOutlineGeneratingTokens } from "react-icons/md";import { TbTransformFilled } from "react-icons/tb";+import { VscJson } from "react-icons/vsc";++interface FeatureItem {+ title: string;+ description: string;+ icon: React.ReactNode;+ color: string;+}++const features: FeatureItem[] = [+ {+ title: "Visualize",+ description:+ "Transform your data into interactive graphs or trees as you type. Supports JSON, YAML, CSV, XML, and TOML.",+ icon: <FaBolt size={20} />,+ color: "yellow",+ },+ {+ title: "Convert",+ description:+ "Convert JSON to CSV, YAML to JSON, XML to JSON, and more. Our JSON converter supports multiple formats for easy data exchange.",+ icon: <TbTransformFilled size={20} />,+ color: "orange",+ },+ {+ title: "Format & Validate",+ description:+ "Format and beautify your JSON data to make it more readable. Validate JSON, YAML, and CSV.",+ icon: <MdOutlineFormatIndentIncrease size={20} />,+ color: "green",+ },+ {+ title: "Generate Code",+ description: "Generate TypeScript interface, Golang structs and more.",+ icon: <MdOutlineGeneratingTokens size={20} />,+ color: "grape",+ },+ {+ title: "JSON Schema",+ description:+ "Generate JSON Schema, create mock data, and validate JSON Schema from various data formats like JSON, YAML, XML, and CSV.",+ icon: <VscJson size={20} />,+ color: "cyan",+ },+ {+ title: "Advanced JSON Tools",+ description: "Decode JWT, randomize data, execute jq (JSON Query), json path commands.",+ icon: <FaToolbox size={20} />,+ color: "teal.5",+ },+ {+ title: "Download & Share",+ description:+ "Export image of the graph, store your files in the cloud, and share them with others.",+ icon: <IoImages size={20} />,+ color: "blue.4",+ },+ {+ title: "Secure",+ description: "Your data is never stored on our servers. Everything happens on your device.",+ icon: <IoShieldCheckmark size={20} />,+ color: "gray",+ },+];export const Features = () => {return (- <Container- pos="relative"- component="section"- id="features"- px={{- sm: rem(10),- md: rem(80),- }}- w="100%"- maw={rem(1700)}- fluid- my={150}- mt={120}- >- <Center>- <Badge variant="light" color="orange">- Features- </Badge>- </Center>- <Title- c="black"- order={2}- px="lg"- fz={{- base: 26,- xs: 32,- sm: 42,- }}- fw={600}- mb={15}- style={{ textAlign: "center" }}- >- Explore Your Data Visually- </Title>- <Text- c="gray.7"- fz={{- sm: 14,- md: 16,- }}- px="lg"- w={{- sm: "60%",- md: "40%",- }}- mx="auto"- ta="center"- mb={50}- >- All in one tool for JSON, YAML, CSV, XML, and TOML. Formatter, validator, visualizer, and- editor.- </Text>+ <Container component="section" id="features" fluid my={150}>+ <Container size="xl">+ <Center>+ <Badge variant="light" color="orange">+ Features+ </Badge>+ </Center>+ <Title+ c="black"+ order={2}+ px="lg"+ fz={{+ base: 26,+ xs: 32,+ sm: 42,+ }}+ fw={600}+ mb={15}+ style={{ textAlign: "center" }}+ >+ Explore Your Data Visually+ </Title>+ <Text+ c="gray.7"+ fz={{+ sm: 14,+ md: 16,+ }}+ px="lg"+ w={{+ sm: "60%",+ md: "40%",+ }}+ mx="auto"+ ta="center"+ mb={50}+ >+ All in one tool for JSON, YAML, CSV, XML, and TOML. Formatter, validator, visualizer, and+ editor.+ </Text>- <Grid- px={{ base: 0, xs: "xs", sm: "xl", md: 0 }}- mt={100}- mx="auto"- gutter={{- base: 20,- sm: 30,- }}- >- <Grid.Col span={{ base: 12, xs: 6, md: 4 }}>- <Paper h="100%" p="lg" radius="md" bg="gray.0" withBorder>- <Flex align="center" gap={8} mb={16}>- <ThemeIcon color="yellow" variant="light" size="lg" radius="md">- <FaBolt size={20} />- </ThemeIcon>- <Title order={3} c="gray.9" fz={{ base: 16, md: 16, lg: 22, xl: 24 }} fw={500}>- Visualize Your JSON Data- </Title>- </Flex>- <Text- c="gray.7"- fz={{- base: 12,- xs: 14,- }}- lh={1.7}- >- Transform complex JSON data into intuitive graphs and trees with JSON Crack's- powerful visualizer. Easily understand data relationships, identify patterns, and- debug issues. Our JSON graph and tree views provide unparalleled clarity for your JSON- data.- </Text>- </Paper>- </Grid.Col>- <Grid.Col span={{ base: 12, xs: 6, md: 4 }}>- <Paper h="100%" p="lg" radius="md" bg="gray.0" withBorder>- <Flex align="center" gap={8} mb={16}>- <ThemeIcon color="orange" variant="light" size="lg" radius="md">- <TbTransformFilled size={20} />- </ThemeIcon>- <Title order={3} c="gray.9" fz={{ base: 16, md: 16, lg: 22, xl: 24 }} fw={500}>- Convert and Transform- </Title>- </Flex>- <Text- c="gray.7"- fz={{- base: 12,- xs: 14,- }}- lh={1.7}- >- Seamlessly convert JSON to YAML, CSV, and other formats. Transform your data with our- flexible tools, including JSON path, JSON query (jq), and JSON schema. Edit data- directly within the graph or tree view for ultimate control.- </Text>- </Paper>- </Grid.Col>- <Grid.Col span={{ base: 12, xs: 6, md: 4 }} visibleFrom="xs">- <Paper h="100%" p="lg" radius="md" bg="gray.0" withBorder>- <Flex align="center" gap={8} mb={16}>- <ThemeIcon color="green" variant="light" size="lg" radius="md">- <FaMagic size={20} />- </ThemeIcon>- <Title order={3} c="gray.9" fz={{ base: 16, md: 16, lg: 22, xl: 24 }} fw={500}>- Validate, Format, and Beautify- </Title>- </Flex>- <Text- c="gray.7"- fz={{- base: 12,- xs: 14,- }}- lh={1.7}- >- Ensure data accuracy with our robust JSON validator. Format and beautify your JSON- code for improved readability. Our JSON formatter and beautifier make your code- cleaner and easier to maintain.- </Text>- </Paper>- </Grid.Col>- <Grid.Col span={{ base: 12, xs: 6, md: 4 }}>- <Paper h="100%" p="lg" radius="md" bg="gray.0" withBorder>- <Flex align="center" gap={8} mb={16}>- <ThemeIcon color="grape" variant="light" size="lg" radius="md">- <MdOutlineGeneratingTokens size={20} />- </ThemeIcon>- <Title order={3} c="gray.9" fz={{ base: 16, md: 16, lg: 22, xl: 24 }} fw={500}>- Generate Code and Schemas- </Title>- </Flex>- <Text- c="gray.7"- fz={{- base: 12,- xs: 14,- }}- lh={1.7}- >- Generate code snippets, including TypeScript, Golang, and more, directly from your- JSON data. Create JSON Schemas to define and validate your data structures.- </Text>- </Paper>- </Grid.Col>- <Grid.Col span={{ base: 12, xs: 6, md: 4 }}>- <Paper h="100%" p="lg" radius="md" bg="gray.0" withBorder>- <Flex align="center" gap={8} mb={16}>- <ThemeIcon color="indigo" variant="light" size="lg" radius="md">- <FaToolbox size={20} />- </ThemeIcon>- <Title order={3} c="gray.9" fz={{ base: 16, md: 16, lg: 22, xl: 24 }} fw={500}>- Advanced JSON Tools- </Title>- </Flex>- <Text- c="gray.7"- fz={{- base: 12,- xs: 14,- }}- lh={1.7}- >- Explore additional features like JWT decoding, data comparison, AI-powered filtering,- and custom themes. Download your visualized data as an image for sharing or- documentation.- </Text>- </Paper>- </Grid.Col>- <Grid.Col span={{ base: 12, xs: 6, md: 4 }} visibleFrom="xs">- <Paper h="100%" p="lg" radius="md" bg="gray.0" withBorder>- <Flex align="center" gap={8} mb={16}>- <ThemeIcon color="lime" variant="light" size="lg" radius="md">- <GrSearchAdvanced size={20} />- </ThemeIcon>- <Title order={3} c="gray.9" fz={{ base: 16, md: 16, lg: 22, xl: 24 }} fw={500}>- Edit, Search, and Analyze- </Title>- </Flex>- <Text- c="gray.7"- fz={{- base: 12,- xs: 14,- }}- lh={1.7}- >- Edit your JSON data directly within the graph or tree view. Search through your data- effortlessly using our advanced search functionality. Gain deeper insights with our- powerful JSON parser and editor.- </Text>- </Paper>- </Grid.Col>- </Grid>+ <SimpleGrid+ cols={{+ base: 1,+ xs: 2,+ md: 4,+ }}+ spacing="xl"+ >+ {features.map((feature, index) => (+ <Paper key={index} bg="gray.1" p="lg" radius="md">+ <Flex gap="sm" align="center" justify="center" direction="column">+ <ThemeIcon radius="xl" size="xl" variant="light" color={feature.color}>+ {feature.icon}+ </ThemeIcon>+ <Title ta="center" c="gray.9" order={3}>+ {feature.title}+ </Title>+ <Text fz="sm" c="gray.8">+ {feature.description}+ </Text>+ </Flex>+ </Paper>+ ))}+ </SimpleGrid>+ </Container></Container>);};diff --git a/src/containers/Landing/PremiumPreview.tsx b/src/containers/Landing/PremiumPreview.tsxindex d51679be..b54c93cb 100644--- a/src/containers/Landing/PremiumPreview.tsx+++ b/src/containers/Landing/PremiumPreview.tsx@@ -1,5 +1,15 @@import React from "react";-import { AspectRatio, Container, Flex, Paper, SegmentedControl, Stack, Title } from "@mantine/core";+import {+ Button,+ AspectRatio,+ Container,+ Flex,+ Paper,+ SegmentedControl,+ Stack,+ Title,+ Divider,+} from "@mantine/core";const features = [{@@ -74,6 +84,19 @@ export const PremiumPreview = () => {},}}/>+ <Divider my="xs" />+ <Button+ component="a"+ href="#features"+ variant="light"+ color="gray"+ fw={500}+ radius="sm"+ size="lg"+ fullWidth+ >+ Built for everyone.+ </Button></Stack><Stack w="100%"><Paperdiff --git a/src/layout/Footer.tsx b/src/layout/Footer.tsxindex 085ee5f7..212dae86 100644--- a/src/layout/Footer.tsx+++ b/src/layout/Footer.tsx@@ -29,8 +29,8 @@ export const Footer = () => {>VS Code</Anchor>- <Anchor component={Link} prefetch={false} fz="sm" c="gray.5" href="/pricing">- Pricing+ <Anchor component={Link} prefetch={false} fz="sm" c="gray.5" href="/premium">+ Premium</Anchor><Anchorhref="https://github.com/AykutSarac/jsoncrack.com"diff --git a/src/layout/Navbar.tsx b/src/layout/Navbar.tsxindex 77687f16..1dfb0b95 100644--- a/src/layout/Navbar.tsx+++ b/src/layout/Navbar.tsx@@ -115,14 +115,22 @@ export const Navbar = () => {variant="default"component="a"href="https://app.jsoncrack.com/sign-in"- radius="sm"+ radius="xl"visibleFrom="sm"size="md">Log in</Button>- <Button component="a" color="dark" href="/editor" radius="sm" visibleFrom="sm" size="md">- Editor+ <Button+ component="a"+ color="orange"+ href="/#pricing+ "+ radius="xl"+ visibleFrom="sm"+ size="md"+ >+ Start free</Button></Right></StyledNavbar>diff --git a/src/pages/premium.tsx b/src/pages/premium.tsxindex 8aad37a6..2c4f5196 100644--- a/src/pages/premium.tsx+++ b/src/pages/premium.tsx@@ -57,6 +57,72 @@ const StyledRadioCard = styled(Radio.Card)`}`;+interface FeatureItem {+ title: string;+ description: string;+ icon: React.ReactNode;+ color: string;+}++const features: FeatureItem[] = [+ {+ title: "Larger Data",+ description: "From 300KB to ~4MB upgraded data size.",+ icon: (+ <Text fz="sm" fw="500">+ 4 MB+ </Text>+ ),+ color: "blue.3",+ },+ {+ title: "Compact Design",+ description:+ "50% less graph size. Get rid of the redundant data and nodes, focus on what's important.",+ icon: <MdOutlinePhotoSizeSelectSmall size={30} />,+ color: "violet.1",+ },+ {+ title: "Faster",+ description:+ "Load data faster. Navigate faster. Search faster. Everything is faster than ever.",+ icon: <MdSpeed size={30} />,+ color: "green.3",+ },+ {+ title: "Compare",+ description: "Compare two data, highlight the differences directly on the graphs.",+ icon: <MdCompare size={30} />,+ color: "red.3",+ },+ {+ title: "Customize",+ description: "Customize the graph's colors to align with your brand or personal preferences.",+ icon: <MdPalette size={30} />,+ color: "yellow.2",+ },+ {+ title: "Edit Directly",+ description:+ "Modify your data directly on the graph. No more switching between the editor and the graph.",+ icon: <IoSparkles size={22} />,+ color: "violet.3",+ },+ {+ title: "Tabs",+ description:+ "Open multiple tabs, navigate between them easily. Save up to 200 documents to the cloud.",+ icon: <GrMultiple size={22} />,+ color: "grape.2",+ },+ {+ title: "AI-Powered",+ description: "Ask it to translate your fields, filter out by age or name includes, and more.",+ icon: <RiRobot2Line size={22} />,+ color: "gray.1",+ },+];+const Premium = () => {const [plan, setPlan] = React.useState("monthly");@@ -89,7 +155,7 @@ const Premium = () => {<Containerpos="relative"pt={100}- pb={200}+ pb={220}fluidstyle={{background:@@ -102,10 +168,10 @@ const Premium = () => {c="white"fz={{base: 38,- xs: 50,+ xs: 40,}}>- More than just a JSON Viewer.+ Take your data to the next level.</Title><Textc="gray.3"@@ -143,7 +209,7 @@ const Premium = () => {</Box></Container><PremiumPreview />- <Container fluid bg="dark" my={120} py={40}>+ <Container component="section" id="features" fluid bg="dark" my={120} py={40}><Container size="xl"><Titlefz={{@@ -166,115 +232,19 @@ const Premium = () => {}}spacing="xl">- <Paper bg="gray.8" p="lg" radius="md">- <Flex gap="sm" align="center" justify="center" direction="column">- <ThemeIcon radius="xl" size="xl" variant="light" color="blue.3">- <Text fz="sm" fw={500}>- 4 MB- </Text>- </ThemeIcon>- <Title ta="center" c="white" order={3}>- Larger Data- </Title>- <Text c="gray.3">From 300KB to ~4MB upgraded data size.</Text>- </Flex>- </Paper>- <Paper bg="gray.8" p="lg" radius="md">- <Flex gap="sm" align="center" justify="center" direction="column">- <ThemeIcon radius="xl" size="xl" variant="light" color="violet.1">- <MdOutlinePhotoSizeSelectSmall size="30" />- </ThemeIcon>- <Title ta="center" c="white" order={3}>- Compact Design- </Title>- <Text c="gray.3">- 50% less graph size. Get rid of the redundant data and nodes, focus on- what's important.- </Text>- </Flex>- </Paper>- <Paper bg="gray.8" p="lg" radius="md">- <Flex gap="sm" align="center" justify="center" direction="column">- <ThemeIcon radius="xl" size="xl" variant="light" color="green.3">- <MdSpeed size="30" />- </ThemeIcon>- <Title ta="center" c="white" order={3}>- Faster- </Title>- <Text c="gray.3">- Load data faster. Navigate faster. Search faster. Everything is faster than- ever.- </Text>- </Flex>- </Paper>- <Paper bg="gray.8" p="lg" radius="md">- <Flex gap="sm" align="center" justify="center" direction="column">- <ThemeIcon radius="xl" size="xl" variant="light" color="orange.2">- <MdCompare size="30" />- </ThemeIcon>- <Title ta="center" c="white" order={3}>- Compare- </Title>- <Text c="gray.3">- Compare two data, highlight the differences directly on the graphs.- </Text>- </Flex>- </Paper>- <Paper bg="gray.8" p="lg" radius="md">- <Flex gap="sm" align="center" justify="center" direction="column">- <ThemeIcon radius="xl" size="xl" variant="light" color="violet.3">- <IoSparkles size="22" />- </ThemeIcon>- <Title ta="center" c="white" order={3}>- Edit Directly- </Title>- <Text c="gray.3">- Modify your data directly on the graph. No more switching between the editor and- the graph.- </Text>- </Flex>- </Paper>- <Paper bg="gray.8" p="lg" radius="md">- <Flex gap="sm" align="center" justify="center" direction="column">- <ThemeIcon radius="xl" size="xl" variant="light" color="yellow.2">- <MdPalette size="30" />- </ThemeIcon>- <Title ta="center" c="white" order={3}>- Customize- </Title>- <Text c="gray.3">- Customize the graph's colors to align with your brand or personal- preferences.- </Text>- </Flex>- </Paper>- <Paper bg="gray.8" p="lg" radius="md">- <Flex gap="sm" align="center" justify="center" direction="column">- <ThemeIcon radius="xl" size="xl" variant="light" color="grape.2">- <GrMultiple size="22" />- </ThemeIcon>- <Title ta="center" c="white" order={3}>- Tabs- </Title>- <Text c="gray.3">- Open multiple tabs, navigate between them easily. Save up to 200 documents to- the cloud.- </Text>- </Flex>- </Paper>- <Paper bg="gray.8" p="lg" radius="md">- <Flex gap="sm" align="center" justify="center" direction="column">- <ThemeIcon radius="xl" size="xl" variant="light" color="gray.1">- <RiRobot2Line size="22" />- </ThemeIcon>- <Title ta="center" c="white" order={3}>- AI-Powered- </Title>- <Text c="gray.3">- Ask it to translate your fields, filter out by age or name includes, and more.- </Text>- </Flex>- </Paper>+ {features.map((feature, index) => (+ <Paper key={index} bg="gray.8" p="lg" radius="md">+ <Flex gap="sm" align="center" justify="center" direction="column">+ <ThemeIcon radius="xl" size="xl" variant="light" color={feature.color}>+ {feature.icon}+ </ThemeIcon>+ <Title ta="center" c="white" order={3}>+ {feature.title}+ </Title>+ <Text c="gray.3">{feature.description}</Text>+ </Flex>+ </Paper>+ ))}</SimpleGrid></Container></Container>