From 594ffe4f7b82b3cda42f6e3cf63dbe216440f854 Mon Sep 17 00:00:00 2001 From: AykutSarac Date: Thu, 12 Dec 2024 17:44:54 +0300 Subject: [PATCH] update modals --- src/features/modals/NodeModal/index.tsx | 2 -- src/features/modals/UpgradeModal/index.tsx | 20 +++++++----------- src/layout/Landing/HeroSection.tsx | 24 ++++++++++++++++++++++ 3 files changed, 31 insertions(+), 15 deletions(-) diff --git a/src/features/modals/NodeModal/index.tsx b/src/features/modals/NodeModal/index.tsx index 674fdf9..40b0c32 100644 --- a/src/features/modals/NodeModal/index.tsx +++ b/src/features/modals/NodeModal/index.tsx @@ -3,7 +3,6 @@ import type { ModalProps } from "@mantine/core"; import { Modal, Stack, Text, ScrollArea, Button } from "@mantine/core"; import { CodeHighlight } from "@mantine/code-highlight"; import { event as gaEvent } from "nextjs-google-analytics"; -import { VscLock } from "react-icons/vsc"; import useGraph from "src/features/editor/views/GraphView/stores/useGraph"; import useModal from "src/store/useModal"; @@ -38,7 +37,6 @@ export const NodeModal = ({ opened, onClose }: ModalProps) => { setVisible("UpgradeModal", true); gaEvent("click_node_edit"); }} - rightSection={} > Edit diff --git a/src/features/modals/UpgradeModal/index.tsx b/src/features/modals/UpgradeModal/index.tsx index be4f734..796d354 100644 --- a/src/features/modals/UpgradeModal/index.tsx +++ b/src/features/modals/UpgradeModal/index.tsx @@ -10,15 +10,13 @@ import { ThemeIcon, CloseButton, FocusTrap, - Image, - Divider, } from "@mantine/core"; import { LuCrown, LuTrendingUp } from "react-icons/lu"; export const UpgradeModal = ({ opened, onClose }: ModalProps) => { return ( { radius="lg" withCloseButton={false} styles={{ body: { padding: 0 } }} - overlayProps={{ blur: 1 }} + overlayProps={{ blur: 2 }} > - todiagram - @@ -45,11 +41,10 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => { </ThemeIcon> <Stack gap="4"> <Title c="gray" order={3} fw="500" fz="16"> - Accurate & beautiful diagrams + New diagram structure - New diagram structure helps you to understand the data, modify from diagrams, - customize colors, preview images. + 50% less size, faster & customizable! @@ -59,11 +54,10 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => { - Larger file support, faster performance + Powerful - Load up to 4MB without performance issues, open multiple documents, and save work - faster. + Modify data, preview images, inspect nodes, and more! @@ -77,7 +71,7 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => { radius="md" leftSection={} > - Try premium for free + Try premium for free, no registration + +