Skip to content

Commit

Permalink
Merge pull request #55 from AykutSarac/new-homepage
Browse files Browse the repository at this point in the history
New Landing Page
  • Loading branch information
AykutSarac authored Jun 12, 2022
2 parents 07a4fa7 + 379d7be commit 8300fd6
Show file tree
Hide file tree
Showing 9 changed files with 535 additions and 201 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"react-hot-toast": "^2.2.0",
"react-icons": "^4.3.1",
"react-render-if-visible": "^2.1.0",
"react-twitter-embed": "^4.0.4",
"react-zoom-pan-pinch": "^2.1.3",
"reaflow": "^5.0.4",
"save-html-as-image": "^1.7.1",
Expand Down
Binary file added public/jsonvisio-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const StyledButton = styled.button<{ status: keyof typeof ButtonType }>`
color: #ffffff;
padding: 8px 16px;
min-width: 60px;
width: fit-content;
:disabled {
cursor: not-allowed;
Expand Down
45 changes: 0 additions & 45 deletions src/components/Footer/index.tsx

This file was deleted.

24 changes: 8 additions & 16 deletions src/components/Producthunt/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
import React from "react";
import styled from "styled-components";

const StyledProducthunt = styled.a`
position: fixed;
bottom: 12px;
right: 12px;
@media only screen and (max-width: 768px) {
display: none;
}
`;

const StyledImage = styled.img`
width: 250px;
height: 54px;
object-fit: contain;
max-width: 300px;
@media only screen and (max-width: 768px) {
width: 200px;
Expand All @@ -23,15 +13,17 @@ const StyledImage = styled.img`

export const Producthunt = () => {
return (
<StyledProducthunt
<a
href="https://www.producthunt.com/posts/json-visio?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-json-visio"
target="_blank"
rel="me"
rel="noreferrer"
>
<StyledImage
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=332281&theme=light"
width="500"
height="200"
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=332281&theme=neutral"
alt="JSON Visio - Simple visualization tool for your JSON data. | Product Hunt"
/>
</StyledProducthunt>
</a>
);
};
7 changes: 6 additions & 1 deletion src/constants/globalStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ const GlobalStyle = createGlobalStyle`
padding: 0;
box-sizing: border-box;
color: ${({ theme }) => theme.FULL_WHITE};
background: ${({ theme }) => theme.BLACK_PRIMARY};
font-family: 'Catamaran', sans-serif;
font-weight: 400;
font-size: 16px;
scroll-behavior: smooth;
background-color: #000000;
opacity: 1;
background-image: radial-gradient(#414141 0.5px, #000000 0.5px);
background-size: 10px 10px;
}
a {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MyDocument extends Document {
crossOrigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&family=Roboto+Mono:wght@500&family=Catamaran:wght@400;500;600&display=swap"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;900&family=Roboto+Mono:wght@500&family=Catamaran:wght@400;500;600&display=swap"
rel="stylesheet"
/>
</Head>
Expand Down
Loading

0 comments on commit 8300fd6

Please sign in to comment.