Skip to content

Commit

Permalink
fix(megagamer): update title and favicons
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Jun 2, 2023
1 parent 7331561 commit bc66f25
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions assets/variables.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
export const SUBAPP = process.env.APP_SUBAPP;
export const IS_SUBAPP_MEGACHAIN = SUBAPP === 'megachain';
export const IS_SUBAPP_MEGAGAMER = SUBAPP === 'megagamer';
export const SUBAPP_MEGACHAIN = 'megachain';
export const SUBAPP_MEGAGAMER = 'megagamer';
export const IS_SUBAPP_MEGACHAIN = SUBAPP === SUBAPP_MEGACHAIN;
export const IS_SUBAPP_MEGAGAMER = SUBAPP === SUBAPP_MEGAGAMER;
export const MAINNET = 'mainnet';
export const TESTNET = 'testnet';
export const NETWORK = process.env.APP_ENV === MAINNET ? MAINNET : TESTNET;
export const BASE_TITLE = 'Honee';
export const BASE_TITLE = (() => {
switch (SUBAPP) {
case SUBAPP_MEGACHAIN:
return 'Metagarden Launchpad';
case SUBAPP_MEGAGAMER:
return 'Metagarden GamerID';
default:
return 'Honee';
}
})();
export const BASE_DESCRIPTION = '';
export const BASE_URL_PREFIX = '';
export const ACCOUNTS_API_URL = process.env.APP_ACCOUNTS_API_URL;
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const scriptCSP = CSP_SCRIPT.map((item) => {
return item.indexOf('sha') === 0 ? `'${item}'` : item;
}).join(' ');

const subappPrefix = SUBAPP && SUBAPP !== 'megagamer' ? '/' + SUBAPP : '';
const subappPrefix = SUBAPP ? '/' + SUBAPP : '';


module.exports = {
Expand Down
Binary file added static/megagamer/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/megagamer/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/megagamer/social-share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bc66f25

Please sign in to comment.