Skip to content

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

feat: update landing styles

AykutSaracdda4b604a1d0
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index b391b952..a431b1cc 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -22,6 +22,7 @@ import { Carousel } from "@mantine/carousel";
import "@mantine/carousel/styles.css";
import styled from "styled-components";
import { BiChevronDown } from "react-icons/bi";
+import { IoMdInformationCircle } from "react-icons/io";
import { MdChevronRight, MdCompare, MdExtension, MdRebaseEdit, MdSearch } from "react-icons/md";
import useBackgroundCursorPosition from "use-bg-cursor-pos";
import { images, metaDescription } from "src/constants/landing";
@@ -159,9 +160,7 @@ const StyledCarouselWrapper = styled.section`
max-width: 75%;
position: relative;
z-index: 1;
- border: 6px solid #bdbdbd;
margin: 60px auto;
- border-radius: 14px;
overflow: hidden;
img {
@@ -212,10 +211,10 @@ export const FAQ = Object.freeze([
]);
export const HomePage = () => {
- const [card1, bg1] = useBackgroundCursorPosition("#f2f2f2", "#ffffff", "200px");
- const [card2, bg2] = useBackgroundCursorPosition("#f2f2f2", "#ffffff", "200px");
- const [card3, bg3] = useBackgroundCursorPosition("#f2f2f2", "#ffffff", "200px");
- const [card4, bg4] = useBackgroundCursorPosition("#f2f2f2", "#ffffff", "200px");
+ const [card1, bg1] = useBackgroundCursorPosition("#fff7f7", "#ffecec", "300px");
+ const [card2, bg2] = useBackgroundCursorPosition("#f7fff7", "#ecffec", "300px");
+ const [card3, bg3] = useBackgroundCursorPosition("#fff7fe", "#ffecf7", "300px");
+ const [card4, bg4] = useBackgroundCursorPosition("#f5fbff", "#e9f3ff", "300px");
return (
<Layout>
@@ -256,41 +255,24 @@ export const HomePage = () => {
TOML
</Badge>
</Flex>
- <Flex gap="xs">
- <Button
- onClick={() => gaEvent("Hero Section", "click upgrade premium")}
- component={Link}
- prefetch={false}
- href="/editor"
- size="xl"
- fw="bold"
- color="orange.6"
- rightSection={<MdChevronRight size={30} />}
- visibleFrom="sm"
- radius="lg"
- mt="lg"
- style={{ boxShadow: "0px 4px 10px rgba(0, 0, 0, 0.2)" }}
- >
- Go to Editor
- </Button>
- <Button
- variant="light"
- component="a"
- href="/#pricing"
- size="xl"
- fw="bold"
- color="orange.6"
- visibleFrom="sm"
- radius="lg"
- mt="lg"
- >
- Explore Premium
- </Button>
- </Flex>
+ <Button
+ onClick={() => gaEvent("Hero Section", "click upgrade premium")}
+ component={Link}
+ href="/pricing"
+ size="xl"
+ fw="bold"
+ color="orange.6"
+ rightSection={<MdChevronRight size={30} />}
+ visibleFrom="sm"
+ radius="lg"
+ mt="lg"
+ style={{ boxShadow: "0px 4px 10px rgba(0, 0, 0, 0.2)" }}
+ >
+ Get Started
+ </Button>
<Button
component={Link}
- prefetch={false}
- href="/editor"
+ href="/pricing"
fw="bold"
size="md"
color="orange.6"
@@ -299,7 +281,7 @@ export const HomePage = () => {
radius="lg"
mt="lg"
>
- Go to Editor
+ Get Started
</Button>
</Stack>
</StyledHeroSectionBody>
@@ -312,10 +294,11 @@ export const HomePage = () => {
embla.scrollNext();
}, 10_000);
}}
+ flex="1"
+ height="100%"
withIndicators
loop
- height="100%"
- style={{ flex: 1 }}
+ style={{ border: "5px solid #bdbdbd", borderRadius: "14px", overflow: "hidden" }}
>
{images.map(image => (
<Carousel.Slide key={image.id}>
@@ -329,9 +312,16 @@ export const HomePage = () => {
</Carousel.Slide>
))}
</Carousel>
+ <Flex justify="center" align="center" mt={10} gap={4}>
+ <IoMdInformationCircle color="gray" />
+ <Text c="dimmed" fz="sm" ta="center">
+ Preview images are from the premium version
+ </Text>
+ </Flex>
</StyledCarouselWrapper>
+
<Paper
- pt={rem(280)}
+ pt={rem(300)}
px={rem(80)}
pb={rem(20)}
maw="95%"
@@ -395,7 +385,6 @@ export const HomePage = () => {
<ThemeIcon
color="gray.3"
c="dark.4"
- bg="gray.1"
variant="outline"
size="xl"
radius="md"
@@ -441,7 +430,6 @@ export const HomePage = () => {
<ThemeIcon
color="gray.3"
c="dark.4"
- bg="gray.1"
variant="outline"
size="xl"
radius="md"
@@ -487,7 +475,6 @@ export const HomePage = () => {
<ThemeIcon
color="gray.3"
c="dark.4"
- bg="gray.1"
variant="outline"
size="xl"
radius="md"
@@ -534,7 +521,6 @@ export const HomePage = () => {
<ThemeIcon
color="gray.3"
c="dark.4"
- bg="gray.1"
variant="outline"
size="xl"
radius="md"
diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx
index 29de5fc1..9508474f 100644
--- a/src/pages/pricing.tsx
+++ b/src/pages/pricing.tsx
@@ -1,5 +1,6 @@
import React from "react";
import Head from "next/head";
+import Link from "next/link";
import {
Flex,
Stack,
@@ -10,6 +11,7 @@ import {
SegmentedControl,
Center,
Badge,
+ Anchor,
} from "@mantine/core";
import styled from "styled-components";
import { AiOutlineInfoCircle } from "react-icons/ai";
@@ -58,13 +60,15 @@ export const PricingCards = () => {
<Stack component="section" id="pricing" gap="0" align="center">
<Center my="lg">
<SegmentedControl
+ bg="gray.1"
color="white"
value={isMonthly ? "Monthly" : "Yearly"}
onChange={v => setIsMonthly(v === "Monthly")}
size="md"
data={["Monthly", "Yearly"]}
w={200}
- radius="xl"
+ radius="lg"
+ styles={{ label: { color: "black" } }}
/>
</Center>
<Flex gap="lg" wrap="wrap" justify="center" w="fit-content" p="lg" mx="auto" maw="100%">
@@ -89,8 +93,9 @@ export const PricingCards = () => {
</Stack>
</Flex>
<Button
- component="a"
- href="https://app.jsoncrack.com/sign-up"
+ component={Link}
+ prefetch={false}
+ href="/editor"
size="lg"
radius="md"
variant="outline"
@@ -99,28 +104,23 @@ export const PricingCards = () => {
my="md"
rightSection={<VscArrowRight />}
>
- Sign Up
+ Start for Free
</Button>
- <Flex direction="column" justify="space-between" h={250}>
+ <Flex direction="column" justify="space-between">
<List spacing="xs" size="sm" mt="lg" c="black" center icon="✦">
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Open Source
- </Text>
- </List.Item>
- <List.Item>
- <Text c="gray.7" fw={500} fz="sm">
- Graph & Tree visualizations
+ Graph/Tree visualizations
</Text>
</List.Item>
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Small size graph visualizations
+ Basic data size support
</Text>
</List.Item>
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Download as image
+ Download as Image
</Text>
</List.Item>
<List.Item>
@@ -139,6 +139,11 @@ export const PricingCards = () => {
JSON, YAML, TOML, XML, CSV, and more...
</Text>
</List.Item>
+ <List.Item>
+ <Text c="gray.7" fw={500} fz="sm">
+ Store 25 documents
+ </Text>
+ </List.Item>
</List>
</Flex>
</StyledPaperFree>
@@ -161,6 +166,9 @@ export const PricingCards = () => {
billed {isMonthly ? "monthly" : "annually"}
</Text>
</Stack>
+ <Anchor c="dark" fz="sm" component={Link} h="fit-content" href="/#preview">
+ Preview
+ </Anchor>
</Flex>
<Button
component="a"
@@ -176,44 +184,47 @@ export const PricingCards = () => {
>
Start Free Trial
</Button>
- <Flex direction="column" justify="space-between" h={250}>
- <List spacing="xs" size="sm" mt="lg" c="black" center icon="✦">
+ <Text mt="xs" fz="xs" c="dimmed">
+ Designed for individuals who works with data regularly.
+ </Text>
+ <Flex direction="column" justify="space-between">
+ <List spacing="xs" size="sm" mt="xs" c="black" center icon="✦">
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Graphs: 5X faster, compact and smooth
+ Larger data support
+ </Text>
+ <Text c="dimmed" fz="xs">
+ (Up to ~4 MB)
</Text>
</List.Item>
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Compare data differences on graphs
+ Compact graph visualizations & faster rendering
</Text>
</List.Item>
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Edit data directly on visualizations
+ Compare data differences
</Text>
</List.Item>
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Built-in tabs for multiple documents
+ AI powered data filter
</Text>
</List.Item>
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Save up to 200 documents in the cloud
+ Edit data directly on visualizations
</Text>
</List.Item>
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Visualize up to 4 MBs
+ Built-in tabs for multiple documents
</Text>
</List.Item>
<List.Item>
<Text c="gray.7" fw={500} fz="sm">
- Join alpha test of AI
- </Text>
- <Text c="dimmed" fz="xs">
- (10 credits/day)
+ Store 200 documents
</Text>
</List.Item>
</List>