Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

improve performance

AykutSarac22c7c1b6e116
diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx
index a57c31e0..6281497b 100644
--- a/src/components/Footer/index.tsx
+++ b/src/components/Footer/index.tsx
@@ -45,7 +45,7 @@ export const Footer = () => (
<StyledFooterText>
<Link href="/">
<a>
- <img width="120" src="assets/icon.png" alt="icon" loading="lazy" />
+ <img width="120" height="20" src="assets/icon.png" alt="icon" loading="lazy" />
</a>
</Link>
<span>
diff --git a/src/containers/Home/index.tsx b/src/containers/Home/index.tsx
index 0bfc4729..505474ed 100644
--- a/src/containers/Home/index.tsx
+++ b/src/containers/Home/index.tsx
@@ -24,7 +24,7 @@ import { PricingCards } from "../PricingCards";
import * as Styles from "./styles";
const SyntaxHighlighter = dynamic(
- () => import("react-syntax-highlighter").then(c => c.PrismAsync),
+ () => import("react-syntax-highlighter/dist/esm/prism-async").then(c => c),
{
ssr: false,
}
@@ -52,46 +52,42 @@ const Navbar = () => (
</Styles.StyledNavbar>
);
-const HeroSection = () => {
- const [isModalVisible, setModalVisible] = React.useState(false);
+const HeroSection = () => (
+ <Styles.StyledHeroSection id="main">
+ <Styles.StyledTitle>
+ <Styles.StyledGradientText>JSON</Styles.StyledGradientText> CRACK
+ </Styles.StyledTitle>
+ <Styles.StyledSubTitle>
+ Seamlessly visualize your JSON data{" "}
+ <Styles.StyledHighlightedText>instantly</Styles.StyledHighlightedText> into graphs.
+ </Styles.StyledSubTitle>
- return (
- <Styles.StyledHeroSection id="main">
- <Styles.StyledTitle>
- <Styles.StyledGradientText>JSON</Styles.StyledGradientText> CRACK
- </Styles.StyledTitle>
- <Styles.StyledSubTitle>
- Seamlessly visualize your JSON data{" "}
- <Styles.StyledHighlightedText>instantly</Styles.StyledHighlightedText> into graphs.
- </Styles.StyledSubTitle>
-
- <Styles.StyledButton href="/editor" link>
- GO TO EDITOR
- <AiOutlineRight strokeWidth="80" />
- </Styles.StyledButton>
+ <Styles.StyledButton href="/editor" link>
+ GO TO EDITOR
+ <AiOutlineRight strokeWidth="80" />
+ </Styles.StyledButton>
- <Styles.StyledButtonWrapper>
- <Styles.StyledSponsorButton
- href="https://github.com/sponsors/AykutSarac"
- target="_blank"
- rel="noreferrer"
- link
- >
- SPONSOR US
- <IoHeart />
- </Styles.StyledSponsorButton>
- <Styles.StyledSponsorButton
- href="https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode"
- link
- isBlue
- >
- GET IT ON VS CODE
- <SiVisualstudiocode />
- </Styles.StyledSponsorButton>
- </Styles.StyledButtonWrapper>
- </Styles.StyledHeroSection>
- );
-};
+ <Styles.StyledButtonWrapper>
+ <Styles.StyledSponsorButton
+ href="https://github.com/sponsors/AykutSarac"
+ target="_blank"
+ rel="noreferrer"
+ link
+ >
+ SPONSOR US
+ <IoHeart />
+ </Styles.StyledSponsorButton>
+ <Styles.StyledSponsorButton
+ href="https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode"
+ link
+ isBlue
+ >
+ GET IT ON VS CODE
+ <SiVisualstudiocode />
+ </Styles.StyledSponsorButton>
+ </Styles.StyledButtonWrapper>
+ </Styles.StyledHeroSection>
+);
const PreviewSection = () => {
const [currentTab, setCurrentTab] = React.useState(0);
@@ -137,6 +133,7 @@ const PreviewSection = () => {
<Styles.StyledPreviewFrame
id="jcPreview"
src={`${baseURL}/widget?json=63b73305c358219fbc421adf`}
+ loading="lazy"
/>
</Styles.StyledPreviewSection>
);
@@ -262,6 +259,7 @@ const EmbedSection = () => (
<div>
<Styles.StyledFrame
src={`${baseURL}/widget?json=63c313d32ffa98f29b462315`}
+ loading="lazy"
></Styles.StyledFrame>
</div>
</Styles.StyledSection>
diff --git a/src/pages/docs.tsx b/src/pages/docs.tsx
index b2002418..1009106c 100644
--- a/src/pages/docs.tsx
+++ b/src/pages/docs.tsx
@@ -7,7 +7,7 @@ import { Footer } from "src/components/Footer";
import styled from "styled-components";
const SyntaxHighlighter = dynamic(
- () => import("react-syntax-highlighter").then(c => c.PrismAsync),
+ () => import("react-syntax-highlighter/dist/esm/prism-async").then(c => c),
{
ssr: false,
}