✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
add producthunt embed
Aykut Saraç8e88bdb2fb43
diff --git a/src/components/Producthunt/index.tsx b/src/components/Producthunt/index.tsxnew file mode 100644index 00000000..3b366f4a--- /dev/null+++ b/src/components/Producthunt/index.tsx@@ -0,0 +1,28 @@+import React from "react";+import styled from "styled-components";++const StyledProducthunt = styled.a`+ position: fixed;+ bottom: 12px;+ right: 12px;+`;++const StyledImage = styled.img`+ width: 250px;+ height: 54px;+`;++export const Producthunt = () => {+ return (+ <StyledProducthunt+ href="https://www.producthunt.com/posts/json-visio?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-json-visio"+ target="_blank"+ rel="me"+ >+ <StyledImage+ src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=332281&theme=light"+ alt="JSON Visio - Simple visualization tool for your JSON data. | Product Hunt"+ />+ </StyledProducthunt>+ );+};diff --git a/src/pages/index.tsx b/src/pages/index.tsxindex 98a41dec..160dbc92 100644--- a/src/pages/index.tsx+++ b/src/pages/index.tsx@@ -8,6 +8,7 @@ import { AiFillGithub } from "react-icons/ai";import { Footer } from "src/components/Footer";import Link from "next/link";import Head from "next/head";+import { Producthunt } from "src/components/Producthunt";const StyledHome = styled.div`padding: 24px;@@ -124,6 +125,7 @@ const Home: React.FC = () => {</StyledContent><Image src="graphs5.svg" width={500} height={400} alt="preview" /></Container>+ <Producthunt /><Footer /></StyledHome>);