From 0ffbb58621523d7b6b4c3ced432d6d79edbf4c16 Mon Sep 17 00:00:00 2001 From: AykutSarac Date: Fri, 10 May 2024 10:49:41 +0300 Subject: [PATCH] fix: theme color --- src/layout/Footer/index.tsx | 11 ++++++----- src/layout/Layout/index.tsx | 7 ------- src/layout/Navbar/index.tsx | 8 ++++---- src/pages/docs.tsx | 8 ++++---- src/pages/index.tsx | 33 ++++++++++++++++++++++++--------- src/pages/pricing.tsx | 6 +++--- 6 files changed, 41 insertions(+), 32 deletions(-) diff --git a/src/layout/Footer/index.tsx b/src/layout/Footer/index.tsx index 2f2eecd..c3ec835 100644 --- a/src/layout/Footer/index.tsx +++ b/src/layout/Footer/index.tsx @@ -1,4 +1,5 @@ import React from "react"; +import Link from "next/link"; import { Anchor, Container, Divider, Flex, Stack, Text, ThemeIcon } from "@mantine/core"; import dayjs from "dayjs"; import { FaDiscord, FaGithub, FaLinkedin } from "react-icons/fa"; @@ -28,7 +29,7 @@ export const Footer = () => { > VS Code - + Pricing @@ -44,10 +45,10 @@ export const Footer = () => { > Affiliate - + FAQ - + Docs @@ -92,12 +93,12 @@ export const Footer = () => { © {dayjs().get("year")} JSON Crack - + Terms - + Privacy diff --git a/src/layout/Layout/index.tsx b/src/layout/Layout/index.tsx index 295f940..06f6fb4 100644 --- a/src/layout/Layout/index.tsx +++ b/src/layout/Layout/index.tsx @@ -1,5 +1,4 @@ import React from "react"; -import { useMantineColorScheme } from "@mantine/core"; import styled, { ThemeProvider } from "styled-components"; import { lightTheme } from "src/constants/theme"; import { Footer } from "../Footer"; @@ -10,12 +9,6 @@ const StyledLayoutWrapper = styled.div` `; const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => { - const { setColorScheme } = useMantineColorScheme(); - - React.useEffect(() => { - setColorScheme("light"); - }, [setColorScheme]); - return ( diff --git a/src/layout/Navbar/index.tsx b/src/layout/Navbar/index.tsx index 27d74cd..0e5cef4 100644 --- a/src/layout/Navbar/index.tsx +++ b/src/layout/Navbar/index.tsx @@ -45,7 +45,7 @@ export const Navbar = () => { href="https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode" target="_blank" variant="subtle" - color="dark" + color="black" radius="md" visibleFrom="sm" size="md" @@ -57,7 +57,7 @@ export const Navbar = () => { component={Link} href="/pricing" variant="subtle" - color="dark" + color="black" radius="md" visibleFrom="sm" size="md" @@ -70,7 +70,7 @@ export const Navbar = () => { prefetch={false} href="/docs" variant="subtle" - color="dark" + color="black" radius="md" visibleFrom="sm" size="md" @@ -84,7 +84,7 @@ export const Navbar = () => { component="a" href="https://app.jsoncrack.com/sign-in" variant="subtle" - color="dark" + color="black" radius="xl" visibleFrom="sm" size="md" diff --git a/src/pages/docs.tsx b/src/pages/docs.tsx index 7624bd0..97c8149 100644 --- a/src/pages/docs.tsx +++ b/src/pages/docs.tsx @@ -47,7 +47,7 @@ const Docs = () => { Embed - + # Fetching from URL @@ -77,7 +77,7 @@ const Docs = () => { - + # Embed Saved JSON @@ -98,7 +98,7 @@ const Docs = () => { - + # Communicating with API @@ -137,7 +137,7 @@ const Docs = () => { - + ◼︎ On Page Load diff --git a/src/pages/index.tsx b/src/pages/index.tsx index fbd4b2b..80334cd 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -380,7 +380,14 @@ export const HomePage = () => { - + <Title + c="dark" + order={2} + fz={{ sm: 36, md: 48 }} + fw={600} + mt={50} + style={{ textAlign: "center" }} + > Unlock the Ease of Visualizing Your Data @@ -420,7 +427,7 @@ export const HomePage = () => { > - + <Title c="black" order={3} fw={500} fz={{ sm: 20, md: 28 }}> Compare @@ -466,7 +473,7 @@ export const HomePage = () => { > - + <Title c="black" order={3} fw={500} fz={{ sm: 20, md: 28 }}> Edit @@ -512,7 +519,7 @@ export const HomePage = () => { > - + <Title c="black" order={3} fw={500} fz={{ sm: 20, md: 28 }}> Search @@ -559,7 +566,7 @@ export const HomePage = () => { > - + <Title c="black" order={3} fw={500} fz={{ sm: 20, md: 28 }}> Choose Your Format @@ -572,6 +579,7 @@ export const HomePage = () => { w="100%" mih={{ sm: 10, md: 40 }} variant="light" + c="indigo" color="indigo" radius="sm" size="xl" @@ -587,6 +595,7 @@ export const HomePage = () => { color="cyan" radius="sm" size="xl" + c="cyan" > YAML @@ -598,6 +607,7 @@ export const HomePage = () => { variant="light" color="grape" radius="sm" + c="grape" size="xl" > CSV @@ -611,6 +621,7 @@ export const HomePage = () => { color="red" radius="sm" size="xl" + c="red" > XML @@ -625,14 +636,18 @@ export const HomePage = () => { - + <Title c="dark" order={2} fz={36} fw={600} mt={100} style={{ textAlign: "center" }}> Frequently Asked Questions - + {FAQ.map(({ title, content }) => ( - {title} - {content} + + {title} + + + {content} + ))} diff --git a/src/pages/pricing.tsx b/src/pages/pricing.tsx index 4fc2703..81a8dce 100644 --- a/src/pages/pricing.tsx +++ b/src/pages/pricing.tsx @@ -56,7 +56,7 @@ export const PricingCards = () => {
setIsMonthly(v === "Monthly")} size="md" @@ -100,7 +100,7 @@ export const PricingCards = () => { Sign Up - + Open Source @@ -175,7 +175,7 @@ export const PricingCards = () => { Start 1 Day Free Trial - + Graphs: 5X faster, compact and smooth