Skip to content

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

theme & landing improvements

AykutSarac84cb7c373014
diff --git a/src/containers/Landing/HeroSection.tsx b/src/containers/Landing/HeroSection.tsx
index ddac2272..c6849054 100644
--- a/src/containers/Landing/HeroSection.tsx
+++ b/src/containers/Landing/HeroSection.tsx
@@ -7,11 +7,12 @@ import { gaEvent } from "src/lib/utils/gaEvent";
const StyledHeroTitle = styled.h1`
position: relative;
font-size: 2rem;
- font-weight: 500;
+ font-weight: 600;
display: inline;
color: #272727;
width: fit-content;
line-height: 1.2;
+ letter-spacing: -2px;
@keyframes textShine {
0% {
@@ -23,18 +24,16 @@ const StyledHeroTitle = styled.h1`
}
@media only screen and (min-width: 576px) {
- font-size: 3.8rem;
- letter-spacing: -2px;
+ font-size: 3.2rem;
}
@media only screen and (min-width: 992px) {
- letter-spacing: -4px;
+ max-width: 75%;
font-size: 3.6rem;
}
@media only screen and (min-width: 1400px) {
- max-width: 80%;
- letter-spacing: -4px;
+ max-width: 65%;
font-size: 4rem;
}
`;
@@ -58,22 +57,22 @@ const StyledHeroText = styled.p`
}
`;
-const StyledHeroSection = styled.section`
+const StyledHeroSection = styled.main`
position: relative;
- &:before {
+ /* &:before {
position: absolute;
content: "";
width: 100%;
height: 100%;
- background-color: #ffffff;
- background-image: radial-gradient(#e3e1e1 1px, #ffffff 1px);
- background-size: 10px 10px;
+ background-color: transparent;
+ background-image: radial-gradient(#0000002a 1px, transparent 1px);
+ background-size: 15px 15px;
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: 1240px) {
flex-direction: column;
@@ -86,13 +85,13 @@ const StyledHeroSectionBody = styled.div`
flex-wrap: wrap;
align-items: center;
justify-content: center;
- padding: 4em 10%;
+ padding: 9rem 10%;
overflow: hidden;
backdrop-filter: blur(1.2px);
-webkit-backdrop-filter: blur(1.2px);
text-align: center;
gap: 60px;
- min-height: 60vh;
+ min-height: 40vh;
@media only screen and (max-width: 768px) {
padding: 3em 16px;
@@ -104,42 +103,49 @@ export const HeroSection = () => {
<StyledHeroSection id="hero-section">
<StyledHeroSectionBody>
<Stack flex="1" miw={250} mx="auto" align="center">
- <StyledHeroTitle>Graph Based Data Editor</StyledHeroTitle>
- <StyledHeroText>Transform data into interactive graphs.</StyledHeroText>
- <Flex gap="xs">
- <Badge size="xs" color="gray.7" autoContrast radius="sm" variant="light">
+ <StyledHeroTitle>Transform your data into interactive graphs</StyledHeroTitle>
+ <StyledHeroText>Powerful editor to explore data visually.</StyledHeroText>
+ <Flex gap="md">
+ <Badge size="sm" color="gray" autoContrast radius="sm" variant="light">
JSON
</Badge>
- <Badge size="xs" color="gray.7" autoContrast radius="sm" variant="light">
+ <Badge size="sm" color="gray" autoContrast radius="sm" variant="light">
YAML
</Badge>
- <Badge size="xs" color="gray.7" autoContrast radius="sm" variant="light">
+ <Badge size="sm" color="gray" autoContrast radius="sm" variant="light">
CSV
</Badge>
- <Badge size="xs" color="gray.7" autoContrast radius="sm" variant="light">
+ <Badge size="sm" color="gray" autoContrast radius="sm" variant="light">
XML
</Badge>
- <Badge size="xs" color="gray.7" autoContrast radius="sm" variant="light">
+ <Badge size="sm" color="gray" autoContrast radius="sm" variant="light">
TOML
</Badge>
</Flex>
- <Button
- onClick={() => gaEvent("Hero Section", "click upgrade premium")}
- component="a"
- variant="gradient"
- style={{
- borderTop: "1px solid #388cdb",
- outline: "2px solid #c9e3ff",
- outlineOffset: "2px",
- }}
- href="/#pricing"
- size="lg"
- radius="lg"
- rightSection={<MdChevronRight size={30} />}
- mt="lg"
- >
- Get Started
- </Button>
+ <Flex justify="center" gap="sm" mt="lg" wrap="wrap">
+ <Button
+ component="a"
+ color="brightBlue"
+ href="/#pricing"
+ size="lg"
+ radius="md"
+ fw={600}
+ rightSection={<MdChevronRight size={30} />}
+ >
+ Get Started
+ </Button>
+ <Button
+ onClick={() => gaEvent("Hero Section", "click upgrade premium")}
+ component="a"
+ variant="default"
+ href="/#premium"
+ size="lg"
+ radius="md"
+ fw={600}
+ >
+ Explore Premium
+ </Button>
+ </Flex>
</Stack>
</StyledHeroSectionBody>
</StyledHeroSection>
diff --git a/src/containers/Landing/Outro.tsx b/src/containers/Landing/Outro.tsx
index 420bc21d..c3c89e0e 100644
--- a/src/containers/Landing/Outro.tsx
+++ b/src/containers/Landing/Outro.tsx
@@ -1,6 +1,7 @@
import React from "react";
import Link from "next/link";
import { Stack, Title, Button } from "@mantine/core";
+import { IoArrowForward } from "react-icons/io5";
export const Outro = () => {
return (
@@ -21,13 +22,13 @@ export const Outro = () => {
</Title>
<Button
- variant="gradient"
- style={{ border: "1px solid #388cdb" }}
+ color="brightBlue"
component={Link}
prefetch={false}
href="/#pricing"
radius="lg"
size="xl"
+ rightSection={<IoArrowForward />}
>
Get Started
</Button>
diff --git a/src/containers/Landing/PremiumVsFree.tsx b/src/containers/Landing/PremiumVsFree.tsx
index 6c177750..68a8d07c 100644
--- a/src/containers/Landing/PremiumVsFree.tsx
+++ b/src/containers/Landing/PremiumVsFree.tsx
@@ -2,7 +2,7 @@ import React from "react";
import { Title, Overlay, Paper, rem, Grid, Flex, Image, Text, Container } from "@mantine/core";
import { Carousel } from "@mantine/carousel";
import styled from "styled-components";
-import { ReactCompareSlider } from "react-compare-slider";
+import { ReactCompareSlider, ReactCompareSliderHandle } from "react-compare-slider";
import { FaBolt, FaExpand, FaLifeRing, FaParachuteBox, FaShapes } from "react-icons/fa";
import { FaShieldHalved } from "react-icons/fa6";
import { images } from "src/constants/landing";
@@ -19,6 +19,22 @@ const StyledImageWrapper = styled.div`
`;
export const PremiumVsFree = () => {
+ const [labelOpacity, setLabelOpacity] = React.useState(1);
+ const labelStyle = {
+ fontSize: "1rem",
+ position: "absolute" as any,
+ padding: "6px 12px",
+ margin: "0 -6px",
+ color: "white",
+ opacity: labelOpacity,
+ borderRadius: ".25rem",
+ border: "1px solid white",
+ backdropFilter: "blur(0.25rem) saturate(180%) contrast(80%) brightness(120%)",
+ WebkitBackdropFilter: "blur(0.25rem) saturate(180%) contrast(80%) brightness(120%)",
+ backgroundColor: "rgba(0, 0, 0, 0.5)",
+ transition: "opacity 0.25s ease-in-out",
+ };
+
return (
<Container component="section" id="premium" fluid my={150}>
<Title
@@ -37,6 +53,8 @@ export const PremiumVsFree = () => {
<StyledImageWrapper>
<ReactCompareSlider
+ onPointerDown={() => setLabelOpacity(0)}
+ onPointerUp={() => setLabelOpacity(1)}
style={{
border: "1px solid #d5d5d5",
borderRadius: 12,
@@ -48,6 +66,35 @@ export const PremiumVsFree = () => {
<Image loading="lazy" src="./assets/compare/free.webp" alt="Free" />
</>
}
+ handle={
+ <div
+ style={{
+ display: "flex",
+ alignItems: "center",
+ height: "100%",
+ }}
+ >
+ <ReactCompareSliderHandle />
+ <div
+ style={{
+ ...labelStyle,
+ translate: "-100% 0",
+ left: 0,
+ }}
+ >
+ Premium
+ </div>
+ <div
+ style={{
+ ...labelStyle,
+ translate: "100% 0",
+ right: 0,
+ }}
+ >
+ Free
+ </div>
+ </div>
+ }
/>
</StyledImageWrapper>
diff --git a/src/containers/Modals/AccountModal/index.tsx b/src/containers/Modals/AccountModal/index.tsx
index f6255cc9..36d163b8 100644
--- a/src/containers/Modals/AccountModal/index.tsx
+++ b/src/containers/Modals/AccountModal/index.tsx
@@ -51,8 +51,7 @@ export const AccountModal = ({ opened, onClose }: ModalProps) => {
<Divider py="xs" />
<Group justify="right">
<Button
- variant="gradient"
- style={{ border: "1px solid #388cdb" }}
+ variant="default"
leftSection={<IoRocketSharp />}
onClick={() => {
setVisible("upgrade")(true);
diff --git a/src/containers/Modals/CloudModal/index.tsx b/src/containers/Modals/CloudModal/index.tsx
index a0c309a0..b6a1afe7 100644
--- a/src/containers/Modals/CloudModal/index.tsx
+++ b/src/containers/Modals/CloudModal/index.tsx
@@ -85,7 +85,7 @@ const UpdateNameModal = ({ file, onClose, refetch }: UpdateNameModalProps) => {
data-autofocus
/>
<Group justify="right">
- <Button variant="outline" onClick={onClose}>
+ <Button variant="default" onClick={onClose}>
Cancel
</Button>
<Button onClick={onSubmit}>Update</Button>
diff --git a/src/containers/Modals/UpgradeModal/index.tsx b/src/containers/Modals/UpgradeModal/index.tsx
index 95d5f928..4c677731 100644
--- a/src/containers/Modals/UpgradeModal/index.tsx
+++ b/src/containers/Modals/UpgradeModal/index.tsx
@@ -150,7 +150,7 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
{plan === "monthly" ? PRICING.MONTHLY : PRICING.ANNUAL}
</Text>
<Text ml="xs" fz="xs" c="dimmed">
- /mo (billed {plan === "monthly" ? "monthly" : "annually"})
+ / mo (billed {plan === "monthly" ? "monthly" : "annually"})
</Text>
</Flex>
<Button onClick={handleSelect} color="green" rightSection={<IoMdArrowForward />}>
diff --git a/src/layout/Navbar.tsx b/src/layout/Navbar.tsx
index cf3745b6..1486b012 100644
--- a/src/layout/Navbar.tsx
+++ b/src/layout/Navbar.tsx
@@ -2,6 +2,7 @@ import React from "react";
import Link from "next/link";
import { Button } from "@mantine/core";
import styled from "styled-components";
+import { IoArrowForward } from "react-icons/io5";
import { JSONCrackLogo } from "./JsonCrackLogo";
const StyledNavbarWrapper = styled.div`
@@ -14,9 +15,8 @@ const StyledNavbar = styled.nav`
justify-content: space-between;
align-items: center;
width: 100%;
- height: 56px;
margin: 0 auto;
- padding: 46px 40px;
+ padding: 12px 24px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
@@ -69,51 +69,50 @@ export const Navbar = () => {
<Button
component={Link}
prefetch={false}
- href="/#faq"
+ href="/docs"
variant="subtle"
color="black"
radius="md"
visibleFrom="sm"
size="md"
>
- FAQ
+ Docs
</Button>
<Button
component={Link}
prefetch={false}
- href="/docs"
+ href="/#faq"
variant="subtle"
color="black"
radius="md"
visibleFrom="sm"
size="md"
>
- Docs
+ FAQ
</Button>
</Left>
<Right>
<Button
+ variant="default"
component="a"
href="https://app.jsoncrack.com/sign-in"
- variant="gradient"
- gradient={{ from: "#FFFFFF", to: "#f5f5f5", deg: 180 }}
- c="dark"
radius="lg"
visibleFrom="sm"
size="md"
- style={{ border: "1px solid #E2E2E2" }}
+ fw={600}
>
Sign in
</Button>
<Button
- variant="gradient"
- style={{ borderTop: "1px solid #388cdb" }}
+ color="brightBlue"
component={Link}
prefetch={false}
href="/#pricing"
visibleFrom="sm"
radius="lg"
size="md"
+ fw={600}
+ rightSection={<IoArrowForward />}
>
Start for free
</Button>
diff --git a/src/modules/GraphView/index.tsx b/src/modules/GraphView/index.tsx
index a902191b..a13e9804 100644
--- a/src/modules/GraphView/index.tsx
+++ b/src/modules/GraphView/index.tsx
@@ -228,7 +228,7 @@ export const GraphView = ({ isWidget = false }: GraphProps) => {
>
Close
</Button>
- <Button component="a" variant="gradient" href="/#pricing" target="_blank">
+ <Button component="a" color="brightBlue" href="/#pricing" target="_blank">
Explore
</Button>
</Group>
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index ca29f39f..edca9dce 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -31,6 +31,20 @@ const theme = createTheme({
deg: 180,
},
primaryShade: 8,
+ colors: {
+ brightBlue: [
+ "#e6f2ff",
+ "#cee1ff",
+ "#9bc0ff",
+ "#649dff",
+ "#3980fe",
+ "#1d6dfe",
+ "#0964ff",
+ "#0054e4",
+ "#004acc",
+ "#003fb5",
+ ],
+ },
radius: {
lg: "12px",
},
@@ -75,7 +89,7 @@ function JsonCrack({ Component, pageProps }: AppProps) {
return (
<>
<Head>
- <title>JSON Crack | Best JSON Viewer, Formatter and Visualizer for everyone</title>
+ <title>JSON Crack | Transform your data into interactive graphs</title>
</Head>
<ThemeProvider theme={lightTheme}>
<Toaster
diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx
index 1b4b23ee..3161f3e1 100644
--- a/src/pages/_document.tsx
+++ b/src/pages/_document.tsx
@@ -5,7 +5,7 @@ import { ColorSchemeScript } from "@mantine/core";
import { ServerStyleSheet } from "styled-components";
const metatags = Object.freeze({
- title: "JSON Crack | Best JSON Viewer, Formatter and Visualizer for everyone",
+ title: "JSON Crack | Transform your data into interactive graphs",
image: "https://jsoncrack.com/assets/jsoncrack.png",
});
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 4f079cab..f0d8686f 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,6 +1,7 @@
import React from "react";
import Head from "next/head";
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";
@@ -11,17 +12,32 @@ import { PremiumVsFree } from "src/containers/Landing/PremiumVsFree";
import { Pricing } from "src/containers/Landing/Pricing";
import Layout from "src/layout/Layout";
+const StyledSectionWrapper = styled.div`
+ &:before {
+ position: absolute;
+ content: "";
+ width: 100%;
+ height: 100%;
+ background-color: #ffffff;
+ -webkit-mask-image: linear-gradient(to bottom, transparent, 20%, white, 95%, transparent);
+ mask-image: linear-gradient(to bottom, transparent, 20%, white, 95%, transparent);
+ background-image: linear-gradient(-20deg, #e9defa 0%, #fbfcdb 100%);
+ }
+`;
+
export const HomePage = () => {
return (
<Layout>
<Head>
- <title>JSON Crack | Best JSON Viewer, Formatter and Visualizer for everyone</title>
+ <title>JSON Crack | Transform your data into interactive graphs</title>
<meta name="description" content={metaDescription} key="description" />
<meta property="og:description" content={metaDescription} key="ogdescription" />
<meta name="twitter:description" content={metaDescription} key="twdescription" />
</Head>
- <HeroSection />
- <HeroPreview />
+ <StyledSectionWrapper>
+ <HeroSection />
+ <HeroPreview />
+ </StyledSectionWrapper>
<Features />
<PremiumVsFree />
<Pricing />
diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx
index 2381c2b6..a96ef8c1 100644
--- a/src/pages/pricing.tsx
+++ b/src/pages/pricing.tsx
@@ -40,9 +40,25 @@ const StyledPaper = styled(Paper)<{ $highlight?: boolean } & any>`
width: 350px;
border-radius: 4px;
border: 2px solid #e9e9e9;
- ${({ $highlight }) => $highlight && "border-top: 3px solid #28c417;"}
+ ${({ $highlight }) => $highlight && "border: 3px solid #28c417;"}
background: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+
+ ${({ $highlight }) =>
+ $highlight &&
+ `
+ &::before {
+ content: "Recommended";
+ background: #28c417;
+ position: absolute;
+ transform: translate(-27px, -60px);
+ font-weight: 500;
+ color: white;
+ padding: 6px 8px;
+ border-top-right-radius: 6px;
+ border-top-left-radius: 6px;
+ }
+ `}
`;
export const PricingCards = () => {
@@ -61,10 +77,11 @@ export const PricingCards = () => {
w={200}
radius="lg"
styles={{ label: { color: "black" } }}
+ mb="xl"
/>
</Center>
<Flex
- gap="0"
+ gap="6"
wrap="wrap"
justify="center"
w="fit-content"
@@ -200,17 +217,25 @@ export const PricingCards = () => {
Premium
</Text>
{!isMonthly && (
- <Badge size="lg" variant="light" c="#41B619" radius="md" color="green" ml="sm">
+ <Badge
+ fw={500}
+ size="lg"
+ variant="light"
+ c="#41B619"
+ radius="md"
+ color="green"
+ ml="sm"
+ >
SAVE {Math.round(((PRICING.MONTHLY - PRICING.ANNUAL) / PRICING.MONTHLY) * 100)}%
</Badge>
)}
</Flex>
<Flex gap="xs" align="baseline">
- <Text fz={38} fw="bold" c="black">
+ <Text fz={38} fw={500} c="black">
${isMonthly ? PRICING.MONTHLY : PRICING.ANNUAL}
</Text>
- <Text fz="md" fw={500} c="gray.6">
+ <Text fz="md" c="gray.6">
/ mo
</Text>
</Flex>
@@ -254,10 +279,14 @@ export const PricingCards = () => {
withArrow
>
<Text
- c="gray.7"
- fw={600}
+ c="black"
+ fw={500}
fz="sm"
- style={{ textDecoration: "underline", textDecorationStyle: "dashed" }}
+ style={{
+ textDecoration: "underline",
+ textDecorationStyle: "dashed",
+ textUnderlineOffset: "2px",
+ }}
>
Large data support
</Text>
@@ -272,17 +301,21 @@ export const PricingCards = () => {
withArrow
>
<Text
- c="gray.7"
- fw={600}
+ c="black"
+ fw={500}
fz="sm"
- style={{ textDecoration: "underline", textDecorationStyle: "dashed" }}
+ style={{
+ textDecoration: "underline",
+ textDecorationStyle: "dashed",
+ textUnderlineOffset: "2px",
+ }}
>
Compact Graphs & High Performance
</Text>
</Tooltip>
</List.Item>
<List.Item>
- <Text c="gray.7" fw={600} fz="sm">
+ <Text c="black" fw={500} fz="sm">
Compare Data Differences
</Text>
</List.Item>
@@ -295,27 +328,31 @@ export const PricingCards = () => {
withArrow
>
<Text
- c="gray.7"
- fw={600}
+ c="black"
+ fw={500}
fz="sm"
- style={{ textDecoration: "underline", textDecorationStyle: "dashed" }}
+ style={{
+ textDecoration: "underline",
+ textDecorationStyle: "dashed",
+ textUnderlineOffset: "2px",
+ }}
>
Edit Nodes
</Text>
</Tooltip>
</List.Item>
<List.Item>
- <Text c="gray.7" fw={600} fz="sm">
+ <Text c="black" fw={500} fz="sm">
Built-in tabs for multiple documents
</Text>
</List.Item>
<List.Item>
- <Text c="gray.7" fw={600} fz="sm">
+ <Text c="black" fw={500} fz="sm">
Store 200 documents
</Text>
</List.Item>
<List.Item>
- <Text c="gray.7" fw={600} fz="sm">
+ <Text c="black" fw={500} fz="sm">
AI powered data filter
</Text>
</List.Item>
@@ -328,7 +365,7 @@ export const PricingCards = () => {
<Text fw={500} size="xl" c="black">
Free
</Text>
- <Text fz={38} fw="bold" c="black">
+ <Text fz={38} fw={500} c="black">
$0
</Text>
<Text fz="xs" c="gray.7">
@@ -372,10 +409,14 @@ export const PricingCards = () => {
withArrow
>
<Text
- c="gray.7"
- fw={600}
+ c="black"
+ fw={500}
fz="sm"
- style={{ textDecoration: "underline", textDecorationStyle: "dashed" }}
+ style={{
+ textDecoration: "underline",
+ textDecorationStyle: "dashed",
+ textUnderlineOffset: "2px",
+ }}
>
Basic data size support
</Text>
@@ -397,17 +438,21 @@ export const PricingCards = () => {
<Anchor
href="https://github.com/AykutSarac/jsoncrack.com"
target="_blank"
- c="gray.7"
- fw={600}
+ c="black"
+ fw={500}
fz="sm"
- style={{ textDecoration: "underline", textDecorationStyle: "dashed" }}
+ style={{
+ textDecoration: "underline",
+ textDecorationStyle: "dashed",
+ textUnderlineOffset: "2px",
+ }}
>
Open Source
</Anchor>
</Tooltip>
</List.Item>
<List.Item>
- <Text c="gray.7" fw={600} fz="sm">
+ <Text c="black" fw={500} fz="sm">
Store 25 documents
</Text>
</List.Item>