Skip to content

Commit

Permalink
update landing
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac committed Oct 12, 2024
1 parent 180ca72 commit ef5ff12
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 199 deletions.
2 changes: 1 addition & 1 deletion src/containers/Landing/FAQ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Landing/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Landing/HeroPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 7 additions & 1 deletion src/containers/Landing/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Landing/LovedBy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
146 changes: 0 additions & 146 deletions src/containers/Landing/PremiumPreview.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/containers/Landing/Section1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
80 changes: 36 additions & 44 deletions src/containers/Landing/SeePremium.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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"
Expand All @@ -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>
);
};
5 changes: 4 additions & 1 deletion src/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
);
};
Expand Down

0 comments on commit ef5ff12

Please sign in to comment.