Skip to content

Commit ef5ff12

Browse files
committed
update landing
1 parent 180ca72 commit ef5ff12

File tree

10 files changed

+54
-199
lines changed

10 files changed

+54
-199
lines changed

src/containers/Landing/FAQ.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Questions from "src/data/faq.json";
44

55
export const FAQ = () => {
66
return (
7-
<Container id="faq" component="section" mt={150}>
7+
<Container id="faq" component="section" py={80}>
88
<Title
99
c="black"
1010
order={2}

src/containers/Landing/Features.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const features: FeatureItem[] = [
8181

8282
export const Features = () => {
8383
return (
84-
<Container component="section" id="features" fluid my={150}>
84+
<Container component="section" id="features" fluid py={80}>
8585
<Container size="xl">
8686
<Center>
8787
<Badge

src/containers/Landing/HeroPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Container, Image } from "@mantine/core";
33

44
export const HeroPreview = () => {
55
return (
6-
<Container component="section" id="preview" fluid mx="lg">
6+
<Container component="section" id="preview" fluid py="20" mx="lg">
77
<Image
88
src="./assets/preview/free.webp"
99
loading="eager"

src/containers/Landing/HeroSection.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ export const HeroSection = () => {
107107
<Link href="https://todiagram.com?ref=jsoncrack.com" rel="noopener">
108108
<Flex justify="center" fz="sm" c="gray.8" gap="8" align="center">
109109
built by
110-
<Image src="/assets/todiagram_logo.png" alt="Todiagram Logo" h={14} loading="eager" />
110+
<Image
111+
src="/assets/todiagram_logo.png"
112+
alt="Todiagram Logo"
113+
h={14}
114+
w="fit-content"
115+
loading="eager"
116+
/>
111117
</Flex>
112118
</Link>
113119
<StyledHeroTitle>Visualize JSON into interactive graphs</StyledHeroTitle>

src/containers/Landing/LovedBy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const Featured = ({ stars }: LovedByProps) => {
6161

6262
export const LovedBy = ({ stars }: LovedByProps) => {
6363
return (
64-
<Container pos="relative" mx="auto" p={30} fluid>
64+
<Container pos="relative" mx="auto" py={80}>
6565
<Featured stars={stars} />
6666
<Flex wrap="wrap" justify="center" gap="md" mt="md">
6767
<Button

src/containers/Landing/PremiumPreview.tsx

Lines changed: 0 additions & 146 deletions
This file was deleted.

src/containers/Landing/Section1.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const StyledDottedContainer = styled.div`
7575

7676
export const Section1 = () => {
7777
return (
78-
<Container size="xl" my="120">
78+
<Container size="xl" py="80">
7979
<Flex justify="center" align="center">
8080
<Stack maw={634}>
8181
<Title
Lines changed: 36 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { Title, Image, Flex, Box, Button, Text, Paper, Center } from "@mantine/core";
2+
import { Title, Image, Flex, Box, Button, Text, Paper, Container } from "@mantine/core";
33
import styled from "styled-components";
44
import { FaArrowRightLong } from "react-icons/fa6";
55

@@ -11,47 +11,36 @@ const StyledImageWrapper = styled.div`
1111

1212
export const SeePremium = () => {
1313
return (
14-
<Center mx="lg" my={120}>
14+
<Container size="xl">
1515
<Paper
16-
p={30}
17-
w="fit-content"
16+
py={12}
17+
px={30}
1818
bg="#202842"
1919
id="premium"
2020
component="section"
21+
w="100%"
2122
style={{
2223
borderRadius: 20,
24+
overflow: "hidden",
2325
}}
2426
>
25-
<Flex
26-
gap="lg"
27-
align="center"
28-
direction={{
29-
base: "column",
30-
md: "row",
31-
}}
32-
>
27+
<Flex gap="lg" align="center">
3328
<Box flex="1.3">
34-
<Title
35-
pos="relative"
36-
c="white"
37-
order={2}
38-
fz={{
39-
base: 24,
40-
xs: 30,
41-
sm: 36,
42-
}}
43-
fw={600}
44-
mb={20}
45-
>
46-
Upgrade
47-
<Box pos="absolute" mt="-6px" maw="150px" w="100%">
48-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1418 125" fill="#ffbb55">
49-
<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>
50-
</svg>
51-
</Box>
52-
</Title>
53-
<Text c="gray.4" fz="lg" mb="xl" maw={400}>
54-
Larger uploads, faster experience, better diagrams and advanced tools.
29+
<Flex align="center" gap="xs" mb="md">
30+
<Image
31+
src="https://todiagram.com/logo.svg"
32+
alt="Todiagram Logo"
33+
h={20}
34+
w="fit-content"
35+
loading="eager"
36+
/>
37+
<Title fz="20" fw="500" c="gray.2">
38+
Upgrade to ToDiagram
39+
</Title>
40+
</Flex>
41+
42+
<Text c="gray.4" fz="h3" mb="xl" maw={410}>
43+
Larger uploads, faster loading, beautiful diagrams and advanced tools.
5544
</Text>
5645
<Button
5746
component="a"
@@ -60,26 +49,29 @@ export const SeePremium = () => {
6049
w="fit-content"
6150
miw={200}
6251
color="#fe5e49"
63-
size="lg"
52+
size="md"
6453
mt="xl"
6554
rightSection={<FaArrowRightLong />}
6655
radius="xl"
6756
rel="noopener"
6857
>
69-
See more
58+
Upgrade
7059
</Button>
7160
</Box>
7261

73-
<StyledImageWrapper>
74-
<Image
75-
mah="400"
76-
loading="lazy"
77-
src="https://todiagram.com/images/landing/editor.webp"
78-
alt="ToDiagram Editor"
79-
/>
80-
</StyledImageWrapper>
62+
<Box visibleFrom="xs">
63+
<StyledImageWrapper>
64+
<Image
65+
mah="200"
66+
w="100%"
67+
loading="lazy"
68+
src="https://todiagram.com/images/landing/editor.webp"
69+
alt="ToDiagram Editor"
70+
/>
71+
</StyledImageWrapper>
72+
</Box>
8173
</Flex>
8274
</Paper>
83-
</Center>
75+
</Container>
8476
);
8577
};

src/layout/Footer.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { JSONCrackLogo } from "./JsonCrackLogo";
88

99
export const Footer = () => {
1010
return (
11-
<Container mt={150} px={60} pb="xl" bg="black" fluid>
11+
<Container mt={60} px={60} pb="xl" bg="black" fluid>
1212
<Divider color="gray.3" mb="xl" mx={-60} />
1313
<Flex justify="space-between">
1414
<Stack gap={4} visibleFrom="sm">
@@ -39,6 +39,9 @@ export const Footer = () => {
3939
>
4040
Open Source
4141
</Anchor>
42+
<Anchor href="https://todiagram.com" fz="sm" c="gray.5" rel="noopener">
43+
ToDiagram
44+
</Anchor>
4245
</Stack>
4346
<Stack gap="xs">
4447
<Text fz="sm" c="white">

src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export const HomePage = (props: InferGetStaticPropsType<typeof getStaticProps>)
2727
<HeroSection />
2828
<HeroPreview />
2929
<Section1 />
30-
<Features />
3130
<SeePremium />
32-
<LovedBy stars={props.stars} />
31+
<Features />
3332
<FAQ />
33+
<LovedBy stars={props.stars} />
3434
</Layout>
3535
);
3636
};

0 commit comments

Comments
 (0)