11import 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" ;
33import styled from "styled-components" ;
44import { FaArrowRightLong } from "react-icons/fa6" ;
55
@@ -11,47 +11,36 @@ const StyledImageWrapper = styled.div`
1111
1212export 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} ;
0 commit comments