diff --git a/content/site.json b/content/site.json index d3e5f861a..925aa7235 100644 --- a/content/site.json +++ b/content/site.json @@ -1,9 +1,8 @@ { "siteTitle": "Ocean Market", "siteTagline": "A marketplace to find, publish and trade data sets in the Ocean Network.", - "siteUrl": "https://market.oceanprotocol.com", - "siteIcon": "node_modules/@oceanprotocol/art/logo/favicon-white.png", - "siteImage": "../src/@images/share.png", + "siteUrl": "https://v4.market.oceanprotocol.com", + "siteImage": "/share.png", "copyright": "All Rights Reserved. Powered by [Ocean Protocol](https://oceanprotocol.com)", "menu": [ { diff --git a/package-lock.json b/package-lock.json index 9efb9cb38..41bb41a3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26715,6 +26715,7 @@ "cross-fetch": "^3.1.5", "crypto-js": "^4.1.1", "decimal.js": "^10.3.1", + "web3": "^1.7.1", "web3-core": "^1.7.1", "web3-eth-contract": "^1.7.1" } @@ -26817,6 +26818,7 @@ "integrity": "sha512-5vwpq6kbvwkQwKqAoOU3L72GZ3Ta8RRrewKj9OJRolx28KLJJ8Dg9Rf7obRwt5jQA9bkYd8gqzMTrI7H3xLfaw==", "dev": true, "requires": { + "@oclif/config": "^1.15.1", "@oclif/errors": "^1.3.3", "@oclif/parser": "^3.8.3", "@oclif/plugin-help": "^3", diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png new file mode 100644 index 000000000..7a46b1252 Binary files /dev/null and b/public/android-chrome-192x192.png differ diff --git a/public/android-chrome-512x512.png b/public/android-chrome-512x512.png new file mode 100644 index 000000000..5911728ab Binary files /dev/null and b/public/android-chrome-512x512.png differ diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 000000000..30048f0bf Binary files /dev/null and b/public/apple-touch-icon.png differ diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 000000000..dc1711c0e Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/icon.svg b/public/icon.svg new file mode 100644 index 000000000..b5bcefe32 --- /dev/null +++ b/public/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/@images/share.png b/public/share.png similarity index 100% rename from src/@images/share.png rename to public/share.png diff --git a/public/site.webmanifest b/public/site.webmanifest new file mode 100644 index 000000000..19e8c3f45 --- /dev/null +++ b/public/site.webmanifest @@ -0,0 +1,14 @@ +{ + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +} diff --git a/src/@hooks/useSiteMetadata/types.ts b/src/@hooks/useSiteMetadata/types.ts index fce4f1141..1159b4eb3 100644 --- a/src/@hooks/useSiteMetadata/types.ts +++ b/src/@hooks/useSiteMetadata/types.ts @@ -2,7 +2,6 @@ export interface UseSiteMetadata { siteTitle: string siteTagline: string siteUrl: string - siteIcon: string siteImage: string copyright: string menu: { diff --git a/src/components/@shared/Page/Seo.tsx b/src/components/@shared/Page/Seo.tsx index 7194cad14..11cb3f402 100644 --- a/src/components/@shared/Page/Seo.tsx +++ b/src/components/@shared/Page/Seo.tsx @@ -17,24 +17,35 @@ export default function Seo({ // Remove trailing slash from all URLs const canonical = `${siteUrl}${uri}`.replace(/\/$/, '') + const pageTitle = title + ? `${title} - ${siteTitle}` + : `${siteTitle} — ${siteTagline}` + return ( - {`${siteTitle} — ${siteTagline}`} + {pageTitle} - {isBrowser && - window.location && - window.location.hostname !== 'oceanprotocol.com' && ( - - )} + {isBrowser && window?.location?.hostname !== 'oceanprotocol.com' && ( + + )} + + + + + - + diff --git a/src/pages/asset/[did]/index.tsx b/src/pages/asset/[did]/index.tsx index 50995e81a..22d7caf4f 100644 --- a/src/pages/asset/[did]/index.tsx +++ b/src/pages/asset/[did]/index.tsx @@ -8,7 +8,7 @@ export default function PageAssetDetails(): ReactElement { const { did } = router.query return ( - + ) }