Skip to content

Commit

Permalink
Disable nft until properly announced
Browse files Browse the repository at this point in the history
  • Loading branch information
tobspr committed Mar 12, 2021
1 parent 89b99c7 commit 38bb393
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 40 deletions.
19 changes: 2 additions & 17 deletions src/css/states/main_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand All @@ -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%;
}
}
}

Expand Down
1 change: 0 additions & 1 deletion src/js/core/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/",

Expand Down
22 changes: 0 additions & 22 deletions src/js/states/main_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,6 @@ export class MainMenuState extends GameState {
${G_CHINA_VERSION ? "" : `<a class="helpTranslate">${T.mainMenu.helpTranslate}</a>`}
</div>
${
G_CHINA_VERSION
? ""
: `
<a class="nftLink boxLink" target="_blank">
shapez.io NFT Tokens
<span class="thirdpartyLogo nftLogo"></span>
</a>`
}
<div class="author">${T.mainMenu.madeBy.replace(
"<author-link>",
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 38bb393

Please sign in to comment.