From 38bb393190faf0d9f8c3175c4b99d811f669e27e Mon Sep 17 00:00:00 2001 From: tobspr Date: Fri, 12 Mar 2021 20:31:50 +0100 Subject: [PATCH] Disable nft until properly announced --- src/css/states/main_menu.scss | 19 ++----------------- src/js/core/config.js | 1 - src/js/states/main_menu.js | 22 ---------------------- 3 files changed, 2 insertions(+), 40 deletions(-) diff --git a/src/css/states/main_menu.scss b/src/css/states/main_menu.scss index 7d3872fb..b21d465f 100644 --- a/src/css/states/main_menu.scss +++ b/src/css/states/main_menu.scss @@ -445,13 +445,13 @@ justify-content: center; align-items: flex-end; width: 100%; - grid-template-columns: auto auto auto auto 1fr; + grid-template-columns: auto auto auto 1fr; @include S(padding, 10px); box-sizing: border-box; @include S(grid-gap, 4px); &.china { - grid-template-columns: auto auto 1fr; + grid-template-columns: auto 1fr; } .author { @@ -501,15 +501,6 @@ background-color: $linkBgHover; } - &.nftLink { - background-color: #3291e9; - color: #fff; - - &:hover { - background-color: darken(#3291e9, 5); - } - } - .thirdpartyLogo { display: inline-block; @include S(width, 50px); @@ -524,12 +515,6 @@ background-image: uiResource("main_menu/discord.png"); background-size: 95%; } - - &.nftLogo { - /* @load-async */ - background-image: uiResource("main_menu/opensea.png"); - background-size: 80%; - } } } diff --git a/src/js/core/config.js b/src/js/core/config.js index 7f7e9ff1..d5dc7089 100644 --- a/src/js/core/config.js +++ b/src/js/core/config.js @@ -16,7 +16,6 @@ export const THIRDPARTY_URLS = { github: "https://github.com/tobspr/shapez.io", reddit: "https://www.reddit.com/r/shapezio", shapeViewer: "https://viewer.shapez.io", - nftTokens: "https://opensea.io/collection/shapez", standaloneStorePage: "https://store.steampowered.com/app/1318690/shapezio/", diff --git a/src/js/states/main_menu.js b/src/js/states/main_menu.js index 4e42fbe9..3afad9bf 100644 --- a/src/js/states/main_menu.js +++ b/src/js/states/main_menu.js @@ -109,16 +109,6 @@ export class MainMenuState extends GameState { ${G_CHINA_VERSION ? "" : `${T.mainMenu.helpTranslate}`} - ${ - G_CHINA_VERSION - ? "" - : ` - - shapez.io NFT Tokens - - ` - } -
${T.mainMenu.madeBy.replace( "", @@ -262,18 +252,6 @@ export class MainMenuState extends GameState { { preventClick: true } ); - const nftLink = this.htmlElement.querySelector(".nftLink"); - if (nftLink) { - this.trackClicks( - nftLink, - () => { - this.app.analytics.trackUiClick("main_menu_link_nft"); - this.app.platformWrapper.openExternalLink(THIRDPARTY_URLS.nftTokens); - }, - { preventClick: true } - ); - } - const githubLink = this.htmlElement.querySelector(".githubLink"); if (githubLink) { this.trackClicks(