Skip to content

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

update home page

AykutSaracd1f5e909f78a
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index e24f9206..0824d743 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,4 +1,8 @@
+import Image from "next/image";
+import { useRouter } from "next/router";
import React from "react";
+import { Button } from "src/components/Button";
+import { Container } from "src/components/Container";
import { Navbar } from "src/components/Navbar";
import styled from "styled-components";
@@ -6,10 +10,49 @@ const StyledHome = styled.div`
padding: 24px;
`;
+const StyledContent = styled.div`
+ font-size: 20px;
+ font-weight: 500;
+ color: ${({ theme }) => theme.SILVER};
+ width: 50%;
+`;
+
+const StyledHeader = styled.h1`
+ font-size: 54px;
+ color: ${({ theme }) => theme.FULL_WHITE};
+`;
+
+const StyledSubContent = styled.div`
+ margin-bottom: 20px;
+`;
+
const Home: React.FC = () => {
+ const route = useRouter();
+
return (
<StyledHome>
<Navbar />
+ <Container>
+ <StyledContent>
+ <StyledHeader>
+ Visualize your JSON into interactive graphs.
+ </StyledHeader>
+ <StyledSubContent>
+ Simple visualization tool for your JSON data. No forced structure,
+ simply paste your JSON data and view it instantly.
+ </StyledSubContent>
+ <Button onClick={() => route.push("/editor")}>
+ Start Generating
+ </Button>
+ </StyledContent>
+ <Image
+ src="/graphs.svg"
+ width={500}
+ height={400}
+ layout="fixed"
+ alt="graphs"
+ />
+ </Container>
</StyledHome>
);
};