Rebrand Lux explorer: disable Blockscout title suffix, ads, update footer links

- Disable 'Blockscout' title suffix by default (NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE)
- Disable banner and text ads by default
- Update footer links to point to Lux Network resources
- Change GitHub links from blockscout to luxfi
This commit is contained in:
2026-01-23 16:02:47 -08:00
parent 1469b4060d
commit 83375ef557
4 changed files with 22 additions and 20 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ import { getEnvValue, parseEnvJson } from '../utils';
const provider: AdBannerProviders = (() => {
const envValue = getEnvValue('NEXT_PUBLIC_AD_BANNER_PROVIDER') as AdBannerProviders;
return envValue && SUPPORTED_AD_BANNER_PROVIDERS.includes(envValue) ? envValue : 'slise';
// Lux fork: disable ads by default
return envValue && SUPPORTED_AD_BANNER_PROVIDERS.includes(envValue) ? envValue : 'none';
})();
const additionalProvider = getEnvValue('NEXT_PUBLIC_AD_BANNER_ADDITIONAL_PROVIDER') as AdBannerAdditionalProviders;
+2 -1
View File
@@ -7,7 +7,8 @@ import { getEnvValue } from '../utils';
const provider: AdTextProviders = (() => {
const envValue = getEnvValue('NEXT_PUBLIC_AD_TEXT_PROVIDER') as AdTextProviders;
return envValue && SUPPORTED_AD_TEXT_PROVIDERS.includes(envValue) ? envValue : 'coinzilla';
// Lux fork: disable ads by default
return envValue && SUPPORTED_AD_TEXT_PROVIDERS.includes(envValue) ? envValue : 'none';
})();
const title = 'Text ads';
+2 -1
View File
@@ -4,7 +4,8 @@ import { getEnvValue, getExternalAssetFilePath } from './utils';
const defaultImageUrl = '/static/og_image.png';
const meta = Object.freeze({
promoteBlockscoutInTitle: getEnvValue('NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE') === 'false' ? false : true,
// Lux fork: disable Blockscout branding by default
promoteBlockscoutInTitle: getEnvValue('NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE') === 'true' ? true : false,
og: {
description: getEnvValue('NEXT_PUBLIC_OG_DESCRIPTION') || '',
imageUrl: app.baseUrl + (getExternalAssetFilePath('NEXT_PUBLIC_OG_IMAGE_URL') || defaultImageUrl),
+16 -16
View File
@@ -23,8 +23,8 @@ import getApiVersionUrl from './utils/getApiVersionUrl';
const MAX_LINKS_COLUMNS = 4;
const FRONT_VERSION_URL = `https://github.com/blockscout/frontend/tree/${ config.UI.footer.frontendVersion }`;
const FRONT_COMMIT_URL = `https://github.com/blockscout/frontend/commit/${ config.UI.footer.frontendCommit }`;
const FRONT_VERSION_URL = `https://github.com/luxfi/explore/tree/${ config.UI.footer.frontendVersion }`;
const FRONT_COMMIT_URL = `https://github.com/luxfi/explore/commit/${ config.UI.footer.frontendCommit }`;
const Footer = () => {
@@ -37,7 +37,7 @@ const Footer = () => {
const apiVersionUrl = getApiVersionUrl(backendVersionData?.backend_version);
const issueUrl = useIssueUrl(backendVersionData?.backend_version);
const BLOCKSCOUT_LINKS = [
const LUX_LINKS = [
{
icon: 'edit' as const,
iconSize: '16px',
@@ -48,31 +48,31 @@ const Footer = () => {
icon: 'social/git' as const,
iconSize: '18px',
text: 'Contribute',
url: 'https://github.com/blockscout/blockscout',
url: 'https://github.com/luxfi',
},
{
icon: 'social/twitter' as const,
iconSize: '18px',
text: 'X (ex-Twitter)',
url: 'https://x.com/blockscout',
url: 'https://x.com/luxaboratory',
},
{
icon: 'social/discord' as const,
iconSize: '24px',
text: 'Discord',
url: 'https://discord.gg/blockscout',
url: 'https://discord.gg/luxnetwork',
},
{
icon: 'brands/blockscout' as const,
icon: 'globe' as const,
iconSize: '18px',
text: 'All chains',
url: 'https://www.blockscout.com/chains-and-projects',
text: 'Lux Network',
url: 'https://lux.network',
},
{
icon: 'donate' as const,
icon: 'docs' as const,
iconSize: '20px',
text: 'Donate',
url: 'https://eth.blockscout.com/address/0xfB4aF6A8592041E9BcE186E5aC4BDbd2B137aD11',
text: 'Documentation',
url: 'https://docs.lux.network',
},
];
@@ -124,8 +124,8 @@ const Footer = () => {
return (
<Box gridArea={ gridArea }>
<Flex columnGap={ 2 } textStyle="xs" alignItems="center">
<span>Made with</span>
<Link href="https://www.blockscout.com" external noIcon display="inline-flex" color={ logoColor } _hover={{ color: logoColor }}>
<span>Powered by</span>
<Link href="https://lux.network" external noIcon display="inline-flex" color={ logoColor } _hover={{ color: logoColor }}>
<IconSvg
name="networks/logo-placeholder"
width="80px"
@@ -208,7 +208,7 @@ const Footer = () => {
>
{
([
{ title: 'Lux Network', links: BLOCKSCOUT_LINKS },
{ title: 'Lux Network', links: LUX_LINKS },
...(linksData || []),
])
.slice(0, colNum)
@@ -262,7 +262,7 @@ const Footer = () => {
justifyContent={{ lg: 'flex-end' }}
mt={{ base: 8, lg: 0 }}
>
{ BLOCKSCOUT_LINKS.map(link => <FooterLinkItem { ...link } key={ link.text }/>) }
{ LUX_LINKS.map(link => <FooterLinkItem { ...link } key={ link.text }/>) }
</Grid>
</Grid>
</Box>