@@ -8,17 +8,17 @@ import {
88 Stack ,
99 Title ,
1010 ThemeIcon ,
11- AspectRatio ,
12- Paper ,
1311 CloseButton ,
1412 FocusTrap ,
13+ Image ,
14+ Divider ,
1515} from "@mantine/core" ;
1616import { LuCrown , LuTrendingUp } from "react-icons/lu" ;
1717
1818export const UpgradeModal = ( { opened, onClose } : ModalProps ) => {
1919 return (
2020 < Modal
21- size = "550 "
21+ size = "800 "
2222 opened = { opened }
2323 onClose = { onClose }
2424 zIndex = { 1001 }
@@ -29,83 +29,61 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
2929 overlayProps = { { blur : 1 } }
3030 >
3131 < FocusTrap . InitialFocus />
32- < Stack gap = "24" px = "40" py = "20" >
33- < Flex justify = "space-between" >
34- < Title c = "bright" fw = "500" fz = "24" >
35- Upgrade to unlock all features
36- </ Title >
37- < CloseButton onClick = { onClose } />
38- </ Flex >
39- < Flex gap = "20" >
40- < ThemeIcon color = "green" variant = "light" size = "xl" radius = "xl" >
41- < LuCrown size = "20" />
42- </ ThemeIcon >
43- < Stack gap = "4" >
44- < Title c = "gray" order = { 3 } fw = "500" fz = "16" >
45- Accurate & beautiful diagrams
32+ < Flex >
33+ < Image src = "./assets/todiagram_img.webp" alt = "todiagram" w = "350" fit = "contain" px = "lg" />
34+ < Divider orientation = "vertical" />
35+ < Stack gap = "24" px = "40" py = "20" >
36+ < Flex justify = "space-between" >
37+ < Title c = "bright" fw = "500" fz = "24" >
38+ Upgrade to unlock all features
4639 </ Title >
47- < Text fz = "14" c = "dimmed" >
48- New diagram structure helps you to understand the data, modify from diagrams,
49- customize colors, preview images.
50- </ Text >
51- </ Stack >
52- </ Flex >
53- < Flex gap = "20" >
54- < ThemeIcon color = "green" variant = "light" size = "xl" radius = "xl" >
55- < LuTrendingUp size = "20" />
56- </ ThemeIcon >
57- < Stack gap = "4" >
58- < Title c = "gray" order = { 3 } fw = "500" fz = "16" >
59- Larger file support, faster performance
60- </ Title >
61- < Text fz = "14" c = "dimmed" >
62- Load up to 4MB without performance issues, open multiple documents, and save work
63- faster.
64- </ Text >
65- </ Stack >
66- </ Flex >
67- < Paper
68- p = { 0 }
69- w = "100%"
70- h = "fit-content"
71- bg = "transparent"
72- style = { {
73- overflow : "hidden" ,
74- borderRadius : "12px" ,
75- border : "1px solid #e5e5e5" ,
76- boxShadow :
77- "rgba(25, 86, 88, 0.06) 0px 17px 37px 0px, rgba(25, 86, 88, 0.05) 0px 67px 67px 0px" ,
78- } }
79- >
80- < AspectRatio ratio = { 1000 / 528 } w = "100%" h = "100%" >
81- < video
82- autoPlay
83- muted
84- loop
85- preload = "auto"
86- playsInline
87- poster = "https://todiagram.com/images/meta/design-tokens.webp"
88- style = { { display : "block" } }
89- >
90- < source src = "https://todiagram.com/videos/diagrams.mp4" type = "video/mp4" />
91- </ video >
92- </ AspectRatio >
93- </ Paper >
94- < Button
95- component = "a"
96- href = "https://todiagram.com/editor?utm_source=jsoncrack& utm_medium = upgrade_modal "
97- target = "_blank"
98- mb = "-16"
99- color = "green"
100- size = "md"
101- radius = "md"
102- >
103- Try premium for free
104- </ Button >
105- < Button size = "md" variant = "subtle" color = "gray" radius = "md" onClick = { onClose } >
106- Maybe later
107- </ Button >
108- </ Stack >
40+ < CloseButton onClick = { onClose } />
41+ </ Flex >
42+ < Flex gap = "20" >
43+ < ThemeIcon color = "violet" variant = "light" size = "xl" radius = "xl" >
44+ < LuCrown size = "20" />
45+ </ ThemeIcon >
46+ < Stack gap = "4" >
47+ < Title c = "gray" order = { 3 } fw = "500" fz = "16" >
48+ Accurate & beautiful diagrams
49+ </ Title >
50+ < Text fz = "14" c = "dimmed" >
51+ New diagram structure helps you to understand the data, modify from diagrams,
52+ customize colors, preview images.
53+ </ Text >
54+ </ Stack >
55+ </ Flex >
56+ < Flex gap = "20" >
57+ < ThemeIcon color = "violet" variant = "light" size = "xl" radius = "xl" >
58+ < LuTrendingUp size = "20" />
59+ </ ThemeIcon >
60+ < Stack gap = "4" >
61+ < Title c = "gray" order = { 3 } fw = "500" fz = "16" >
62+ Larger file support, faster performance
63+ </ Title >
64+ < Text fz = "14" c = "dimmed" >
65+ Load up to 4MB without performance issues, open multiple documents, and save work
66+ faster.
67+ </ Text >
68+ </ Stack >
69+ </ Flex >
70+ < Button
71+ component = "a"
72+ href = "https://todiagram.com/editor?utm_source=jsoncrack& utm_medium = upgrade_modal "
73+ target = "_blank"
74+ mb = "-16"
75+ color = "violet"
76+ size = "md"
77+ radius = "md"
78+ leftSection = { < LuCrown /> }
79+ >
80+ Try premium for free
81+ </ Button >
82+ < Button size = "md" variant = "subtle" color = "gray" radius = "md" onClick = { onClose } >
83+ Maybe later
84+ </ Button >
85+ </ Stack >
86+ </ Flex >
10987 </ Modal >
11088 ) ;
11189} ;
0 commit comments