Skip to content

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

fix: responsive

AykutSarac303298790490
diff --git a/src/containers/Landing/FAQ.tsx b/src/containers/Landing/FAQ.tsx
index 5ac9f6aa..95160115 100644
--- a/src/containers/Landing/FAQ.tsx
+++ b/src/containers/Landing/FAQ.tsx
@@ -45,8 +45,9 @@ export const FAQ = () => {
c="black"
order={2}
fz={{
- sm: 32,
- md: 42,
+ base: 26,
+ xs: 32,
+ sm: 42,
}}
fw={600}
mt={150}
diff --git a/src/containers/Landing/Features.tsx b/src/containers/Landing/Features.tsx
index 6ac90a1c..c9b30b25 100644
--- a/src/containers/Landing/Features.tsx
+++ b/src/containers/Landing/Features.tsx
@@ -27,14 +27,15 @@ const StyledPaper = styled.div`
export const Features = () => {
return (
- <Container component="section" id="features" fluid my={150}>
+ <Container pos="relative" component="section" id="features" fluid my={150}>
<Title
c="black"
order={2}
px="lg"
fz={{
- sm: 32,
- md: 42,
+ base: 26,
+ xs: 32,
+ sm: 42,
}}
fw={600}
mt={120}
@@ -119,7 +120,7 @@ export const Features = () => {
radius={5}
w="fit-content"
mx="auto"
- style={{ borderColor: "gray" }}
+ style={{ borderColor: "lightgray" }}
>
<Image
loading="lazy"
@@ -132,38 +133,6 @@ export const Features = () => {
</StyledPaper>
</Paper>
</Grid.Col>
- <Grid.Col span={{ base: 12, sm: 6 }}>
- <Paper
- p={30}
- shadow="sm"
- radius="sm"
- w="100%"
- h={{ sm: 300, md: 370 }}
- withBorder
- style={{ overflow: "hidden", borderColor: "#ececec" }}
- bg="white"
- >
- <StyledPaper>
- <Title c="black" order={3} fw={500} fz={{ sm: 20, md: 28 }}>
- Search
- </Title>
- <Text fz={{ sm: 14, md: 18 }} c="dark.5" mt={10}>
- Highlight and search what you need in your data, without any hassle.
- </Text>
- <Image
- loading="lazy"
- src="./assets/features/search.webp"
- alt="Search"
- w={{ sm: 400, md: 500 }}
- mx="auto"
- mt={20}
- style={{
- filter: "drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25))",
- }}
- />
- </StyledPaper>
- </Paper>
- </Grid.Col>
<Grid.Col span={{ base: 12, sm: 6 }}>
<Paper
p={30}
@@ -240,6 +209,38 @@ export const Features = () => {
</StyledPaper>
</Paper>
</Grid.Col>
+ <Grid.Col span={{ base: 12, sm: 6 }}>
+ <Paper
+ p={30}
+ shadow="sm"
+ radius="sm"
+ w="100%"
+ h={{ sm: 300, md: 370 }}
+ withBorder
+ style={{ overflow: "hidden", borderColor: "#ececec" }}
+ bg="white"
+ >
+ <StyledPaper>
+ <Title c="black" order={3} fw={500} fz={{ sm: 20, md: 28 }}>
+ Search
+ </Title>
+ <Text fz={{ sm: 14, md: 18 }} c="dark.5" mt={10}>
+ Highlight and search what you need in your data, without any hassle.
+ </Text>
+ <Image
+ loading="lazy"
+ src="./assets/features/search.webp"
+ alt="Search"
+ w={{ sm: 400, md: 500 }}
+ mx="auto"
+ mt={20}
+ style={{
+ filter: "drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25))",
+ }}
+ />
+ </StyledPaper>
+ </Paper>
+ </Grid.Col>
</Grid>
</Container>
);
diff --git a/src/containers/Landing/HeroPreview.tsx b/src/containers/Landing/HeroPreview.tsx
index b787a0c9..4f0c42cd 100644
--- a/src/containers/Landing/HeroPreview.tsx
+++ b/src/containers/Landing/HeroPreview.tsx
@@ -6,6 +6,10 @@ import { images } from "src/constants/landing";
const StyledPreviewWrapper = styled.div`
margin: 0 auto;
position: relative;
+
+ @media only screen and (max-width: 996px) {
+ display: none;
+ }
`;
export const HeroPreview = () => {
@@ -69,10 +73,11 @@ export const HeroPreview = () => {
shadow="md"
>
<Image
+ fit="cover"
src={`./assets/preview/${selectedFeature}.webp`}
loading={selectedFeature === "1" ? "eager" : "lazy"}
alt={images[+selectedFeature - 1].alt}
- w="100%"
+ h="100%"
/>
</Paper>
</Flex>
diff --git a/src/containers/Landing/PremiumVsFree.tsx b/src/containers/Landing/PremiumVsFree.tsx
index f0b7a937..56663937 100644
--- a/src/containers/Landing/PremiumVsFree.tsx
+++ b/src/containers/Landing/PremiumVsFree.tsx
@@ -1,16 +1,5 @@
import React from "react";
-import {
- Title,
- Overlay,
- Paper,
- rem,
- Grid,
- Flex,
- Image,
- Text,
- Container,
- Divider,
-} from "@mantine/core";
+import { Title, Overlay, Paper, rem, Grid, Flex, Image, Text, Container } from "@mantine/core";
import styled from "styled-components";
import { ReactCompareSlider, ReactCompareSliderHandle } from "react-compare-slider";
import { FaBolt, FaExpand, FaLifeRing, FaParachuteBox, FaShapes } from "react-icons/fa";
@@ -45,7 +34,7 @@ export const PremiumVsFree = () => {
};
return (
- <Container component="section" id="premium" fluid my={150}>
+ <Container pos="relative" component="section" id="premium" fluid my={120}>
<Paper
pb={rem(260)}
px={{
@@ -68,8 +57,9 @@ export const PremiumVsFree = () => {
c="white"
order={2}
fz={{
- sm: 32,
- md: 42,
+ base: 26,
+ xs: 32,
+ sm: 42,
}}
fw={700}
mb="md"
@@ -79,10 +69,13 @@ export const PremiumVsFree = () => {
<Text
mx="auto"
fz={{
- sm: 12,
- md: 16,
+ base: 14,
+ xs: 16,
+ }}
+ maw={{
+ base: "80%",
+ sm: "70%",
}}
- maw="60%"
c="gray.4"
mb={60}
>
@@ -140,86 +133,84 @@ export const PremiumVsFree = () => {
<Grid
w={{ sm: "100%", md: "80%" }}
- px={{ sm: "xl", md: 0 }}
+ px="xl"
mt={100}
mx="auto"
- gutter={50}
- visibleFrom="sm"
+ gutter={{ base: 30, xs: 30, sm: 50 }}
>
- <Grid.Col span={4}>
+ <Grid.Col span={{ base: 12, xs: 6, md: 4 }}>
<Flex align="center" gap={8} mb={16}>
<FaBolt color="orange" size={28} />
- <Title c="black" order={3} fz={{ sm: 20, md: 28 }} fw={600}>
+ <Text c="gray.8" fz={{ base: 16, md: 20, lg: 26, xl: 28 }} fw={600}>
High Performance
- </Title>
+ </Text>
</Flex>
- <Text c="gray.6" fz={{ sm: 12, md: 14 }}>
+ <Text c="gray.6" fz={14}>
Designed to handle large datasets with ease. It&apos;s optimized for performance and
speed; currently supporting up to 4MB of data.
</Text>
</Grid.Col>
- <Grid.Col span={4}>
+ <Grid.Col span={{ base: 12, xs: 6, md: 4 }}>
<Flex align="center" gap={8} mb={16}>
<FaExpand color="blue" size={28} />
- <Title c="black" order={3} fz={{ sm: 20, md: 28 }} fw={600}>
+ <Text c="gray.8" fz={{ base: 16, md: 20, lg: 26, xl: 28 }} fw={600}>
Clean & Focused
- </Title>
+ </Text>
</Flex>
- <Text c="gray.6" fz={{ sm: 12, md: 14 }}>
+ <Text c="gray.6" fz={14}>
Compared to the free version, the premium version creates 50% less nodes on the graph
and helps you to focus on what matters most.
</Text>
</Grid.Col>
- <Grid.Col span={4}>
+ <Grid.Col span={{ base: 12, xs: 6, md: 4 }} visibleFrom="xs">
<Flex align="center" gap={8} mb={16}>
<FaLifeRing color="#FF6B00" size={28} />
- <Title c="black" order={3} fz={{ sm: 20, md: 28 }} fw={600}>
+ <Text c="gray.8" fz={{ base: 16, md: 20, lg: 26, xl: 28 }} fw={600}>
Quick Support
- </Title>
+ </Text>
</Flex>
- <Text c="gray.6" fz={{ sm: 12, md: 14 }}>
+ <Text c="gray.6" fz={14}>
Get quick support from our team. We&apos;re here to help you with any issues or
questions you may have. Usual response time is within 24 hours.
</Text>
</Grid.Col>
- <Grid.Col span={4}>
+ <Grid.Col span={{ base: 12, xs: 6, md: 4 }} visibleFrom="xs">
<Flex align="center" gap={8} mb={16}>
<FaParachuteBox color="#00848C" size={28} />
- <Title c="black" order={3} fz={{ sm: 20, md: 28 }} fw={600}>
+ <Text c="gray.8" fz={{ base: 16, md: 20, lg: 26, xl: 28 }} fw={600}>
Always Improving
- </Title>
+ </Text>
</Flex>
- <Text c="gray.6" fz={{ sm: 12, md: 14 }}>
+ <Text c="gray.6" fz={14}>
Have an idea? We&apos;re always looking to improve JSON Crack. We take your feedback
seriously and are constantly working on new features.
</Text>
</Grid.Col>
- <Grid.Col span={4}>
+ <Grid.Col span={{ base: 12, xs: 6, md: 4 }}>
<Flex align="center" gap={8} mb={16}>
<FaShapes color="#A854A5" size={28} />
- <Title c="black" order={3} fz={{ sm: 20, md: 28 }} fw={600}>
+ <Text c="gray.8" fz={{ base: 16, md: 20, lg: 26, xl: 28 }} fw={600}>
Advanced Features
- </Title>
+ </Text>
</Flex>
- <Text c="gray.6" fz={{ sm: 12, md: 14 }}>
+ <Text c="gray.6" fz={14}>
Unlock advanced features such as data comparison, direct editing on the graph,
customized themes and compact visualization style.
</Text>
</Grid.Col>
- <Grid.Col span={4}>
+ <Grid.Col span={{ base: 12, xs: 6, md: 4 }}>
<Flex align="center" gap={8} mb={16}>
<FaShieldHalved color="black" size={28} />
- <Title c="black" order={3} fz={{ sm: 20, md: 28 }} fw={600}>
+ <Text c="gray.8" fz={{ base: 16, md: 20, lg: 26, xl: 28 }} fw={600}>
Privacy First
- </Title>
+ </Text>
</Flex>
- <Text c="gray.6" fz={{ sm: 12, md: 14 }}>
+ <Text c="gray.6" fz={14}>
JSON Crack does not store your data unless you upload it manually. Your data remains
completely private.
</Text>
</Grid.Col>
</Grid>
- <Divider mt={100} w="80%" mx="auto" />
</Container>
);
};
diff --git a/src/containers/Landing/Pricing.tsx b/src/containers/Landing/Pricing.tsx
index 1b7f07c1..c7c8a848 100644
--- a/src/containers/Landing/Pricing.tsx
+++ b/src/containers/Landing/Pricing.tsx
@@ -9,11 +9,11 @@ export const Pricing = () => {
c="black"
order={2}
fz={{
- sm: 32,
- md: 42,
+ base: 26,
+ xs: 32,
+ sm: 42,
}}
fw={600}
- mt={150}
mb={15}
ta="center"
>
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index f0586f0c..8cc1f7e0 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -4,9 +4,9 @@ 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";
import { HeroPreview } from "src/containers/Landing/HeroPreview";
import { HeroSection } from "src/containers/Landing/HeroSection";
-import { Outro } from "src/containers/Landing/Outro";
import { PremiumVsFree } from "src/containers/Landing/PremiumVsFree";
import { Pricing } from "src/containers/Landing/Pricing";
import Layout from "src/layout/Layout";
@@ -37,10 +37,10 @@ export const HomePage = () => {
<HeroSection />
<HeroPreview />
</StyledSectionWrapper>
+ <Features />
<PremiumVsFree />
<Pricing />
<FAQ />
- <Outro />
</Layout>
);
};