✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
feat: update landing
AykutSaraca81c1d25bca2
diff --git a/public/assets/preview/1.webp b/public/assets/preview/1.webpnew file mode 100644index 00000000..0143b508Binary 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..2e299263Binary 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..40de0f6fBinary 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..3d949fd6Binary 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..6b151e5dBinary files /dev/null and b/public/assets/preview/5.webp differdiff --git a/public/assets/preview/6.webp b/public/assets/preview/6.webpnew file mode 100644index 00000000..80e53847Binary files /dev/null and b/public/assets/preview/6.webp differdiff --git a/public/assets/preview/7.webp b/public/assets/preview/7.webpnew file mode 100644index 00000000..70ea5590Binary files /dev/null and b/public/assets/preview/7.webp differdiff --git a/public/assets/preview/8.webp b/public/assets/preview/8.webpnew file mode 100644index 00000000..b33d2374Binary files /dev/null and b/public/assets/preview/8.webp differdiff --git a/public/assets/preview/free.webp b/public/assets/preview/free.webpnew file mode 100644index 00000000..cd7c8283Binary files /dev/null and b/public/assets/preview/free.webp differdiff --git a/src/containers/Landing/HeroPreview.tsx b/src/containers/Landing/HeroPreview.tsxindex dcaad667..b787a0c9 100644--- a/src/containers/Landing/HeroPreview.tsx+++ b/src/containers/Landing/HeroPreview.tsx@@ -1,29 +1,81 @@import React from "react";-import { Image } from "@mantine/core";+import { Flex, Image, Paper, SegmentedControl, Stack } from "@mantine/core";import styled from "styled-components";+import { images } from "src/constants/landing";-const StyledImageWrapper = styled.div`- max-width: 85%;+const StyledPreviewWrapper = styled.div`margin: 0 auto;- filter: drop-shadow(0px -4px 10px rgba(70, 70, 70, 0.25));-- @media only screen and (max-width: 768px) {- max-width: 85%;- margin: 0 auto;- }+ position: relative;`;export const HeroPreview = () => {+ const [selectedFeature, setSelectedFeature] = React.useState("1");+return (- <StyledImageWrapper id="preview">- <Image- loading="eager"- src="./assets/compare/free.webp"- alt="JSON Crack Preview"- w="100%"- h="100%"- radius="md"- />- </StyledImageWrapper>+ <StyledPreviewWrapper id="preview">+ <Flex gap="lg" mx="auto" w="85%">+ <Stack>+ <SegmentedControl+ data={[+ {+ label: "Fast & Compact",+ value: "1",+ },+ {+ label: "Search",+ value: "2",+ },+ {+ label: "Edit",+ value: "3",+ },+ {+ label: "Customize",+ value: "5",+ },+ {+ label: "Compare",+ value: "6",+ },+ {+ label: "AI-Powered Assistant",+ value: "7",+ },+ ]}+ value={selectedFeature}+ onChange={setSelectedFeature}+ orientation="vertical"+ withItemsBorders={false}+ color="indigo"+ bg="transparent"+ size="lg"+ styles={{+ control: {+ background: "#67676714",+ borderRadius: "4px",+ },+ root: {+ gap: "24px",+ },+ }}+ />+ </Stack>+ <Paper+ bg="transparent"+ w="100%"+ p={0}+ radius="md"+ style={{ overflow: "hidden", border: "1px solid #d5d5d5" }}+ shadow="md"+ >+ <Image+ src={`./assets/preview/${selectedFeature}.webp`}+ loading={selectedFeature === "1" ? "eager" : "lazy"}+ alt={images[+selectedFeature - 1].alt}+ w="100%"+ />+ </Paper>+ </Flex>+ </StyledPreviewWrapper>);};diff --git a/src/containers/Landing/HeroSection.tsx b/src/containers/Landing/HeroSection.tsxindex cb1f2774..de2d40ed 100644--- a/src/containers/Landing/HeroSection.tsx+++ b/src/containers/Landing/HeroSection.tsx@@ -103,7 +103,7 @@ export const HeroSection = () => {<StyledHeroSection id="hero-section"><StyledHeroSectionBody><Stack flex="1" miw={250} mx="auto" align="center">- <StyledHeroTitle>Transform your data into interactive graphs</StyledHeroTitle>+ <StyledHeroTitle>Transform data into interactive graphs</StyledHeroTitle><StyledHeroText>Powerful editor to explore data visually.</StyledHeroText><Flex gap="md"><Badge size="sm" color="dark" autoContrast radius="sm" variant="light">@@ -143,7 +143,7 @@ export const HeroSection = () => {radius="md"fw={600}>- Explore Premium+ Premium vs Free</Button></Flex></Stack>diff --git a/src/containers/Landing/Outro.tsx b/src/containers/Landing/Outro.tsxindex c3c89e0e..0379b287 100644--- a/src/containers/Landing/Outro.tsx+++ b/src/containers/Landing/Outro.tsx@@ -5,13 +5,13 @@ import { IoArrowForward } from "react-icons/io5";export const Outro = () => {return (- <Stack align="center" my={150}>+ <Stack align="center" mt={150}><Titlefz={{sm: 32,md: 36,}}- c="gray.7"+ c="gray.9"lts={-1}order={3}ta="center"diff --git a/src/containers/Landing/PremiumVsFree.tsx b/src/containers/Landing/PremiumVsFree.tsxindex 18c04868..f0b7a937 100644--- a/src/containers/Landing/PremiumVsFree.tsx+++ b/src/containers/Landing/PremiumVsFree.tsx@@ -1,23 +1,20 @@import React from "react";-import dynamic from "next/dynamic";-import { Title, Overlay, Paper, rem, Grid, Flex, Image, Text, Container } from "@mantine/core";-import { Carousel } from "@mantine/carousel";+import {+ Title,+ Overlay,+ Paper,+ rem,+ Grid,+ Flex,+ Image,+ Text,+ Container,+ Divider,+} from "@mantine/core";import styled from "styled-components";import { ReactCompareSlider, ReactCompareSliderHandle } from "react-compare-slider";-import {- FaArrowLeft,- FaArrowRight,- FaBolt,- FaExpand,- FaLifeRing,- FaParachuteBox,- FaShapes,-} from "react-icons/fa";+import { FaBolt, FaExpand, FaLifeRing, FaParachuteBox, FaShapes } from "react-icons/fa";import { FaShieldHalved } from "react-icons/fa6";-import { presets } from "react-text-transition";-import { images } from "src/constants/landing";--const TextTransition = dynamic(() => import("react-text-transition"), { ssr: false });const StyledImageWrapper = styled.div`max-width: 85%;@@ -31,7 +28,6 @@ const StyledImageWrapper = styled.div``;export const PremiumVsFree = () => {- const [currentSlide, setCurrentSlide] = React.useState(0);const [labelOpacity, setLabelOpacity] = React.useState(1);const labelStyle = {fontSize: "1rem",@@ -50,19 +46,50 @@ export const PremiumVsFree = () => {return (<Container component="section" id="premium" fluid my={150}>- <Title- c="black"- order={2}- fz={{- sm: 32,- md: 42,+ <Paper+ pb={rem(260)}+ px={{+ sm: rem(10),+ md: rem(80),+ }}+ pt={rem(20)}+ maw={{+ xs: "95%",+ }}+ radius="xl"+ mx="auto"+ mb="-16.5rem"+ style={{+ textAlign: "center",+ background: "linear-gradient(rgb(7, 5, 90) 40%, rgb(255, 255, 255) 90%)",}}- fw={600}- mb={80}- ta="center">- Premium vs Free- </Title>+ <Title+ c="white"+ order={2}+ fz={{+ sm: 32,+ md: 42,+ }}+ fw={700}+ mb="md"+ >+ Premium vs Free+ </Title>+ <Text+ mx="auto"+ fz={{+ sm: 12,+ md: 16,+ }}+ maw="60%"+ c="gray.4"+ 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>+ </Paper><StyledImageWrapper><ReactCompareSlider@@ -72,11 +99,11 @@ export const PremiumVsFree = () => {border: "1px solid #d5d5d5",borderRadius: 12,}}- itemOne={<Image loading="lazy" src="./assets/compare/pro.webp" alt="Pro" />}+ itemOne={<Image loading="lazy" src="./assets/preview/1.webp" alt="Pro" />}itemTwo={<><Overlay color="#000" backgroundOpacity={0.1} />- <Image loading="lazy" src="./assets/compare/free.webp" alt="Free" />+ <Image loading="lazy" src="./assets/preview/free.webp" alt="Free" /></>}handle={@@ -111,51 +138,6 @@ export const PremiumVsFree = () => {/></StyledImageWrapper>- <Paper- pt={rem(300)}- px={{- sm: rem(10),- md: rem(80),- }}- pb={rem(20)}- maw={{- xs: "95%",- }}- radius="xl"- mx="auto"- mt="-16.5rem"- style={{- textAlign: "center",- background: "linear-gradient(rgb(255, 255, 255) 0%, rgb(7, 5, 90) 60%)",- }}- >- <Title- c="white"- order={2}- fz={{- sm: 32,- md: 42,- }}- fw={700}- mb="md"- >- Optimized for user experience- </Title>- <Text- mx="auto"- fz={{- sm: 12,- md: 16,- }}- maw="80%"- c="gray.4"- 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>- </Paper>-<Gridw={{ sm: "100%", md: "80%" }}px={{ sm: "xl", md: 0 }}@@ -237,69 +219,7 @@ export const PremiumVsFree = () => {</Text></Grid.Col></Grid>-- <Paper- w="95%"- mt={100}- bg="transparent"- mx="auto"- radius="md"- style={{ overflow: "hidden" }}- visibleFrom="xs"- >- <Carousel- onSlideChange={setCurrentSlide}- nextControlIcon={<FaArrowRight />}- previousControlIcon={<FaArrowLeft />}- nextControlProps={{- style: {- width: 40,- height: 40,- background: "#5199FF",- border: "1px solid #006aff",- color: "white",- opacity: 1,- },- }}- previousControlProps={{- style: {- width: 40,- height: 40,- background: "#5199FF",- border: "1px solid #006aff",- color: "white",- opacity: 1,- },- }}- bg="white"- slideGap="md"- slideSize="55%"- height="100%"- loop- >- {images.map(image => (- <Carousel.Slide key={image.id}>- <Image- src={`./assets/preview/${image.id}.png`}- alt={image.alt}- loading="lazy"- radius="md"- style={{- border: "1px solid #d5d5d5",- }}- />- </Carousel.Slide>- ))}- </Carousel>- <Text c="black" mt="xs" fz="md" fw={500} bg="gray.1" size="lg" px="md" py="sm">- <TextTransition- springConfig={presets.wobbly}- style={{ justifyContent: "center", textAlign: "center" }}- >- {images[currentSlide].alt}- </TextTransition>- </Text>- </Paper>+ <Divider mt={100} w="80%" mx="auto" /></Container>);};diff --git a/src/layout/Footer.tsx b/src/layout/Footer.tsxindex 3f74839e..a19e68a2 100644--- a/src/layout/Footer.tsx+++ b/src/layout/Footer.tsx@@ -8,7 +8,7 @@ import { JSONCrackLogo } from "./JsonCrackLogo";export const Footer = () => {return (- <Container mt={150}>+ <Container mt={100}><Divider my={60} color="gray.3" /><Flex justify="space-between"><Stack gap={4} visibleFrom="sm">diff --git a/src/pages/index.tsx b/src/pages/index.tsxindex f0d8686f..f0586f0c 100644--- a/src/pages/index.tsx+++ b/src/pages/index.tsx@@ -4,7 +4,6 @@ import "@mantine/carousel/styles.css";import styled from "styled-components";import { metaDescription } from "src/constants/landing";import { FAQ } from "src/containers/Landing/FAQ";-import { Features } from "src/containers/Landing/Features";import { HeroPreview } from "src/containers/Landing/HeroPreview";import { HeroSection } from "src/containers/Landing/HeroSection";import { Outro } from "src/containers/Landing/Outro";@@ -38,7 +37,6 @@ export const HomePage = () => {<HeroSection /><HeroPreview /></StyledSectionWrapper>- <Features /><PremiumVsFree /><Pricing /><FAQ />diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsxindex a96ef8c1..ca1e9fd8 100644--- a/src/pages/pricing.tsx+++ b/src/pages/pricing.tsx@@ -51,7 +51,7 @@ const StyledPaper = styled(Paper)<{ $highlight?: boolean } & any>`content: "Recommended";background: #28c417;position: absolute;- transform: translate(-27px, -60px);+ transform: translate(-27px, -61px);font-weight: 500;color: white;padding: 6px 8px;@@ -259,7 +259,7 @@ export const PricingCards = () => {Get Started</Button><Text mt="xs" fz="xs" c="dimmed">- Designed for individuals who works with data regularly and wants to save time.+ Advanced features, better performance and optimized user interface.</Text><Flex direction="column" justify="space-between"><List@@ -295,7 +295,7 @@ export const PricingCards = () => {<List.Item><Tooltipcolor="blue"- label="Load data 5x faster and 50% smaller graph size. Only see what matters."+ label="Load data 5x faster and 50% smaller graph size."maw={350}multilinewithArrow@@ -322,7 +322,7 @@ export const PricingCards = () => {<List.Item><Tooltipcolor="blue"- label="Edit nodes directly on the graph reflecting to the data"+ label="Click on a node at graph to update data on editor."maw={350}multilinewithArrow@@ -337,7 +337,7 @@ export const PricingCards = () => {textUnderlineOffset: "2px",}}>- Edit Nodes+ Update Data on Graphs</Text></Tooltip></List.Item>@@ -388,8 +388,7 @@ export const PricingCards = () => {Go to Editor</Button><Text mt="xs" fz="xs" c="dimmed">- For individuals who occasionally work with data and doesn't require advanced- features.+ Basic version of the editor with limited features.</Text><Flex direction="column" justify="space-between"><List