mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-02-04 01:32:54 +08:00
styling
This commit is contained in:
parent
811d1b11e6
commit
a679149d03
@ -1,7 +1,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Plus_Jakarta_Sans } from "next/font/google";
|
import { Plus_Jakarta_Sans } from "next/font/google";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Stack, Flex, Text, Button, Badge } from "@mantine/core";
|
import { Stack, Flex, Button, Badge } from "@mantine/core";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import { FaChevronRight, FaFire } from "react-icons/fa6";
|
import { FaChevronRight, FaFire } from "react-icons/fa6";
|
||||||
|
|
||||||
@ -148,9 +148,6 @@ export const HeroSection = () => {
|
|||||||
Go to Editor
|
Go to Editor
|
||||||
</Button>
|
</Button>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Text ta="center" size="xs" c="dimmed">
|
|
||||||
Supports JSON, CSV, XML, YAML, TOML
|
|
||||||
</Text>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
</StyledHeroSectionBody>
|
</StyledHeroSectionBody>
|
||||||
</StyledHeroSection>
|
</StyledHeroSection>
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Text, Flex, Group, Select } from "@mantine/core";
|
import { Text, Flex, Group, Select, Image } from "@mantine/core";
|
||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
import { AiOutlineFullscreen } from "react-icons/ai";
|
import { AiOutlineFullscreen } from "react-icons/ai";
|
||||||
import { FiDownload } from "react-icons/fi";
|
import { FiDownload } from "react-icons/fi";
|
||||||
import { SearchInput } from "src/containers/Toolbar/SearchInput";
|
import { SearchInput } from "src/containers/Toolbar/SearchInput";
|
||||||
import { FileFormat } from "src/enums/file.enum";
|
import { FileFormat } from "src/enums/file.enum";
|
||||||
import { JSONCrackLogo } from "src/layout/JsonCrackLogo";
|
import { JSONCrackLogo } from "src/layout/JsonCrackLogo";
|
||||||
import { gaEvent } from "src/lib/utils/gaEvent";
|
|
||||||
import useFile from "src/store/useFile";
|
import useFile from "src/store/useFile";
|
||||||
import useModal from "src/store/useModal";
|
import useModal from "src/store/useModal";
|
||||||
import useUser from "src/store/useUser";
|
import useUser from "src/store/useUser";
|
||||||
@ -80,14 +79,14 @@ export const Toolbar = ({ isWidget = false }: ToolbarProps) => {
|
|||||||
<Group gap="xs" justify="right" w="100%" style={{ flexWrap: "nowrap" }}>
|
<Group gap="xs" justify="right" w="100%" style={{ flexWrap: "nowrap" }}>
|
||||||
{!isWidget && (
|
{!isWidget && (
|
||||||
<Styles.StyledToolElement
|
<Styles.StyledToolElement
|
||||||
onClick={() => {
|
onClick={() => window.open("https://todiagram.com?ref=jsoncrack.com")}
|
||||||
setVisible("upgrade")(true);
|
|
||||||
gaEvent("Toolbar", "click upgrade premium");
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<Text c="bright" fw={600} fz="xs">
|
<Flex align="center" gap="4">
|
||||||
Upgrade Editor
|
<Image src="https://todiagram.com/logo.svg" alt="ToDiagram" width={14} height={14} />
|
||||||
</Text>
|
<Text c="bright" fw={600} fz="xs">
|
||||||
|
ToDiagram
|
||||||
|
</Text>
|
||||||
|
</Flex>
|
||||||
</Styles.StyledToolElement>
|
</Styles.StyledToolElement>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Link from "next/link";
|
|
||||||
import { Button } from "@mantine/core";
|
import { Button } from "@mantine/core";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import { JSONCrackLogo } from "./JsonCrackLogo";
|
import { JSONCrackLogo } from "./JsonCrackLogo";
|
||||||
@ -60,15 +59,14 @@ export const Navbar = () => {
|
|||||||
</Left>
|
</Left>
|
||||||
<Center>
|
<Center>
|
||||||
<Button
|
<Button
|
||||||
component={Link}
|
component="a"
|
||||||
prefetch={false}
|
href="https://todiagram.com"
|
||||||
href="/#pricing"
|
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
color="black"
|
color="black"
|
||||||
size="md"
|
size="md"
|
||||||
radius="md"
|
radius="md"
|
||||||
>
|
>
|
||||||
Pricing
|
Upgrade
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
component="a"
|
component="a"
|
||||||
@ -113,7 +111,7 @@ export const Navbar = () => {
|
|||||||
visibleFrom="sm"
|
visibleFrom="sm"
|
||||||
size="md"
|
size="md"
|
||||||
>
|
>
|
||||||
Free editor
|
Editor
|
||||||
</Button>
|
</Button>
|
||||||
</Right>
|
</Right>
|
||||||
</StyledNavbar>
|
</StyledNavbar>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user