From 4aa885ff4f99f19845ea6503fcf875d6602ef494 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 30 Jun 2020 13:43:02 +0200 Subject: [PATCH] front page cleanup --- content/site.json | 8 +--- src/components/pages/Home.module.css | 46 ----------------------- src/components/pages/Home.tsx | 56 +--------------------------- src/images/datapool.svg | 6 --- src/images/explore.svg | 6 --- src/images/logo.svg | 4 -- src/images/publish.svg | 10 ----- 7 files changed, 3 insertions(+), 133 deletions(-) delete mode 100644 src/components/pages/Home.module.css delete mode 100644 src/images/datapool.svg delete mode 100644 src/images/explore.svg delete mode 100644 src/images/logo.svg delete mode 100644 src/images/publish.svg diff --git a/content/site.json b/content/site.json index 93a6a36ca..8cc1095ec 100644 --- a/content/site.json +++ b/content/site.json @@ -7,17 +7,13 @@ "siteImage": "../src/images/share.png", "copyright": "All Rights Reserved. Powered by [Ocean Protocol](https://oceanprotocol.com)", "menu": [ - { - "name": "Explore", - "link": "/explore" - }, { "name": "Publish", "link": "/publish" }, { - "name": "Transactions", - "link": "/transactions" + "name": "History", + "link": "/history" } ] } diff --git a/src/components/pages/Home.module.css b/src/components/pages/Home.module.css deleted file mode 100644 index 267f6b657..000000000 --- a/src/components/pages/Home.module.css +++ /dev/null @@ -1,46 +0,0 @@ -.actions { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); - gap: var(--spacer); - margin: 0 auto; -} - -.action { - composes: box from '../atoms/Box.module.css'; - text-align: center; - color: var(--color-secondary); - font-size: var(--font-size-small); -} - -.action:hover, -.action:focus { - border-color: var(--color-primary); -} - -.action button { - pointer-events: none; - margin-top: calc(var(--spacer) / 4); -} - -.actionTitle { - font-size: var(--font-size-large); - margin-bottom: calc(var(--spacer) / 4); -} - -.action svg { - width: 5rem; - height: 5rem; - margin-bottom: calc(var(--spacer) / 1.5); -} - -.comingSoon { - composes: action; - pointer-events: none; - opacity: 0.5; -} - -.comingSoon button { - background: none; - border: 0; - color: var(--color-secondary); -} diff --git a/src/components/pages/Home.tsx b/src/components/pages/Home.tsx index ecf16e992..a88253fa9 100644 --- a/src/components/pages/Home.tsx +++ b/src/components/pages/Home.tsx @@ -1,60 +1,6 @@ import React, { ReactElement } from 'react' -import { Link } from 'gatsby' -import shortid from 'shortid' -import Button from '../atoms/Button' import SearchBar from '../molecules/SearchBar' -import { ReactComponent as Explore } from '../../images/explore.svg' -import { ReactComponent as Publish } from '../../images/publish.svg' -import { ReactComponent as DataPool } from '../../images/datapool.svg' -import styles from './Home.module.css' - -const actions = [ - { - title: 'Explore Data Sets', - text: 'Browse and consume a wide range of logistics data.', - link: '/explore', - action: 'Explore Now', - icon: - }, - { - title: 'Monetize Your Data', - text: 'Publish and monetize on your data to open up new revenue streams.', - link: '/publish', - action: 'Publish Data', - icon: , - primary: true - }, - { - title: 'Data Pool', - text: 'Create or join data pools to generate more revenue.', - link: '/', - action: 'Coming Soon', - icon: , - comingSoon: true - } -] export default function HomePage(): ReactElement { - return ( - <> - - -
- {actions.map((action) => ( - - {action.icon} -

{action.title}

-

{action.text}

- - - ))} -
- - ) + return } diff --git a/src/images/datapool.svg b/src/images/datapool.svg deleted file mode 100644 index 769bd36fa..000000000 --- a/src/images/datapool.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/images/explore.svg b/src/images/explore.svg deleted file mode 100644 index 00b640c47..000000000 --- a/src/images/explore.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/images/logo.svg b/src/images/logo.svg deleted file mode 100644 index cebfe060b..000000000 --- a/src/images/logo.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/images/publish.svg b/src/images/publish.svg deleted file mode 100644 index 09efdb039..000000000 --- a/src/images/publish.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - -