mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-12 19:02:53 +08:00
update upgrade modal
This commit is contained in:
parent
d5f9bfc7fb
commit
9def292467
Binary file not shown.
Before Width: | Height: | Size: 228 KiB |
Binary file not shown.
Before Width: | Height: | Size: 153 KiB |
@ -2,23 +2,21 @@ import React from "react";
|
||||
import type { ModalProps } from "@mantine/core";
|
||||
import {
|
||||
Text,
|
||||
List,
|
||||
Button,
|
||||
Modal,
|
||||
Flex,
|
||||
Box,
|
||||
Image,
|
||||
Stack,
|
||||
Title,
|
||||
CloseButton,
|
||||
ThemeIcon,
|
||||
AspectRatio,
|
||||
Paper,
|
||||
} from "@mantine/core";
|
||||
import { LuCrown, LuPuzzle, LuTrendingUp } from "react-icons/lu";
|
||||
import { LuCrown, LuTrendingUp } from "react-icons/lu";
|
||||
|
||||
export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
|
||||
return (
|
||||
<Modal
|
||||
size="auto"
|
||||
size="550"
|
||||
opened={opened}
|
||||
onClose={onClose}
|
||||
zIndex={1001}
|
||||
@ -28,28 +26,10 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
|
||||
styles={{ body: { padding: 0 } }}
|
||||
overlayProps={{ blur: 1 }}
|
||||
>
|
||||
<Flex w="100%" direction="row" justify="space-between">
|
||||
<Image
|
||||
w="100%"
|
||||
maw="400"
|
||||
h="auto"
|
||||
src="/diagram.png"
|
||||
alt="ToDiagram"
|
||||
fit="cover"
|
||||
visibleFrom="md"
|
||||
style={{ borderRight: "1px solid #f0f0f0" }}
|
||||
/>
|
||||
<Box maw="550" w="100%">
|
||||
<Flex p="20" justify="end">
|
||||
<CloseButton onClick={onClose} />
|
||||
</Flex>
|
||||
<Stack gap="24" px="40" pb="20">
|
||||
<Stack gap="24" px="40" py="20">
|
||||
<Title c="bright" fw="500" fz="24">
|
||||
Upgrade to unlock all features
|
||||
</Title>
|
||||
<Title c="gray" order={2} fw="500" fz="16">
|
||||
Here's a peak at what you get with ToDiagram:
|
||||
</Title>
|
||||
<Flex gap="20">
|
||||
<ThemeIcon color="green" variant="light" size="xl" radius="xl">
|
||||
<LuCrown size="20" />
|
||||
@ -78,27 +58,33 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
|
||||
</Text>
|
||||
</Stack>
|
||||
</Flex>
|
||||
<Flex gap="20">
|
||||
<ThemeIcon color="green" variant="light" size="xl" radius="xl">
|
||||
<LuPuzzle size="20" />
|
||||
</ThemeIcon>
|
||||
<Stack gap="4">
|
||||
<Title c="gray" order={3} fw="500" fz="16">
|
||||
The tools you need to succeed
|
||||
</Title>
|
||||
<Text fz="14" c="dimmed">
|
||||
Compare data on diagrams, use AI-powered filters, and more. Get the tools you need
|
||||
to succeed in your work.
|
||||
</Text>
|
||||
</Stack>
|
||||
</Flex>
|
||||
<Title c="bright" mb="-14" order={2} fw="500" fz="16">
|
||||
Ready to upgrade?
|
||||
</Title>
|
||||
<List fz="14">
|
||||
<List.Item>Cancel anytime. No risk, no hassle.</List.Item>
|
||||
<List.Item>7-day money back guarantee.</List.Item>
|
||||
</List>
|
||||
<Paper
|
||||
p={0}
|
||||
w="100%"
|
||||
h="fit-content"
|
||||
bg="transparent"
|
||||
style={{
|
||||
overflow: "hidden",
|
||||
borderRadius: "12px",
|
||||
border: "1px solid #e5e5e5",
|
||||
boxShadow:
|
||||
"rgba(25, 86, 88, 0.06) 0px 17px 37px 0px, rgba(25, 86, 88, 0.05) 0px 67px 67px 0px",
|
||||
}}
|
||||
>
|
||||
<AspectRatio ratio={1000 / 528} w="100%" h="100%">
|
||||
<video
|
||||
autoPlay
|
||||
muted
|
||||
loop
|
||||
preload="auto"
|
||||
playsInline
|
||||
poster="https://todiagram.com/videos/diagrams.webp"
|
||||
style={{ display: "block" }}
|
||||
>
|
||||
<source src="https://todiagram.com/videos/diagrams.mp4" type="video/mp4" />
|
||||
</video>
|
||||
</AspectRatio>
|
||||
</Paper>
|
||||
<Button
|
||||
component="a"
|
||||
href="https://todiagram.com/sign-up?utm_source=jsoncrack&utm_medium=upgrade_modal"
|
||||
@ -108,14 +94,12 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
|
||||
size="md"
|
||||
radius="md"
|
||||
>
|
||||
Open ToDiagram Editor
|
||||
Upgrade to ToDiagram
|
||||
</Button>
|
||||
<Button size="md" variant="subtle" color="gray" radius="md" onClick={onClose}>
|
||||
Maybe later
|
||||
</Button>
|
||||
</Stack>
|
||||
</Box>
|
||||
</Flex>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user