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 pages ui

AykutSaracdca8031c0943
diff --git a/src/containers/Landing/Features.tsx b/src/containers/Landing/Features.tsx
index 82b46353..8c7e613f 100644
--- a/src/containers/Landing/Features.tsx
+++ b/src/containers/Landing/Features.tsx
@@ -84,7 +84,15 @@ export const Features = () => {
<Container component="section" id="features" fluid my={150}>
<Container size="xl">
<Center>
- <Badge variant="light" color="orange">
+ <Badge
+ fw="600"
+ tt="none"
+ variant="outline"
+ c="gray.7"
+ color="gray.3"
+ bg="gray.0"
+ size="lg"
+ >
Features
</Badge>
</Center>
diff --git a/src/containers/Landing/HeroPreview.tsx b/src/containers/Landing/HeroPreview.tsx
index c48cc98a..86c68314 100644
--- a/src/containers/Landing/HeroPreview.tsx
+++ b/src/containers/Landing/HeroPreview.tsx
@@ -6,7 +6,7 @@ export const HeroPreview = () => {
<Container component="section" id="preview" fluid mx="lg">
<Image
src="./assets/preview/free.webp"
- maw={1200}
+ maw={1036}
mx="auto"
alt="JSON Crack editor preview"
style={{
diff --git a/src/containers/Landing/HeroSection.tsx b/src/containers/Landing/HeroSection.tsx
index 94a5673c..cafeb4b5 100644
--- a/src/containers/Landing/HeroSection.tsx
+++ b/src/containers/Landing/HeroSection.tsx
@@ -1,11 +1,12 @@
import React from "react";
-import { Manrope } from "next/font/google";
+import { Plus_Jakarta_Sans } from "next/font/google";
import Link from "next/link";
-import { Stack, Flex, Badge, Button, Text } from "@mantine/core";
+import { Stack, Flex, Badge, Button } from "@mantine/core";
import styled from "styled-components";
-import { FaArrowRightLong } from "react-icons/fa6";
+import { FaChevronRight } from "react-icons/fa6";
+import { LovedBy } from "./LovedBy";
-const manrope = Manrope({
+const plusJakartaSans = Plus_Jakarta_Sans({
subsets: ["latin-ext"],
});
@@ -17,25 +18,12 @@ const StyledHeroSection = styled.main`
content: "";
width: 100%;
height: 100%;
+ background-size: 40px 40px;
+ background-image: linear-gradient(to right, #f6f6f6 1px, transparent 1px),
+ linear-gradient(to bottom, #f6f6f6 1px, transparent 1px);
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);
- --line-color-1: #f5f5f5;
- --line-color-2: #f8f8f8;
- background-image: linear-gradient(var(--line-color-1) 1.5px, transparent 1.5px),
- linear-gradient(90deg, var(--line-color-1) 1.5px, transparent 1.5px),
- linear-gradient(var(--line-color-2) 1px, transparent 1px),
- linear-gradient(90deg, var(--line-color-2) 1px, transparent 1px);
- background-position:
- -1.5px -1.5px,
- -1.5px -1.5px,
- -1px -1px,
- -1px -1px;
- background-size:
- 100px 100px,
- 100px 100px,
- 20px 20px,
- 20px 20px;
+ -webkit-mask-image: linear-gradient(to bottom, transparent, 0%, white, 98%, transparent);
+ mask-image: linear-gradient(to bottom, transparent, 0%, white, 98%, transparent);
}
@media only screen and (max-width: 1240px) {
@@ -57,30 +45,28 @@ const StyledHeroSectionBody = styled.div`
@media only screen and (max-width: 768px) {
padding: 6em 16px;
- margin-top: 10vh;
+ padding-top: 10vh;
}
`;
const StyledHeroTitle = styled.h1`
position: relative;
- font-size: 2.2rem;
- font-weight: 800;
+ font-size: 2.3rem;
+ font-weight: 700;
display: inline;
- color: #272727;
+ color: #120f43;
width: fit-content;
- line-height: 1.17;
- word-spacing: 0.1em;
- letter-spacing: -0.01em;
+ line-height: 1.15;
max-width: 30rem;
- font-family: ${manrope.style.fontFamily};
+ font-family: ${plusJakartaSans.style.fontFamily};
@media only screen and (min-width: 576px) {
- font-size: 3.2rem;
+ font-size: 3.4rem;
max-width: 34rem;
}
@media only screen and (min-width: 992px) {
- font-size: 3.6rem;
+ font-size: 3.8rem;
max-width: 40rem;
}
@@ -91,87 +77,119 @@ const StyledHeroTitle = styled.h1`
`;
const StyledHeroText = styled.p`
- font-size: 1rem;
- color: #626262;
- font-weight: 500;
+ font-size: 14px;
+ color: #4a5568;
+ font-weight: 400;
max-width: 75%;
margin-top: 1rem;
text-align: center;
strong {
- font-weight: 500;
- color: #be7d1c;
+ font-weight: 400;
+ color: #115fe6;
}
@media only screen and (min-width: 576px) {
- font-size: 1.15rem;
+ font-size: 18px;
max-width: 80%;
}
@media only screen and (min-width: 1400px) {
- font-size: 1.3rem;
+ font-size: 18px;
max-width: 60%;
}
`;
-export const HeroSection = () => {
+export const HeroSection = ({ stars }: { stars: number }) => {
return (
<StyledHeroSection>
<StyledHeroSectionBody>
<Stack flex="1" miw={250} mx="auto" align="center">
+ <Link href="/#features">
+ <Badge
+ fw="600"
+ tt="none"
+ variant="outline"
+ c="gray.7"
+ color="gray.3"
+ bg="gray.0"
+ size="lg"
+ rightSection={<FaChevronRight />}
+ visibleFrom="xs"
+ >
+ Supports: JSON, CSV, XML, YAML, TOML
+ </Badge>
+ <Badge
+ fw="600"
+ tt="none"
+ variant="outline"
+ c="gray.7"
+ color="gray.3"
+ bg="gray.0"
+ size="md"
+ rightSection={<FaChevronRight />}
+ hiddenFrom="xs"
+ >
+ Supports: JSON, CSV, XML, YAML, TOML
+ </Badge>
+ </Link>
<StyledHeroTitle>Visualize JSON into interactive graphs</StyledHeroTitle>
<StyledHeroText>
The best JSON viewer tool to <strong>visualize</strong>, <strong>format</strong> and{" "}
<strong>modify</strong>.
</StyledHeroText>
- <Flex gap="md">
- <Badge size="sm" color="dark" autoContrast radius="sm" variant="light">
- JSON
- </Badge>
- <Badge size="sm" color="dark" autoContrast radius="sm" variant="light">
- YAML
- </Badge>
- <Badge size="sm" color="dark" autoContrast radius="sm" variant="light">
- CSV
- </Badge>
- <Badge size="sm" color="dark" autoContrast radius="sm" variant="light">
- XML
- </Badge>
- <Badge size="sm" color="dark" autoContrast radius="sm" variant="light">
- TOML
- </Badge>
+
+ <Flex gap="xs" wrap="wrap" justify="center" hiddenFrom="xs">
+ <Button
+ component="a"
+ color="indigo"
+ href="/#pricing"
+ size="md"
+ radius="md"
+ rightSection={<FaChevronRight />}
+ fw="500"
+ >
+ Start for free
+ </Button>
+ <Button
+ component={Link}
+ variant="default"
+ prefetch={false}
+ href="/premium"
+ size="md"
+ radius="md"
+ fw="500"
+ rightSection={<FaChevronRight />}
+ >
+ Premium
+ </Button>
</Flex>
- <Flex gap="lg" wrap="wrap" justify="center">
+ <Flex gap="lg" wrap="wrap" justify="center" visibleFrom="xs">
<Button
component="a"
- color="orange"
+ color="indigo"
href="/#pricing"
size="lg"
- radius="xl"
- px="xl"
- fz="md"
- rightSection={<FaArrowRightLong />}
- mt="lg"
+ radius="md"
+ rightSection={<FaChevronRight />}
+ fw="500"
>
Start for free
</Button>
<Button
component={Link}
- variant="outline"
- color="orange"
+ variant="default"
prefetch={false}
href="/premium"
size="lg"
- radius="xl"
- fz="md"
- mt="lg"
+ radius="md"
+ fw="500"
+ rightSection={<FaChevronRight />}
>
- Get Premium
+ Premium
</Button>
</Flex>
- <Text c="gray.6" size="xs" mt="-10">
- No registration needed.
- </Text>
+ <LovedBy stars={stars} />
</Stack>
</StyledHeroSectionBody>
</StyledHeroSection>
diff --git a/src/containers/Landing/LovedBy.tsx b/src/containers/Landing/LovedBy.tsx
index f013d7d2..ca984ec5 100644
--- a/src/containers/Landing/LovedBy.tsx
+++ b/src/containers/Landing/LovedBy.tsx
@@ -8,15 +8,6 @@ interface LovedByProps {
stars: number;
}
-// interface TweetCardProps {
-// username: string;
-// handle: string;
-// profileImage: string;
-// tweet: string;
-// tweetId: string;
-// verified?: "company" | "individual";
-// }
-
const StyledFeaturedItem = styled.a`
display: flex;
gap: 6px;
@@ -32,7 +23,7 @@ const StyledFeaturedItem = styled.a`
const Featured = ({ stars }: LovedByProps) => {
return (
- <Flex align="center" justify="center" gap="lg" mb="lg" wrap="wrap">
+ <Flex align="center" justify="center" gap="lg" wrap="wrap">
<StyledFeaturedItem
href="https://github.com/AykutSarac/jsoncrack.com"
target="_blank"
@@ -68,6 +59,23 @@ const Featured = ({ stars }: LovedByProps) => {
);
};
+export const LovedBy = ({ stars }: LovedByProps) => {
+ return (
+ <Container pos="relative" mx="auto" p={30} fluid>
+ <Featured stars={stars} />
+ </Container>
+ );
+};
+
+// interface TweetCardProps {
+// username: string;
+// handle: string;
+// profileImage: string;
+// tweet: string;
+// tweetId: string;
+// verified?: "company" | "individual";
+// }
+//
// const TweetCard = ({
// profileImage,
// handle,
@@ -107,11 +115,3 @@ const Featured = ({ stars }: LovedByProps) => {
// </Paper>
// );
// };
-
-export const LovedBy = ({ stars }: LovedByProps) => {
- return (
- <Container pos="relative" mx="auto" p={30} fluid>
- <Featured stars={stars} />
- </Container>
- );
-};
diff --git a/src/containers/Landing/PremiumPreview.tsx b/src/containers/Landing/PremiumPreview.tsx
index b54c93cb..825ffbd3 100644
--- a/src/containers/Landing/PremiumPreview.tsx
+++ b/src/containers/Landing/PremiumPreview.tsx
@@ -63,7 +63,7 @@ export const PremiumPreview = () => {
}}
justify="center"
>
- <Stack>
+ <Stack visibleFrom="sm">
<SegmentedControl
data={features}
value={selectedFeature}
@@ -73,10 +73,9 @@ export const PremiumPreview = () => {
bg="transparent"
color="dark"
size="lg"
- visibleFrom="sm"
styles={{
control: {
- background: "rgba(168, 168, 168, 0.2)",
+ background: "rgba(141, 127, 174, 0.15)",
borderRadius: "4px",
},
root: {
diff --git a/src/containers/Landing/PremiumVsFree.tsx b/src/containers/Landing/PremiumVsFree.tsx
index d74ac849..00aad02e 100644
--- a/src/containers/Landing/PremiumVsFree.tsx
+++ b/src/containers/Landing/PremiumVsFree.tsx
@@ -58,7 +58,7 @@ export const PremiumVsFree = () => {
}}
>
<Box flex="1.3">
- <List mt="md" fz="lg" visibleFrom="xs" c="gray.3">
+ <List my="md" fz="lg" visibleFrom="xs" c="gray.3">
<List.Item>Refined user interface</List.Item>
<List.Item>Supports larger data (~4 MB)</List.Item>
<List.Item>Customizable color options</List.Item>
@@ -74,9 +74,7 @@ export const PremiumVsFree = () => {
display="block"
w="fit-content"
miw={200}
- variant="filled"
color="orange"
- mt="lg"
size="lg"
rightSection={<FaArrowRightLong />}
radius="xl"
diff --git a/src/layout/Navbar.tsx b/src/layout/Navbar.tsx
index 1dfb0b95..412d4165 100644
--- a/src/layout/Navbar.tsx
+++ b/src/layout/Navbar.tsx
@@ -7,6 +7,7 @@ import { JSONCrackLogo } from "./JsonCrackLogo";
const StyledNavbarWrapper = styled.div`
z-index: 3;
transition: background 0.2s ease-in-out;
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
`;
const StyledNavbar = styled.nav`
@@ -112,10 +113,11 @@ export const Navbar = () => {
</Left>
<Right>
<Button
- variant="default"
+ variant="subtle"
+ color="dark"
component="a"
href="https://app.jsoncrack.com/sign-in"
- radius="xl"
+ radius="md"
visibleFrom="sm"
size="md"
>
@@ -123,14 +125,13 @@ export const Navbar = () => {
</Button>
<Button
component="a"
- color="orange"
- href="/#pricing
- "
- radius="xl"
+ color="indigo"
+ href="/editor"
+ radius="md"
visibleFrom="sm"
size="md"
>
- Start free
+ Editor
</Button>
</Right>
</StyledNavbar>
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index a39880ed..441a4ceb 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -7,7 +7,6 @@ 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 { LovedBy } from "src/containers/Landing/LovedBy";
import { PremiumVsFree } from "src/containers/Landing/PremiumVsFree";
import { Pricing } from "src/containers/Landing/Pricing";
import Layout from "src/layout/Layout";
@@ -27,8 +26,7 @@ export const HomePage = ({ stars }: InferGetStaticPropsType<typeof getStaticProp
key="product-jsonld"
/>
</Head>
- <HeroSection />
- <LovedBy stars={stars} />
+ <HeroSection stars={stars} />
<HeroPreview />
<Features />
<PremiumVsFree />
diff --git a/src/pages/premium.tsx b/src/pages/premium.tsx
index 2c4f5196..a040c736 100644
--- a/src/pages/premium.tsx
+++ b/src/pages/premium.tsx
@@ -43,7 +43,7 @@ const StyledRadioCard = styled(Radio.Card)`
background: white;
&[data-checked] {
- border-color: #535353;
+ border-color: #120f43;
}
&:hover:not([data-checked]) {
@@ -57,6 +57,20 @@ const StyledRadioCard = styled(Radio.Card)`
}
`;
+const StyledFeatureCard = styled(Paper)<any>`
+ background: rgba(255, 170, 234, 0.1);
+ border-radius: 16px;
+ box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
+ backdrop-filter: blur(5px);
+ -webkit-backdrop-filter: blur(5px);
+ border: 1px solid rgba(255, 255, 255, 0.11);
+ transition: 0.2s;
+
+ &:hover {
+ background: rgba(255, 170, 234, 0.15);
+ }
+`;
+
interface FeatureItem {
title: string;
description: string;
@@ -159,7 +173,7 @@ const Premium = () => {
fluid
style={{
background:
- "linear-gradient(165deg, #000000, #010101, #080808, #171717, #272727, #383838, #4a4a4a, #5d5d5d)",
+ "linear-gradient(15deg, #120f43, #0d0e3e, #0b0f39, #0a1034, #08102f, #071029, #051024, #040f1e)",
}}
>
<Box mx="auto" maw={600}>
@@ -171,7 +185,7 @@ const Premium = () => {
xs: 40,
}}
>
- Take your data to the next level.
+ JSON Crack - Premium
</Title>
<Text
c="gray.3"
@@ -193,7 +207,7 @@ const Premium = () => {
size="lg"
rightSection={<MdChevronRight size={30} />}
>
- Get it now
+ Upgrade now
</Button>
<Image
pos="absolute"
@@ -209,7 +223,14 @@ const Premium = () => {
</Box>
</Container>
<PremiumPreview />
- <Container component="section" id="features" fluid bg="dark" my={120} py={40}>
+ <Container
+ component="section"
+ id="features"
+ fluid
+ bg="radial-gradient(58.11% 44.54% at 51.59% -9.61%, rgb(180, 176, 254) 0%, rgb(54, 50, 133) 22.92%, rgb(17, 13, 91) 42.71%, rgb(5, 3, 39) 88.54%)"
+ my={120}
+ py={40}
+ >
<Container size="xl">
<Title
fz={{
@@ -233,7 +254,7 @@ const Premium = () => {
spacing="xl"
>
{features.map((feature, index) => (
- <Paper key={index} bg="gray.8" p="lg" radius="md">
+ <StyledFeatureCard p="lg" radius="md" key={index}>
<Flex gap="sm" align="center" justify="center" direction="column">
<ThemeIcon radius="xl" size="xl" variant="light" color={feature.color}>
{feature.icon}
@@ -243,7 +264,7 @@ const Premium = () => {
</Title>
<Text c="gray.3">{feature.description}</Text>
</Flex>
- </Paper>
+ </StyledFeatureCard>
))}
</SimpleGrid>
</Container>
@@ -254,7 +275,7 @@ const Premium = () => {
fw={500}
mx="auto"
ta="center"
- c="dark"
+ c="#120F43"
fz={{
base: 28,
xs: 40,
@@ -324,7 +345,7 @@ const Premium = () => {
component="a"
href={getUpgradeLink()}
target="_blank"
- color="dark"
+ color="#120F43"
fullWidth
mt="xl"
size="xl"
diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx
index 80cb2630..30934edb 100644
--- a/src/pages/pricing.tsx
+++ b/src/pages/pricing.tsx
@@ -78,35 +78,29 @@ export const PricingCards = () => {
mx="auto"
>
<Box w="100%">
- <StyledPaper
- withBorder
- p="sm"
- w="100%"
- style={{ borderColor: "orange" }}
- visibleFrom="sm"
- >
- <Flex gap="xs" align="end">
- <Stack gap="xs">
+ <StyledPaper withBorder p="sm" w="100%" visibleFrom="sm">
+ <Flex gap="xs" align="end" justify="space-between">
+ <Stack gap="5">
<Text fz="md" fw={500}>
Buy once,
- <Text ml={4} component="span" inherit c="orange">
+ <Text ml={4} component="span" inherit c="brightBlue">
use forever
</Text>
!
</Text>
<Text fz="sm" maw={400}>
- Gain lifetime access to JSON Crack, enjoy all the advantages of our Premium plan
- with this one-time deal.
+ Lifetime access. One-time payment. Free updates.
</Text>
</Stack>
<Button
component="a"
href={purchaseLinks.ltd}
target="_blank"
- fw={400}
+ fw={500}
fz="sm"
size="md"
- color="orange"
+ variant="light"
+ color="indigo"
rightSection={<FaArrowRightLong />}
>
Get Lifetime Access for ${PRICING.LTD}
@@ -126,9 +120,9 @@ export const PricingCards = () => {
fw={600}
size="md"
variant="light"
- c="orange"
+ c="brightBlue"
radius="sm"
- color="orange"
+ color="brightBlue"
ml="sm"
>
SAVE {PRICING.getAnnualSave()}%
@@ -156,7 +150,7 @@ export const PricingCards = () => {
</Flex>
<Button
component="a"
- color="orange"
+ color="brightBlue"
onClick={() => gaEvent("Pricing", "click upgrade premium")}
href={isMonthly ? purchaseLinks.monthly : purchaseLinks.annual}
target="_blank"
@@ -178,7 +172,7 @@ export const PricingCards = () => {
mt="xs"
c="black"
center
- icon={<FaCheck size="18" color="#E8580C" />}
+ icon={<FaCheck size="18" color="#1866db" />}
>
<List.Item>
<Tooltip
@@ -295,7 +289,7 @@ export const PricingCards = () => {
mt="lg"
c="black"
center
- icon={<FaCheck size="18" color="#E8580C" />}
+ icon={<FaCheck size="18" color="#1866db" />}
>
<List.Item>
<Tooltip