Skip to content

Commit

Permalink
landing update
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac committed Sep 1, 2024
1 parent edb46ab commit 378e120
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 336 deletions.
6 changes: 0 additions & 6 deletions default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@ server {
location /widget {
try_files $uri /widget.html;
}


location /docs {
try_files $uri /docs.html;
}


location /pricing {
try_files $uri /pricing.html;
}

location /forgot-password {
try_files $uri /forgot-password.html;
}
Expand Down
1 change: 0 additions & 1 deletion public/sitemap.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
https://jsoncrack.com
https://jsoncrack.com/pricing
https://jsoncrack.com/sign-in
https://jsoncrack.com/sign-up
https://jsoncrack.com/oauth
Expand Down
63 changes: 30 additions & 33 deletions src/containers/Landing/PremiumVsFree.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
import React from "react";
import Link from "next/link";
import { Title, Image, Container, Flex, Box, Button, Text } from "@mantine/core";
import { Title, Image, Flex, Box, Button, Text, Paper, Center } from "@mantine/core";
import styled from "styled-components";
import { FaArrowRightLong } from "react-icons/fa6";

const StyledImageWrapper = styled.div`
flex: 1.8;
width: 100%;
filter: drop-shadow(0px 0px 30px rgba(236, 236, 236, 0.2));
margin: 0 -30px -30px;
padding-left: 30px;
padding-top: 30px;
`;

export const PremiumVsFree = () => {
return (
<Container p={30} bg="#202842" id="premium" fluid component="section" my={120}>
<Container size="lg">
<Center mx="lg" my={120}>
<Paper
p={30}
w="fit-content"
bg="#202842"
id="premium"
component="section"
style={{
borderRadius: 20,
}}
>
<Flex
gap="lg"
align="center"
Expand All @@ -35,54 +43,43 @@ export const PremiumVsFree = () => {
fw={600}
mb={20}
>
Premium
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.5" fz="lg" mb="xl">
Upgrade for larger uploads, refined editor, faster experience, advanced tools and
more.
<Text c="gray.4" fz="lg" mb="xl" maw={400}>
Larger uploads, faster experience, better diagrams and advanced tools.
</Text>
<Button
component={Link}
href="/#pricing"
prefetch={false}
component="a"
href="https://todiagram.com"
display="block"
w="fit-content"
miw={200}
variant="white"
color="gray"
color="#fe5e49"
size="lg"
mt="xl"
rightSection={<FaArrowRightLong />}
radius="xl"
fz="md"
>
Explore More
See more
</Button>
</Box>

<StyledImageWrapper>
<Link href="/#pricing" prefetch={false}>
<Image
loading="lazy"
src="./assets/preview/1.webp"
alt="Pro"
style={{
borderRadius: 10,
overflow: "hidden",
border: "1px solid #c1c1c1",
outline: "1px solid #c1c1c1",
outlineOffset: "6px",
}}
/>
</Link>
<Image
mah="400"
loading="lazy"
src="https://todiagram.com/images/landing/editor.webp"
alt="ToDiagram Editor"
/>
</StyledImageWrapper>
</Flex>
</Container>
</Container>
</Paper>
</Center>
);
};
2 changes: 1 addition & 1 deletion src/layout/ExternalMode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const ExternalMode = () => {
<Button
onClick={closeModal}
component="a"
href="https://jsoncrack.com/pricing"
href="https://jsoncrack.com"
target="_blank"
variant="outline"
color="red"
Expand Down
2 changes: 0 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Features } from "src/containers/Landing/Features";
import { HeroPreview } from "src/containers/Landing/HeroPreview";
import { HeroSection } from "src/containers/Landing/HeroSection";
import { PremiumVsFree } from "src/containers/Landing/PremiumVsFree";
import { Pricing } from "src/containers/Landing/Pricing";
import Layout from "src/layout/Layout";

export const HomePage = () => {
Expand All @@ -26,7 +25,6 @@ export const HomePage = () => {
<HeroPreview />
<Features />
<PremiumVsFree />
<Pricing />
<FAQ />
</Layout>
);
Expand Down
Loading

0 comments on commit 378e120

Please sign in to comment.