Skip to content

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

update landing

AykutSarac69f8bf97d45f
diff --git a/src/containers/Landing/FAQ.tsx b/src/containers/Landing/FAQ.tsx
index 62791b06..5e395dac 100644
--- a/src/containers/Landing/FAQ.tsx
+++ b/src/containers/Landing/FAQ.tsx
@@ -60,7 +60,7 @@ export const FAQ = () => {
}}
fw={600}
mb={60}
- style={{ textAlign: "center" }}
+ ta="center"
>
Frequently Asked Questions
</Title>
diff --git a/src/containers/Landing/HeroPreview.tsx b/src/containers/Landing/HeroPreview.tsx
index f829d47d..3d28a6f8 100644
--- a/src/containers/Landing/HeroPreview.tsx
+++ b/src/containers/Landing/HeroPreview.tsx
@@ -8,6 +8,33 @@ const StyledPreviewWrapper = styled.div`
padding: 5rem 0;
`;
+const features = [
+ {
+ 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",
+ },
+];
+
export const HeroPreview = () => {
const [selectedFeature, setSelectedFeature] = React.useState("1");
@@ -20,37 +47,15 @@ export const HeroPreview = () => {
xs: "row",
}}
mx="auto"
- maw="85%"
+ maw={{
+ base: "90%",
+ xs: "85%",
+ }}
justify="center"
>
<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",
- },
- ]}
+ data={features}
value={selectedFeature}
onChange={setSelectedFeature}
orientation="vertical"
diff --git a/src/containers/Landing/HeroSection.tsx b/src/containers/Landing/HeroSection.tsx
index 2d5b0acf..e693a7ba 100644
--- a/src/containers/Landing/HeroSection.tsx
+++ b/src/containers/Landing/HeroSection.tsx
@@ -43,6 +43,24 @@ const StyledHeroSection = styled.main`
}
`;
+const StyledHeroSectionBody = styled.div`
+ position: relative;
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: center;
+ padding: 6rem 10% 3rem;
+ overflow: hidden;
+ text-align: center;
+ gap: 60px;
+ min-height: 40vh;
+
+ @media only screen and (max-width: 768px) {
+ padding: 6em 16px;
+ margin-top: 10vh;
+ }
+`;
+
const StyledHeroTitle = styled.h1`
position: relative;
font-size: 2.2rem;
@@ -95,27 +113,9 @@ const StyledHeroText = styled.p`
}
`;
-const StyledHeroSectionBody = styled.div`
- position: relative;
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: center;
- padding: 7rem 10%;
- overflow: hidden;
- text-align: center;
- gap: 60px;
- min-height: 40vh;
-
- @media only screen and (max-width: 768px) {
- padding: 6em 16px;
- margin-top: 10vh;
- }
-`;
-
export const HeroSection = () => {
return (
- <StyledHeroSection id="hero-section">
+ <StyledHeroSection>
<StyledHeroSectionBody>
<Stack flex="1" miw={250} mx="auto" align="center">
<Badge
diff --git a/src/containers/Landing/LovedBy.tsx b/src/containers/Landing/LovedBy.tsx
index 4e18eaec..f92e38dc 100644
--- a/src/containers/Landing/LovedBy.tsx
+++ b/src/containers/Landing/LovedBy.tsx
@@ -1,23 +1,21 @@
import React from "react";
-import Link from "next/link";
-import { Avatar, Container, Flex, Paper, Stack, Text, Title } from "@mantine/core";
+import { Container, Flex, Text } from "@mantine/core";
import styled from "styled-components";
import CountUp from "react-countup";
-import { FaGithub, FaHackerNews, FaHeart, FaProductHunt, FaTwitter } from "react-icons/fa6";
-import { VscVerifiedFilled } from "react-icons/vsc";
+import { FaGithub, FaHackerNews, FaProductHunt } from "react-icons/fa6";
interface LovedByProps {
stars: number;
}
-interface TweetCardProps {
- username: string;
- handle: string;
- profileImage: string;
- tweet: string;
- tweetId: string;
- verified?: "company" | "individual";
-}
+// interface TweetCardProps {
+// username: string;
+// handle: string;
+// profileImage: string;
+// tweet: string;
+// tweetId: string;
+// verified?: "company" | "individual";
+// }
const StyledFeaturedItem = styled.a`
display: flex;
@@ -70,76 +68,50 @@ const Featured = ({ stars }: LovedByProps) => {
);
};
-const TweetCard = ({
- profileImage,
- handle,
- tweetId,
- tweet,
- username,
- verified,
-}: TweetCardProps) => {
- return (
- <Paper p="sm" w="fit-content" withBorder radius="md" bg="gray.0" miw={300} maw={450}>
- <Flex justify="space-between">
- <Link href={`https://twitter.com/${handle}`} target="_blank">
- <Flex align="flex-start" gap="sm" direction="row">
- <Avatar src={profileImage} w={40} h={40} alt={handle} />
- <Stack gap={0}>
- <Flex align="center" gap={2}>
- <Text c="dark" fz="sm" fw={500}>
- {username}
- </Text>
- {verified && (
- <VscVerifiedFilled color={verified === "company" ? "#ECCC4B" : "#1D9BF0"} />
- )}
- </Flex>
- <Text fz="xs" c="gray.6">
- @{handle}
- </Text>
- </Stack>
- </Flex>
- </Link>
- <Link title="twitter" target="_blank" href={`https://x.com/${handle}/status/${tweetId}`}>
- <FaTwitter color="#1EA1F1" size={20} />
- </Link>
- </Flex>
- <Text fz="sm" c="gray.8" mt="lg">
- {tweet}
- </Text>
- </Paper>
- );
-};
+// const TweetCard = ({
+// profileImage,
+// handle,
+// tweetId,
+// tweet,
+// username,
+// verified,
+// }: TweetCardProps) => {
+// return (
+// <Paper p="sm" w="fit-content" withBorder radius="md" bg="gray.0" miw={300} maw={450}>
+// <Flex justify="space-between">
+// <Link href={`https://twitter.com/${handle}`} target="_blank">
+// <Flex align="flex-start" gap="sm" direction="row">
+// <Avatar src={profileImage} w={40} h={40} alt={handle} />
+// <Stack gap={0}>
+// <Flex align="center" gap={2}>
+// <Text c="dark" fz="sm" fw={500}>
+// {username}
+// </Text>
+// {verified && (
+// <VscVerifiedFilled color={verified === "company" ? "#ECCC4B" : "#1D9BF0"} />
+// )}
+// </Flex>
+// <Text fz="xs" c="gray.6">
+// @{handle}
+// </Text>
+// </Stack>
+// </Flex>
+// </Link>
+// <Link title="twitter" target="_blank" href={`https://x.com/${handle}/status/${tweetId}`}>
+// <FaTwitter color="#1EA1F1" size={20} />
+// </Link>
+// </Flex>
+// <Text fz="sm" c="gray.8" mt="lg">
+// {tweet}
+// </Text>
+// </Paper>
+// );
+// };
export const LovedBy = ({ stars }: LovedByProps) => {
return (
- <Container pos="relative" mx="auto" p={30} my={100} mt={150} fluid>
- <Title
- c="black"
- order={2}
- px="lg"
- fz={{
- base: 24,
- xs: 30,
- sm: 36,
- }}
- fw={700}
- mb={30}
- ta="center"
- style={{ textAlign: "center" }}
- >
- People <FaHeart color="red" /> JSON Crack
- </Title>
+ <Container pos="relative" mx="auto" p={30} fluid>
<Featured stars={stars} />
- <Flex justify="center" wrap="wrap" gap="md">
- <TweetCard
- username="GitHub"
- handle="github"
- profileImage="https://pbs.twimg.com/profile_images/1633247750010830848/8zfRrYjA_400x400.png"
- tweetId="1519363257794015233"
- tweet="Looking to understand or explore some JSON? Just paste or upload to visualize it as a graph with JSON Crack 😍"
- verified="company"
- />
- </Flex>
</Container>
);
};
diff --git a/src/containers/Landing/PremiumVsFree.tsx b/src/containers/Landing/PremiumVsFree.tsx
index 0808319f..d7c87b0d 100644
--- a/src/containers/Landing/PremiumVsFree.tsx
+++ b/src/containers/Landing/PremiumVsFree.tsx
@@ -1,17 +1,13 @@
import React from "react";
-import { Title, Overlay, Paper, rem, Image, Text, Container } from "@mantine/core";
+import { Title, Overlay, Image, Container, Flex, Box, List, Button } from "@mantine/core";
import styled from "styled-components";
import { ReactCompareSlider, ReactCompareSliderHandle } from "react-compare-slider";
const StyledImageWrapper = styled.div`
- max-width: 85%;
- margin: 0 auto;
+ flex: 2;
+ max-width: 1400px;
+ width: 100%;
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;
- }
`;
export const PremiumVsFree = () => {
@@ -32,102 +28,115 @@ export const PremiumVsFree = () => {
};
return (
- <Container pos="relative" component="section" id="premium" fluid my={120}>
- <Paper
- pb={rem(260)}
- px={{
- sm: rem(10),
- md: rem(80),
- }}
- pt={rem(20)}
- maw={{
- xs: "95%",
+ <Container id="premium" component="section" w={{ base: "100%", xs: "80%" }} fluid my={120}>
+ <Title
+ pos="relative"
+ c="black"
+ order={2}
+ fz={{
+ base: 24,
+ xs: 30,
+ sm: 36,
}}
- radius="xl"
- mx="auto"
- mb="-18rem"
- style={{
- textAlign: "center",
- background: "linear-gradient(rgb(207, 116, 3) 40%, rgb(255, 255, 255) 90%)",
+ fw={600}
+ mb={20}
+ >
+ Premium vs Free
+ <Box pos="absolute" mt="-8px" maw="150px" w="100%">
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1418 125" fill="#000">
+ <path d="M1412.29 72.17c-11.04-5.78-20.07-14.33-85.46-25.24-22.37-3.63-44.69-7.56-67.07-11.04-167.11-22.06-181.65-21.24-304.94-30.56C888.78 1.39 822.57 1.1 756.44 0c-46.63-.11-93.27 1.56-139.89 2.5C365.5 13.55 452.86 7.68 277.94 23.15 202.57 33.32 127.38 45.01 52.07 55.69c-11.23 2.41-22.63 4.17-33.71 7.22C6.1 66.33 5.64 66.19 3.89 67.79c-7.99 5.78-2.98 20.14 8.72 17.5 33.99-9.47 32.28-8.57 178.06-29.66 4.26 4.48 7.29 3.38 18.42 3.11 13.19-.32 26.38-.53 39.56-1.12 53.51-3.81 106.88-9.62 160.36-13.95 18.41-1.3 36.8-3.12 55.21-4.7 23.21-1.16 46.43-2.29 69.65-3.4 120.28-2.16 85.46-3.13 234.65-1.52 23.42.99 1.57-.18 125.72 6.9 96.61 8.88 200.92 27.94 295.42 46.12 40.87 7.91 116.67 23.2 156.31 36.78 3.81 1.05 8.28-.27 10.51-3.58 3.17-3.72 2.66-9.7-.78-13.13-3.25-3.12-8.14-3.44-12.18-5.08-17.89-5.85-44.19-12.09-63.67-16.56l26.16 3.28c23.02 3.13 46.28 3.92 69.34 6.75 10.8.96 25.43 1.81 34.34-4.39 2.26-1.54 4.86-2.75 6.21-5.27 2.76-4.59 1.13-11.06-3.59-13.68ZM925.4 23.77c37.64 1.4 153.99 10.85 196.64 14.94 45.95 5.51 91.89 11.03 137.76 17.19 24.25 4.77 74.13 11.21 101.72 18.14-11.87-1.15-23.77-1.97-35.65-3.06-133.46-15.9-266.8-33.02-400.47-47.21Z"></path>
+ </svg>
+ </Box>
+ </Title>
+ <Flex
+ gap="xl"
+ direction={{
+ base: "column",
+ md: "row",
}}
>
- <Title
- c="white"
- order={2}
- fz={{
- base: 24,
- xs: 30,
- sm: 36,
- }}
- fw={700}
- mb="md"
- >
- Premium vs Free
- </Title>
- <Text
- mx="auto"
- fz={{
- base: 14,
- xs: 16,
- }}
- maw={{
- base: "60%",
- sm: "50%",
- }}
- c="gray.2"
- mb={60}
- >
- Designed to help you navigate through your data with ease. <br /> Smaller, faster, and
- more efficient than ever before.
- </Text>
- </Paper>
+ <Box flex="1.3">
+ We developed an entirely new version of JSON Crack, packed with numerous features and
+ enhancements.
+ <List mt="md" visibleFrom="xs">
+ <List.Item>Supports larger data (~4 MB)</List.Item>
+ <List.Item>Customizable color options</List.Item>
+ <List.Item>Data comparison feature</List.Item>
+ <List.Item>Focus to node from editor cursor</List.Item>
+ <List.Item>Edit directly on graphs</List.Item>
+ <List.Item>AI-powered assistant</List.Item>
+ <List.Item>Beautiful UI and very smooth navigation</List.Item>
+ </List>
+ <Button
+ display="block"
+ w="fit-content"
+ miw={200}
+ variant="filled"
+ color="orange"
+ mt="md"
+ size="md"
+ component="a"
+ href="/#preview"
+ >
+ See in action!
+ </Button>
+ </Box>
- <StyledImageWrapper>
- <ReactCompareSlider
- onPointerDown={() => setLabelOpacity(0)}
- onPointerUp={() => setLabelOpacity(1)}
- style={{
- border: "1px solid #d5d5d5",
- borderRadius: 12,
- }}
- itemOne={<Image loading="lazy" src="./assets/preview/1.webp" alt="Pro" />}
- itemTwo={
- <>
- <Overlay color="#000" backgroundOpacity={0.1} />
- <Image loading="lazy" src="./assets/preview/free.webp" alt="Free" />
- </>
- }
- handle={
- <div
- style={{
- display: "flex",
- alignItems: "center",
- height: "100%",
- }}
- >
- <ReactCompareSliderHandle />
- <div
- style={{
- ...labelStyle,
- translate: "-100% 0",
- left: 0,
- }}
- >
- Premium
- </div>
+ <StyledImageWrapper>
+ <ReactCompareSlider
+ onPointerDown={() => setLabelOpacity(0)}
+ onPointerUp={() => setLabelOpacity(1)}
+ style={{
+ borderRadius: 10,
+ overflow: "hidden",
+ border: "1px solid #c1c1c1",
+ outline: "1px solid #c1c1c1",
+ outlineOffset: "6px",
+ }}
+ itemOne={<Image loading="lazy" src="./assets/preview/1.webp" alt="Pro" />}
+ itemTwo={
+ <>
+ <Overlay color="#000" backgroundOpacity={0.1} />
+ <Image
+ loading="lazy"
+ fetchPriority="low"
+ src="./assets/preview/free.webp"
+ alt="Free"
+ />
+ </>
+ }
+ handle={
<div
style={{
- ...labelStyle,
- translate: "100% 0",
- right: 0,
+ display: "flex",
+ alignItems: "center",
+ height: "100%",
}}
>
- Free
+ <ReactCompareSliderHandle />
+ <div
+ style={{
+ ...labelStyle,
+ translate: "-100% 0",
+ left: 0,
+ }}
+ >
+ Premium
+ </div>
+ <div
+ style={{
+ ...labelStyle,
+ translate: "100% 0",
+ right: 0,
+ }}
+ >
+ Free
+ </div>
</div>
- </div>
- }
- />
- </StyledImageWrapper>
+ }
+ />
+ </StyledImageWrapper>
+ </Flex>
</Container>
);
};
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 42063988..0091f40f 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -22,10 +22,10 @@ export const HomePage = ({ stars }: InferGetStaticPropsType<typeof getStaticProp
<link rel="canonical" href="https://jsoncrack.com" />
</Head>
<HeroSection />
+ <LovedBy stars={stars} />
<HeroPreview />
<Features />
<PremiumVsFree />
- <LovedBy stars={stars} />
<Pricing />
<FAQ />
</Layout>