Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Landing Page #55

Merged
merged 3 commits into from
Jun 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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