Skip to content

Commit

Permalink
footer update and .env
Browse files Browse the repository at this point in the history
  • Loading branch information
SailorSnoW committed Jun 25, 2024
1 parent e9e4826 commit 46eec16
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 24 deletions.
34 changes: 34 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
NEXT_PUBLIC_API_HOST=localhost
NEXT_PUBLIC_API_PROTOCOL=http
NEXT_PUBLIC_STATS_API_HOST=http://localhost:8080
NEXT_PUBLIC_NETWORK_NAME=Harmony Testnet
NEXT_PUBLIC_NETWORK_SHORT_NAME=Harmony
NEXT_PUBLIC_NETWORK_ID=441
NEXT_PUBLIC_NETWORK_CURRENCY_NAME=HMY
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL=HMY
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS=18
NEXT_PUBLIC_API_BASE_PATH=/
NEXT_PUBLIC_APP_HOST=localhost
NEXT_PUBLIC_APP_PROTOCOL=http
NEXT_PUBLIC_HOMEPAGE_CHARTS=['daily_txs']
NEXT_PUBLIC_VISUALIZE_API_HOST=http://localhost:8081
NEXT_PUBLIC_IS_TESTNET=true
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL=ws
NEXT_PUBLIC_API_SPEC_URL=https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml
NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE=validation
NEXT_PUBLIC_NETWORK_LOGO=https://svgshare.com/i/15Pi.svg
NEXT_PUBLIC_NETWORK_ICON=https://svgshare.com/i/15PZ.svg
NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE=false
#NEXT_PUBLIC_OG_DESCRIPTION=
#NEXT_PUBLIC_OG_IMAGE_URL=
NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDS=["burnt_fees","total_reward"]
NEXT_PUBLIC_VIEWS_TX_HIDDEN_FIELDS=["burnt_fees"]
NEXT_PUBLIC_HIDE_INDEXING_ALERT_BLOCKS=false
NEXT_PUBLIC_HAS_BEACON_CHAIN=false
NEXT_PUBLIC_NETWORK_RPC_URL=https://harmonie-endpoint-02.allfeat.io/
NEXT_PUBLIC_WEB3_WALLETS=['metamask','token_pocket']
NEXT_PUBLIC_AD_BANNER_PROVIDER=none
NEXT_PUBLIC_AD_TEXT_PROVIDER=none
NEXT_PUBLIC_WEB3_DISABLE_ADD_TOKEN_TO_WALLET=false
NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND=linear-gradient(to left bottom, rgb(0, 177, 140), rgb(104, 190, 143), rgb(152, 203, 153), rgb(191, 216, 171), rgb(223, 230, 195), rgb(230, 227, 187), rgb(239, 223, 181), rgb(248, 218, 176), rgb(249, 190, 139), rgb(253, 158, 111), rgb(255, 121, 96), rgb(255, 74, 95))
NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR=rgb(40, 40, 40);
35 changes: 11 additions & 24 deletions ui/snippets/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import config from 'configs/app';
import type { ResourceError } from 'lib/api/resources';
import useApiQuery from 'lib/api/useApiQuery';
import useFetch from 'lib/hooks/useFetch';
import useIssueUrl from 'lib/hooks/useIssueUrl';
import NetworkAddToWallet from 'ui/shared/NetworkAddToWallet';

import FooterLinkItem from './FooterLinkItem';
Expand All @@ -29,49 +28,36 @@ const Footer = () => {
},
});
const apiVersionUrl = getApiVersionUrl(backendVersionData?.backend_version);
const issueUrl = useIssueUrl(backendVersionData?.backend_version);
const BLOCKSCOUT_LINKS = [
{
icon: 'edit' as const,
iconSize: '16px',
text: 'Submit an issue',
url: issueUrl,
},
{
icon: 'social/canny' as const,
iconSize: '20px',
text: 'Feature request',
url: 'https://blockscout.canny.io/feature-requests',
url: 'https://github.com/allfeat/allfeat/issues',
},
{
icon: 'social/git' as const,
iconSize: '18px',
text: 'Contribute',
url: 'https://github.com/blockscout/blockscout',
url: 'https://github.com/allfeat/allfeat',
},
{
icon: 'social/twitter' as const,
iconSize: '18px',
text: 'X (ex-Twitter)',
url: 'https://www.twitter.com/blockscoutcom',
url: 'https://www.twitter.com/Allfeat_Network',
},
{
icon: 'social/discord' as const,
iconSize: '24px',
text: 'Discord',
url: 'https://discord.gg/blockscout',
url: 'https://discord.allfeat.com',
},
{
icon: 'discussions' as const,
iconSize: '20px',
text: 'Discussions',
url: 'https://github.com/orgs/blockscout/discussions',
},
{
icon: 'donate' as const,
iconSize: '20px',
text: 'Donate',
url: 'https://github.com/sponsors/blockscout',
icon: 'explorer' as const,
iconSize: '24px',
text: 'Documentation',
url: 'https://docs.allfeat.com',
},
];

Expand Down Expand Up @@ -118,9 +104,10 @@ const Footer = () => {
const renderProjectInfo = React.useCallback((gridArea?: GridProps['gridArea']) => {
return (
<Box gridArea={ gridArea }>
<Link fontSize="xs" href="https://www.blockscout.com">blockscout.com</Link>
<Link fontSize="xs" href="https://www.allfeat.com">allfeat.com</Link>
<Text mt={ 3 } fontSize="xs">
Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks.
Allfeat is an innovative platform that hosts decentralized applications (DApps) through smart contracts,
offering advanced features tailored for the music industry, aimed at both developers and validators.
</Text>
<VStack spacing={ 1 } mt={ 6 } alignItems="start">
{ apiVersionUrl && (
Expand Down

0 comments on commit 46eec16

Please sign in to comment.