Skip to content

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

feat: add img alt texts

AykutSarac30d39e70ac2d
diff --git a/src/layout/Layout/index.tsx b/src/layout/Layout/index.tsx
index a411bebe..d0697c41 100644
--- a/src/layout/Layout/index.tsx
+++ b/src/layout/Layout/index.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import { useMantineColorScheme } from "@mantine/core";
+import { MantineProvider } from "@mantine/core";
import styled, { ThemeProvider } from "styled-components";
import { lightTheme } from "src/constants/theme";
import { Footer } from "../Footer";
@@ -10,21 +10,17 @@ const StyledLayoutWrapper = styled.div`
`;
const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
- const { setColorScheme } = useMantineColorScheme();
-
- React.useEffect(() => {
- setColorScheme("light");
- }, [setColorScheme]);
-
return (
<React.Suspense>
- <ThemeProvider theme={lightTheme}>
- <StyledLayoutWrapper>
- <Navbar />
- {children}
- <Footer />
- </StyledLayoutWrapper>
- </ThemeProvider>
+ <MantineProvider forceColorScheme="light">
+ <ThemeProvider theme={lightTheme}>
+ <StyledLayoutWrapper>
+ <Navbar />
+ {children}
+ <Footer />
+ </StyledLayoutWrapper>
+ </ThemeProvider>
+ </MantineProvider>
</React.Suspense>
);
};
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 4eafd6ce..03c5a03a 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -182,6 +182,37 @@ const StyledCarouselWrapper = styled.section`
const metaDescription =
"JSON Crack Editor is a tool for visualizing into graphs, analyzing, editing, formatting, querying, transforming and validating JSON, CSV, YAML, XML, and more.";
+const images = [
+ {
+ id: 1,
+ alt: "Preview of JSON Crack Premium Editor highligting the compact visualization style of the graphs.",
+ },
+ {
+ id: 2,
+ alt: "Preview JSON Crack Premium Editor highlighting the data compare feature feature, showing the differences with red background color and using symbols to indicate the changes.",
+ },
+ {
+ id: 3,
+ alt: "Preview JSON Crack Premium Editor highlighting the data search feature, showing the search results in the data.",
+ },
+ {
+ id: 4,
+ alt: "Preview JSON Crack Premium Editor highlighting the data edit feature, showing the data in a table format with the ability to edit the data directly.",
+ },
+ {
+ id: 5,
+ alt: "Preview JSON Crack Premium Editor highlighting the data view options, showing the data in a tree view and graph view.",
+ },
+ {
+ id: 6,
+ alt: "Preview JSON Crack Premium Editor highlighting type generation feature. TypeScript, Go, JSON Schema, and more are shown.",
+ },
+ {
+ id: 7,
+ alt: "Preview JSON Crack Premium Editor highlighting the image download feature, showing the download options for the data.",
+ },
+];
+
export const HomePage = () => {
const [card1, bg1] = useBackgroundCursorPosition("#f2f2f2", "#ffffff", "200px");
const [card2, bg2] = useBackgroundCursorPosition("#f2f2f2", "#ffffff", "200px");
@@ -273,22 +304,17 @@ export const HomePage = () => {
height="100%"
style={{ flex: 1 }}
>
- <Carousel.Slide>
- <img width="1440" height="760" src="./assets/preview/1.jpeg" alt="Preview 1" />
- </Carousel.Slide>
- {Array(6)
- .fill(0)
- .map((_, index) => (
- <Carousel.Slide key={index}>
- <img
- loading="lazy"
- width="1440"
- height="760"
- src={`./assets/preview/${index + 2}.jpeg`}
- alt={`Preview ${index + 2}`}
- />
- </Carousel.Slide>
- ))}
+ {images.map(image => (
+ <Carousel.Slide key={image.id}>
+ <img
+ src={`./assets/preview/${image.id}.jpeg`}
+ alt={image.alt}
+ loading={image.id === 1 ? "eager" : "lazy"}
+ width="1440"
+ height="760"
+ />
+ </Carousel.Slide>
+ ))}
</Carousel>
</StyledCarouselWrapper>
<Paper