diff --git a/packages/website/src/components/CodeTerminal/CodeTerminal.js b/packages/website/src/components/CodeTerminal/CodeTerminal.js
index f010492f..d500ff80 100644
--- a/packages/website/src/components/CodeTerminal/CodeTerminal.js
+++ b/packages/website/src/components/CodeTerminal/CodeTerminal.js
@@ -28,7 +28,7 @@ async function example() {
}`;
return (
-
-
- Build a{" "}
-
- free
- Internet
-
-
-
- Skynet is a content and application hosting platform bringing
- decentralized storage to users, creators and app developers.
-
- Skynet is a content and application hosting platform bringing decentralized storage to users, creators and app
- developers.
-
-
-
- );
-};
-
-HeroStartPage.propTypes = {};
-
-HeroStartPage.defaultProps = {};
-
-export default HeroStartPage;
diff --git a/packages/website/src/components/HeroStartPage/HeroStartPage.stories.js b/packages/website/src/components/HeroStartPage/HeroStartPage.stories.js
deleted file mode 100644
index 0d79fb4d..00000000
--- a/packages/website/src/components/HeroStartPage/HeroStartPage.stories.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import React from "react";
-import HeroStartPage from "./HeroStartPage";
-
-export default {
- title: "Layout/HeroStartPage",
- component: HeroStartPage,
-};
-
-const Template = (args) =>
+
@@ -51,30 +49,13 @@ const Layout = ({ children }) => {
// }
// `);
- const { ripple } = useStaticQuery(graphql`
- query {
- ripple: file(relativePath: { eq: "ripple.png" }) {
- childImageSharp {
- gatsbyImageData(layout: FULL_WIDTH)
- }
- }
- }
- `);
- const background = convertToBgImage(getImage(ripple));
-
return (
- <>
-
-
- {children}
-
+
+
+ {children}
- >
+
);
};
diff --git a/packages/website/src/components/Layout/Section.js b/packages/website/src/components/Layout/Section.js
index 10e7f987..469a1c8b 100644
--- a/packages/website/src/components/Layout/Section.js
+++ b/packages/website/src/components/Layout/Section.js
@@ -1,9 +1,13 @@
import * as React from "react";
import classnames from "classnames";
-export const Section = ({ children, className, ...props }) => (
+export const Section = ({ children, className, width = "content", ...props }) => (
-
{children}
+
+ {children}
+
);
diff --git a/packages/website/src/components/Link/Link.js b/packages/website/src/components/Link/Link.js
new file mode 100644
index 00000000..e9446d82
--- /dev/null
+++ b/packages/website/src/components/Link/Link.js
@@ -0,0 +1,14 @@
+import * as React from "react";
+import { Link as GatsbyLink } from "gatsby";
+
+export default function Link({ children, to, activeClassName, partiallyActive, ...params }) {
+ if (to) {
+ return (
+
+ {children}
+
+ );
+ }
+
+ return
{children} ;
+}
diff --git a/packages/website/src/components/Link/index.js b/packages/website/src/components/Link/index.js
new file mode 100644
index 00000000..dbbd23c5
--- /dev/null
+++ b/packages/website/src/components/Link/index.js
@@ -0,0 +1 @@
+export { default } from "./Link";
diff --git a/packages/website/src/components/Navigation/Navigation.js b/packages/website/src/components/Navigation/Navigation.js
index 6b10b5bc..8a10f017 100644
--- a/packages/website/src/components/Navigation/Navigation.js
+++ b/packages/website/src/components/Navigation/Navigation.js
@@ -1,13 +1,12 @@
import * as React from "react";
import PropTypes from "prop-types";
-import { Link } from "gatsby";
+import Link from "../Link";
import classnames from "classnames";
import LogoWhiteText from "../Icons/LogoWhiteText.svg";
import LogoBlackText from "../Icons/LogoBlackText.svg";
import MenuMobile from "../Icons/MenuMobile.svg";
import MenuMobileClose from "../Icons/MenuMobileClose.svg";
import DiscordSmall from "../Icons/DiscordSmall.svg";
-import { motion } from "framer-motion";
import { useWindowSize, useWindowScroll } from "react-use";
const routes = [
@@ -18,13 +17,13 @@ const routes = [
];
const LogInLink = () => (
-
+
Log in
-
+
);
const LogInButton = ({ className, ...props }) => (
-
(
{...props}
>
Log in
-
+
);
const SignUpButton = ({ className, ...props }) => (
-
(
{...props}
>
Sign up
-
+
);
const Navigation = ({ mode }) => {
@@ -70,21 +69,18 @@ const Navigation = ({ mode }) => {
const mobileMenuOffset = navRef.current ? navRef.current.offsetTop : 0;
return (
-
0,
})}
- initial={false}
- animate={{
- paddingTop: offsetY ? "24px" : "48px",
- paddingBottom: offsetY ? "24px" : "48px",
- }}
ref={navRef}
>
-
+
{mode === "dark" && }
{mode === "light" && }
@@ -122,10 +118,12 @@ const Navigation = ({ mode }) => {
@@ -138,7 +136,7 @@ const Navigation = ({ mode }) => {
))}
@@ -156,7 +154,7 @@ const Navigation = ({ mode }) => {
-
+
);
};
diff --git a/packages/website/src/components/NewsHeader/NewsHeader.js b/packages/website/src/components/NewsHeader/NewsHeader.js
index 98e2ab85..9b7d68d1 100644
--- a/packages/website/src/components/NewsHeader/NewsHeader.js
+++ b/packages/website/src/components/NewsHeader/NewsHeader.js
@@ -1,5 +1,5 @@
import * as React from "react";
-import { Link } from "gatsby";
+import Link from "../Link";
import { ArrowRight, DiscordSmallWhite } from "../Icons";
const NewsHeader = () => {
@@ -10,15 +10,13 @@ const NewsHeader = () => {
Skynet Announces SkyDB, Unlocking Fully Decentralized Internet
diff --git a/packages/website/src/components/Uploader/Uploader.js b/packages/website/src/components/Uploader/Uploader.js
index 7ca3f638..41b76a1a 100644
--- a/packages/website/src/components/Uploader/Uploader.js
+++ b/packages/website/src/components/Uploader/Uploader.js
@@ -10,6 +10,7 @@ import { useDropzone } from "react-dropzone";
import { SkynetClient } from "skynet-js";
import { useTimeoutFn } from "react-use";
import ms from "ms";
+import Link from "../Link";
const getFilePath = (file) => file.webkitRelativePath || file.path || file.name;
@@ -59,14 +60,14 @@ const createUploadErrorMessage = (error) => {
const client = new SkynetClient("https://siasky.net");
const RegistrationLink = () => (
-