|
@@ -1,4 +1,8 @@
|
|
|
|
+import Image from "next/image";
|
|
|
|
+import { useRouter } from "next/router";
|
|
import React from "react";
|
|
import React from "react";
|
|
|
|
+import { Button } from "src/components/Button";
|
|
|
|
+import { Container } from "src/components/Container";
|
|
import { Navbar } from "src/components/Navbar";
|
|
import { Navbar } from "src/components/Navbar";
|
|
import styled from "styled-components";
|
|
import styled from "styled-components";
|
|
|
|
|
|
@@ -6,10 +10,49 @@ const StyledHome = styled.div`
|
|
padding: 24px;
|
|
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 Home: React.FC = () => {
|
|
|
|
+ const route = useRouter();
|
|
|
|
+
|
|
return (
|
|
return (
|
|
<StyledHome>
|
|
<StyledHome>
|
|
<Navbar />
|
|
<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>
|
|
</StyledHome>
|
|
);
|
|
);
|
|
};
|
|
};
|