From 42ec62b2d06595b5a97f9f840ae10127f0caa1d9 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Thu, 28 Jul 2022 17:24:41 +0300 Subject: [PATCH] Minor improvements (#1079) * Capitalising Ocean * Updating and improve main using ocean marketplace page * Updating image alternative text --- SUMMARY.md | 2 +- building-with-ocean/README.md | 2 +- .../customising-your-market.md | 46 +++++++++---------- using-ocean-market/README.md | 24 ++++++---- 4 files changed, 41 insertions(+), 33 deletions(-) diff --git a/SUMMARY.md b/SUMMARY.md index de5494f8..abb53632 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -18,7 +18,7 @@ * [Publish a data asset](using-ocean-market/marketplace-publish-data-asset.md) * [Download a data asset](using-ocean-market/marketplace-download-data-asset.md) * [Publishing with hosting services](building-with-ocean/asset-hosting.md) -* [Building with ocean](building-with-ocean/README.md) +* [Building with Ocean](building-with-ocean/README.md) * [Build a Marketplace](building-with-ocean/build-a-marketplace/README.md) * [Forking Ocean Market](building-with-ocean/build-a-marketplace/forking-ocean-market.md) * [Customising your market](building-with-ocean/build-a-marketplace/customising-your-market.md) diff --git a/building-with-ocean/README.md b/building-with-ocean/README.md index 898dcaf6..27a9126b 100644 --- a/building-with-ocean/README.md +++ b/building-with-ocean/README.md @@ -1,2 +1,2 @@ -# Building with ocean +# Building with Ocean diff --git a/building-with-ocean/build-a-marketplace/customising-your-market.md b/building-with-ocean/build-a-marketplace/customising-your-market.md index 7e6ef700..a20fc825 100644 --- a/building-with-ocean/build-a-marketplace/customising-your-market.md +++ b/building-with-ocean/build-a-marketplace/customising-your-market.md @@ -32,21 +32,21 @@ Let’s start by searching and replacing “Ocean Marketplace”. In VS Code the Next up, we need to repeat the process but this time we’ll be searching and replacing “Ocean Market”. As you can see in the screenshot below, we have called our fork “Crypto Photos Market”. -![marketCustomisation](../../.gitbook/assets/market-customisation-4.png) +![Market Customisation](../../.gitbook/assets/market-customisation-4.png) -![marketCustomisation](../../.gitbook/assets/market-customisation-4.1.png) +![Market Customisation](../../.gitbook/assets/market-customisation-4.1.png) -![marketCustomisation](../../.gitbook/assets/market-customisation-4.2.jpg) +![Market Customisation](../../.gitbook/assets/market-customisation-4.2.jpg) Now let’s change the tagline of your site. Open up the folder called “content” and then open the file called “site.json”. -![marketCustomisation](../../.gitbook/assets/market-customisation-5.png) +![Market Customisation](../../.gitbook/assets/market-customisation-5.png) On line 3 in this file you can enter the tagline that you want for your marketplace. -![marketCustomisation](../../.gitbook/assets/market-customisation-6.png) +![Market Customisation](../../.gitbook/assets/market-customisation-6.png) -![marketCustomisation](../../.gitbook/assets/market-customisation-6.1.png) +![Market Customisation](../../.gitbook/assets/market-customisation-6.1.png) ## Change the Logo @@ -60,7 +60,7 @@ Delete the “logo.svg” file from that folder and paste your own logo in the s At this point, it’s a good idea to check how things are looking. First check that you have saved all of your changes, then cancel the build that’s running in your terminal (Ctrl + C OR Cmnd + C) and start it again `npm start`. Once the build has finished, navigate to http://localhost:8000/ and see how things look. -![marketCustomisation](../../.gitbook/assets/market-customisation-7.1.png) +![Market Customisation](../../.gitbook/assets/market-customisation-7.1.png) Awesome! Our logo is looking great! @@ -78,18 +78,18 @@ src/components/App/index.module.css You’ll notice in the screenshot above that we are setting our “wave” background on line 3. Here, you’ll want to use your own background color or image. For this example, we’ll use an SVG background from [here](https://www.svgbackgrounds.com/). First, we save the new background image into the src/images/ folder (same folder as the logo), then we change the CSS to the file location of the new background (see line 3 in the image below). -![marketCustomisation](../../.gitbook/assets/market-customisation-8.png) +![Market Customisation](../../.gitbook/assets/market-customisation-8.png) If we save this file and view the site at this point, we get a white section at the top (see image below). And you’ll also notice that the background doesn’t fill all the way down to the bottom of the screen. -![marketCustomisation](../../.gitbook/assets/market-customisation-10.1.png) -![marketCustomisation](../../.gitbook/assets/market-customisation-10.2.png) +![Market Customisation](../../.gitbook/assets/market-customisation-10.1.png) +![Market Customisation](../../.gitbook/assets/market-customisation-10.2.png) To fix this, we need to change the starting position of the background image and change it from no-repeat to repeat. We can do this on line 3. When we view our marketplace, we can see that the new background starts at the top and fills the whole page. Perfect! -![marketCustomisation](../../.gitbook/assets/market-customisation-11.1.png) +![Market Customisation](../../.gitbook/assets/market-customisation-11.1.png) ## Brand Colors @@ -97,7 +97,7 @@ Next up, let’s change the background colors to match your individual style. Op You can change these colors as much as you wish until you’re happy with how everything looks. Each time you save your changes, the site will immediately update so you can see how things look. You can see the styles chosen for this example in the image below. -![marketCustomisation](../../.gitbook/assets/market-customisation-12.png) +![Market Customisation](../../.gitbook/assets/market-customisation-12.png) ## Change Fonts @@ -111,41 +111,41 @@ If you are importing fonts, such as from Google fonts, you need to make sure tha As with the color changes, it’s a good idea to save the file with each change and check if the site is looking the way that you expected it to. You can see our eclectic choices below. -![marketCustomisation](../../.gitbook/assets/market-customisation-13.png) +![Market Customisation](../../.gitbook/assets/market-customisation-13.png) ## Customize the Publish Form Let’s head to the publish page to see what it looks like with our new styling - so far, so good. But there is one major issue, the publish form is still telling people to publish datasets. On our new marketplace, we want people to publish and sell their photos, so we’re going to have to make some changes here. -![marketCustomisation](../../.gitbook/assets/market-customisation-14.png) +![Market Customisation](../../.gitbook/assets/market-customisation-14.png) Open up the index.json file from content/publish/index.json - here we change the text to explain that this form is for publishing photos. -![marketCustomisation](../../.gitbook/assets/market-customisation-15.png) +![Market Customisation](../../.gitbook/assets/market-customisation-15.png) Additionally, the asset type current says dataset, and we need to change this so that it says photo. The simplest way to do this is to change the title of the asset type without changing anything else. Ocean can handle selling any digital asset that can be accessed via a URL, so no further changes are needed to accommodate selling photos. Open up src/components/Publish/Metadata/index.tsx and change line 28 so that it says ‘Photo’ -![marketCustomisation](../../.gitbook/assets/market-customisation-18.png) +![Market Customisation](../../.gitbook/assets/market-customisation-18.png) Great, now our publish page explains that users should be publishing photos and photo is provided as an asset type option. We’ll also leave algorithm as an option in case some data scientists want to do some analysis or image transformation on the photos. -![marketCustomisation](../../.gitbook/assets/market-customisation-19.png) +![Market Customisation](../../.gitbook/assets/market-customisation-19.png) There is one more thing that is fun to change before we move away from the publish form. You’ll notice that Ocean Market V4 now has a cool SVG generation feature that creates the images for the Data NFT. It creates a series of pink waves. Let’s change this so that it uses our brand colors in the waves! Open up /src/@utils/SvgWaves.ts and have a look at lines 27 to 30 where the colors are specified. Currently, the pink color is the one used in the svg generator. You can replace this with your own brand color: -![marketCustomisation](../../.gitbook/assets/market-customisation-21.png) +![Market Customisation](../../.gitbook/assets/market-customisation-21.png) If you’re interested in doing some further customization, take a look at lines 53 to 64. You can change these properties to alter how the image looks. Feel free to play around with it. We’ve increased the number of layers from 4 to 5. -![marketCustomisation](../../.gitbook/assets/market-customisation-22.png) +![Market Customisation](../../.gitbook/assets/market-customisation-22.png) And now your customized publish page is ready for your customers: -![marketCustomisation](../../.gitbook/assets/market-customisation-20.png) +![Market Customisation](../../.gitbook/assets/market-customisation-20.png) ## Change the Fee Address @@ -153,7 +153,7 @@ At this point, we have made a lot of changes and hopefully you’re happy with t When someone sets the pricing for their photos in your marketplace, they are informed that a commission will be sent to the owner of the marketplace. You see that at the moment this fee is set to zero, so you’ll want to increase that. And in order to receive the fees you’ll you need to set the address that you want to recieve these fees in. -![marketCustomisation](../../.gitbook/assets/market-customisation-23.png) +![Market Customisation](../../.gitbook/assets/market-customisation-23.png) This important step is the last thing that we will change in this guide. To set the marketplace fees and address, you’ll need to save them as environmental variables. Create a new file called .env in the root of your repository. @@ -175,8 +175,8 @@ Go to [Fees page](https://docs.oceanprotocol.com/concepts/fees/) to know more de It is important that the file is saved in the right place at the root of your repository, your file structure should look the same as below. -![marketCustomisation](../../.gitbook/assets/market-customisation-24.png) +![Market Customisation](../../.gitbook/assets/market-customisation-24.png) Now that’s it; you now have a fully functioning photo marketplace that operates over the blockchain. Everytime someone uses it, you will receive revenue. -![marketCustomisation](../../.gitbook/assets/market-customisation-25.png) +![Market Customisation](../../.gitbook/assets/market-customisation-25.png) diff --git a/using-ocean-market/README.md b/using-ocean-market/README.md index ad2de4ad..326ccf5e 100644 --- a/using-ocean-market/README.md +++ b/using-ocean-market/README.md @@ -1,12 +1,20 @@ # Using Ocean Market -https://v4.market.oceanprotocol.com/ - -### Landing page - -![marketplace landing-page](../.gitbook/assets/marketplace-landing-page.png) - ### About Ocean Market -1. Ocean Market enables publishers to monetize their data and/or algorithms through blockchain technology. -2. Consumers can purchase access to data, algorithms, compute services. +* [Ocean Market](https://market.oceanprotocol.com/) enables publishers to monetize their data and/or algorithms through blockchain technology. +* Consumers can purchase access to data, algorithms, compute services. + +![Ocean Market Landing Page](../.gitbook/assets/marketplace-landing-page.png) + +The following guides will help you get started with buying and selling data: + +* [Publish a data asset](using-ocean-market/marketplace-publish-data-asset.md) +* [Download a data asset](using-ocean-market/marketplace-download-data-asset.md) +* [Publishing with hosting services](building-with-ocean/asset-hosting.md) + +If you are new to web3 and blockchain technologies then we suggest you first read these introductory guides: + +* [Wallet Basics](building-with-ocean/wallets.md) +* [Set Up MetaMask Wallet](orientation/metamask-setup.md) +* [Manage Your OCEAN Tokens](building-with-ocean/wallets-and-ocean-tokens.md)