Skip to content

Commit

Permalink
styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AykutSarac committed Dec 24, 2024
1 parent c51cd0e commit d1971f5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 40 deletions.
3 changes: 2 additions & 1 deletion src/features/editor/Toolbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,15 @@ export const Toolbar = ({ isWidget = false }: ToolbarProps) => {
<Button
component="a"
href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=toolbar"
target="_blank"
color="green"
size="compact-sm"
fz="12"
fw="600"
leftSection={<LuCrown />}
mr="6"
>
Try premium for free
Unlock Pro Features
</Button>
)}
<SearchInput />
Expand Down
83 changes: 44 additions & 39 deletions src/features/modals/UpgradeModal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import React from "react";
import type { ModalProps } from "@mantine/core";
import {
Text,
Button,
Modal,
Flex,
Stack,
Title,
ThemeIcon,
CloseButton,
FocusTrap,
Image,
Divider,
List,
ThemeIcon,
Anchor,
} from "@mantine/core";
import Cookie from "js-cookie";
import { LuCrown, LuTrendingUp } from "react-icons/lu";
import { LuCheckCircle } from "react-icons/lu";
import useConfig from "src/store/useConfig";

export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
Expand Down Expand Up @@ -47,53 +48,57 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
style={{ objectPosition: "left" }}
/>
<Divider orientation="vertical" />
<Stack gap="24" px="40" py="20">
<Flex justify="space-between">
<Stack gap="24" px="40" py="20" w="100%">
<Flex justify="space-between" mr="-20">
<Title c="bright" fw="500" fz="24">
Upgrade to unlock all features
Try the new editor!
</Title>
<CloseButton onClick={handleCloseModal} />
</Flex>
<Flex gap="20">
<ThemeIcon color="violet" variant="light" size="xl" radius="xl">
<LuCrown size="20" />
</ThemeIcon>
<Stack gap="4">
<Title c="gray" order={3} fw="500" fz="16">
Load larger files
</Title>
<Text fz="14" c="dimmed">
We made it easy to visualize, format, and explore JSON data, faster than ever.
</Text>
</Stack>
</Flex>
<Flex gap="20">
<ThemeIcon color="violet" variant="light" size="xl" radius="xl">
<LuTrendingUp size="20" />
</ThemeIcon>
<Stack gap="4">
<Title c="gray" order={3} fw="500" fz="16">
Powerful, colorful editor
</Title>
<Text fz="14" c="dimmed">
Modify data, preview images, inspect nodes, and more!
</Text>
</Stack>
</Flex>
<List
spacing="4"
icon={
<ThemeIcon variant="transparent" radius="xl" size="sm" color="green">
<LuCheckCircle size="16" />
</ThemeIcon>
}
>
<List.Item>Large data support</List.Item>
<List.Item>Custom themes</List.Item>
<List.Item>Cloud Storage</List.Item>
<List.Item>Compare Data</List.Item>
<List.Item>AI-Filter</List.Item>
<List.Item>API Integration</List.Item>
<List.Item>
<Anchor
href="https://chromewebstore.google.com/detail/todiagram/gpcnkpjdmgihedngamkhendifclghjhn"
target="_blank"
rel="noopener"
c="inherit"
td="underline"
>
Chrome Extension
</Anchor>
</List.Item>
</List>
<Button
component="a"
href="https://todiagram.com/editor?utm_source=jsoncrack&utm_medium=upgrade_modal"
target="_blank"
mb="-16"
color="violet"
color="green"
size="md"
radius="md"
leftSection={<LuCrown />}
fullWidth
leftSection={
<Image
src="https://todiagram.com/logo.svg"
alt="logo"
w={20}
style={{ filter: "grayscale(1) brightness(0) invert(1)" }}
/>
}
>
Try premium for free, no registration
</Button>
<Button size="md" variant="subtle" color="gray" radius="md" onClick={handleCloseModal}>
Maybe later
Open Editor
</Button>
</Stack>
</Flex>
Expand Down

0 comments on commit d1971f5

Please sign in to comment.