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

AykutSaracef5ff12f3859
diff --git a/src/containers/Landing/FAQ.tsx b/src/containers/Landing/FAQ.tsx
index 99fa44ff..2de03469 100644
--- a/src/containers/Landing/FAQ.tsx
+++ b/src/containers/Landing/FAQ.tsx
@@ -4,7 +4,7 @@ import Questions from "src/data/faq.json";
export const FAQ = () => {
return (
- <Container id="faq" component="section" mt={150}>
+ <Container id="faq" component="section" py={80}>
<Title
c="black"
order={2}
diff --git a/src/containers/Landing/Features.tsx b/src/containers/Landing/Features.tsx
index cad36282..1f84d26d 100644
--- a/src/containers/Landing/Features.tsx
+++ b/src/containers/Landing/Features.tsx
@@ -81,7 +81,7 @@ const features: FeatureItem[] = [
export const Features = () => {
return (
- <Container component="section" id="features" fluid my={150}>
+ <Container component="section" id="features" fluid py={80}>
<Container size="xl">
<Center>
<Badge
diff --git a/src/containers/Landing/HeroPreview.tsx b/src/containers/Landing/HeroPreview.tsx
index 6ff54826..c1bedfce 100644
--- a/src/containers/Landing/HeroPreview.tsx
+++ b/src/containers/Landing/HeroPreview.tsx
@@ -3,7 +3,7 @@ import { Container, Image } from "@mantine/core";
export const HeroPreview = () => {
return (
- <Container component="section" id="preview" fluid mx="lg">
+ <Container component="section" id="preview" fluid py="20" mx="lg">
<Image
src="./assets/preview/free.webp"
loading="eager"
diff --git a/src/containers/Landing/HeroSection.tsx b/src/containers/Landing/HeroSection.tsx
index 61efdcc4..f95ea325 100644
--- a/src/containers/Landing/HeroSection.tsx
+++ b/src/containers/Landing/HeroSection.tsx
@@ -107,7 +107,13 @@ export const HeroSection = () => {
<Link href="https://todiagram.com?ref=jsoncrack.com" rel="noopener">
<Flex justify="center" fz="sm" c="gray.8" gap="8" align="center">
built by
- <Image src="/assets/todiagram_logo.png" alt="Todiagram Logo" h={14} loading="eager" />
+ <Image
+ src="/assets/todiagram_logo.png"
+ alt="Todiagram Logo"
+ h={14}
+ w="fit-content"
+ loading="eager"
+ />
</Flex>
</Link>
<StyledHeroTitle>Visualize JSON into interactive graphs</StyledHeroTitle>
diff --git a/src/containers/Landing/LovedBy.tsx b/src/containers/Landing/LovedBy.tsx
index e70e04ab..49601fd4 100644
--- a/src/containers/Landing/LovedBy.tsx
+++ b/src/containers/Landing/LovedBy.tsx
@@ -61,7 +61,7 @@ const Featured = ({ stars }: LovedByProps) => {
export const LovedBy = ({ stars }: LovedByProps) => {
return (
- <Container pos="relative" mx="auto" p={30} fluid>
+ <Container pos="relative" mx="auto" py={80}>
<Featured stars={stars} />
<Flex wrap="wrap" justify="center" gap="md" mt="md">
<Button
diff --git a/src/containers/Landing/PremiumPreview.tsx b/src/containers/Landing/PremiumPreview.tsx
deleted file mode 100644
index 24694a94..00000000
--- a/src/containers/Landing/PremiumPreview.tsx
+++ /dev/null
@@ -1,146 +0,0 @@
-import React from "react";
-import {
- Button,
- AspectRatio,
- Container,
- Flex,
- Paper,
- SegmentedControl,
- Stack,
- Title,
- Divider,
-} from "@mantine/core";
-
-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 PremiumPreview = () => {
- const [selectedFeature, setSelectedFeature] = React.useState("1");
-
- return (
- <Container component="section" id="preview" fluid>
- <Container size="xl">
- <Title
- fz={{
- base: 32,
- xs: 38,
- }}
- order={2}
- mt={100}
- mb={60}
- c="dark"
- >
- Discover the features
- </Title>
- <Flex
- gap="lg"
- direction={{
- base: "column",
- xs: "row",
- }}
- justify="center"
- >
- <Stack visibleFrom="sm">
- <SegmentedControl
- data={features}
- value={selectedFeature}
- onChange={setSelectedFeature}
- orientation="vertical"
- withItemsBorders={false}
- size="lg"
- styles={{
- control: {
- borderRadius: "4px",
- background: "#181818",
- mixBlendMode: "difference",
- },
- root: {
- gap: "24px",
- background: "transparent",
- },
- indicator: {
- background: "#000000",
- },
- label: {
- color: "white",
- },
- }}
- />
- <Divider my="xs" />
- <Button
- component="a"
- href="#features"
- variant="light"
- color="gray"
- c="black"
- radius="sm"
- size="lg"
- fullWidth
- >
- Built for everyone.
- </Button>
- </Stack>
- <Stack w="100%">
- <Paper
- p={0}
- w="100%"
- maw={1440}
- h="fit-content"
- radius="lg"
- shadow="xl"
- bg="transparent"
- style={{
- overflow: "hidden",
- border: "1px solid #c1c1c1",
- outline: "1px solid #c1c1c1",
- outlineOffset: "4px",
- }}
- >
- <AspectRatio ratio={1440 / 760} maw={1440} w="100%" h="100%">
- <video
- autoPlay
- muted
- loop
- preload="auto"
- playsInline
- poster={`./assets/preview/${selectedFeature}.webp`}
- key={selectedFeature}
- style={{ display: "block" }}
- >
- <source
- src={`https://app.jsoncrack.com/assets/videos/p${selectedFeature}.mp4`}
- type="video/mp4"
- />
- </video>
- </AspectRatio>
- </Paper>
- </Stack>
- </Flex>
- </Container>
- </Container>
- );
-};
diff --git a/src/containers/Landing/Section1.tsx b/src/containers/Landing/Section1.tsx
index d2030921..1076633d 100644
--- a/src/containers/Landing/Section1.tsx
+++ b/src/containers/Landing/Section1.tsx
@@ -75,7 +75,7 @@ const StyledDottedContainer = styled.div`
export const Section1 = () => {
return (
- <Container size="xl" my="120">
+ <Container size="xl" py="80">
<Flex justify="center" align="center">
<Stack maw={634}>
<Title
diff --git a/src/containers/Landing/SeePremium.tsx b/src/containers/Landing/SeePremium.tsx
index 60191e47..34ca0131 100644
--- a/src/containers/Landing/SeePremium.tsx
+++ b/src/containers/Landing/SeePremium.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import { Title, Image, Flex, Box, Button, Text, Paper, Center } from "@mantine/core";
+import { Title, Image, Flex, Box, Button, Text, Paper, Container } from "@mantine/core";
import styled from "styled-components";
import { FaArrowRightLong } from "react-icons/fa6";
@@ -11,47 +11,36 @@ const StyledImageWrapper = styled.div`
export const SeePremium = () => {
return (
- <Center mx="lg" my={120}>
+ <Container size="xl">
<Paper
- p={30}
- w="fit-content"
+ py={12}
+ px={30}
bg="#202842"
id="premium"
component="section"
+ w="100%"
style={{
borderRadius: 20,
+ overflow: "hidden",
}}
>
- <Flex
- gap="lg"
- align="center"
- direction={{
- base: "column",
- md: "row",
- }}
- >
+ <Flex gap="lg" align="center">
<Box flex="1.3">
- <Title
- pos="relative"
- c="white"
- order={2}
- fz={{
- base: 24,
- xs: 30,
- sm: 36,
- }}
- fw={600}
- mb={20}
- >
- Upgrade
- <Box pos="absolute" mt="-6px" maw="150px" w="100%">
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1418 125" fill="#ffbb55">
- <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>
- <Text c="gray.4" fz="lg" mb="xl" maw={400}>
- Larger uploads, faster experience, better diagrams and advanced tools.
+ <Flex align="center" gap="xs" mb="md">
+ <Image
+ src="https://todiagram.com/logo.svg"
+ alt="Todiagram Logo"
+ h={20}
+ w="fit-content"
+ loading="eager"
+ />
+ <Title fz="20" fw="500" c="gray.2">
+ Upgrade to ToDiagram
+ </Title>
+ </Flex>
+
+ <Text c="gray.4" fz="h3" mb="xl" maw={410}>
+ Larger uploads, faster loading, beautiful diagrams and advanced tools.
</Text>
<Button
component="a"
@@ -60,26 +49,29 @@ export const SeePremium = () => {
w="fit-content"
miw={200}
color="#fe5e49"
- size="lg"
+ size="md"
mt="xl"
rightSection={<FaArrowRightLong />}
radius="xl"
rel="noopener"
>
- See more
+ Upgrade
</Button>
</Box>
- <StyledImageWrapper>
- <Image
- mah="400"
- loading="lazy"
- src="https://todiagram.com/images/landing/editor.webp"
- alt="ToDiagram Editor"
- />
- </StyledImageWrapper>
+ <Box visibleFrom="xs">
+ <StyledImageWrapper>
+ <Image
+ mah="200"
+ w="100%"
+ loading="lazy"
+ src="https://todiagram.com/images/landing/editor.webp"
+ alt="ToDiagram Editor"
+ />
+ </StyledImageWrapper>
+ </Box>
</Flex>
</Paper>
- </Center>
+ </Container>
);
};
diff --git a/src/layout/Footer.tsx b/src/layout/Footer.tsx
index b1511213..192fe1a8 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} px={60} pb="xl" bg="black" fluid>
+ <Container mt={60} px={60} pb="xl" bg="black" fluid>
<Divider color="gray.3" mb="xl" mx={-60} />
<Flex justify="space-between">
<Stack gap={4} visibleFrom="sm">
@@ -39,6 +39,9 @@ export const Footer = () => {
>
Open Source
</Anchor>
+ <Anchor href="https://todiagram.com" fz="sm" c="gray.5" rel="noopener">
+ ToDiagram
+ </Anchor>
</Stack>
<Stack gap="xs">
<Text fz="sm" c="white">
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 2aaae8a1..34648343 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -27,10 +27,10 @@ export const HomePage = (props: InferGetStaticPropsType<typeof getStaticProps>)
<HeroSection />
<HeroPreview />
<Section1 />
- <Features />
<SeePremium />
- <LovedBy stars={props.stars} />
+ <Features />
<FAQ />
+ <LovedBy stars={props.stars} />
</Layout>
);
};