diff --git a/.changelog/1355.feature.md b/.changelog/1355.feature.md new file mode 100644 index 0000000000..9fc861e9ed --- /dev/null +++ b/.changelog/1355.feature.md @@ -0,0 +1 @@ +Add Pontus-X branding and configuration diff --git a/.changelog/2224.trivial.md b/.changelog/2224.trivial.md new file mode 100644 index 0000000000..de139eda83 --- /dev/null +++ b/.changelog/2224.trivial.md @@ -0,0 +1 @@ +Replace the EUROe token with EURAU diff --git a/.changelog/2225.trivial.md b/.changelog/2225.trivial.md new file mode 100644 index 0000000000..d7682df509 --- /dev/null +++ b/.changelog/2225.trivial.md @@ -0,0 +1 @@ +Update Pontus-X faucet text and link diff --git a/.env b/.env index eef58ab878..304cde69df 100644 --- a/.env +++ b/.env @@ -1,35 +1,36 @@ REACT_APP_BUILD_DATETIME=0 REACT_APP_BUILD_SHA=sha0000000000000000000000000000000000000 REACT_APP_BUILD_VERSION= -REACT_APP_PRIVACY_POLICY=https://oasisprotocol.org/privacy-policy -REACT_APP_ENABLE_OASIS_MATOMO_ANALYTICS=true +REACT_APP_PRIVACY_POLICY=/privacy +REACT_APP_ENABLE_OASIS_MATOMO_ANALYTICS=false # REACT_APP_API=http://localhost:8008/v1/ # REACT_APP_API=https://nexus.stg.oasis.io/v1/ # REACT_APP_TESTNET_API=https://testnet.nexus.stg.oasis.io/v1/ REACT_APP_API=https://nexus.oasis.io/v1/ REACT_APP_TESTNET_API=https://testnet.nexus.oasis.io/v1/ REACT_APP_LOCALNET_API=http://localhost:8547/v1/ -REACT_APP_META_TITLE="Oasis Explorer" -REACT_APP_META_IMAGE="Oasis Explorer - OpenGraph Banner.png" -REACT_APP_META_MANIFEST=app.webmanifest -REACT_APP_META_FAVICON=https://assets.oasis.io/logotypes/favicon.svg -REACT_APP_META_APPLE_ICON="https://assets.oasis.io/logotypes/Icon Blue 192.png" -REACT_APP_META_DESC="Official explorer for the Oasis Network." -REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity -REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol -REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord -REACT_APP_SOCIAL_YOUTUBE=https://www.youtube.com/channel/UC35UFPcZ2F1wjPxhPrSsESQ -REACT_APP_SOCIAL_REDDIT=https://www.reddit.com/r/oasisnetwork/ -# REACT_APP_SOCIAL_LINKEDIN=https://www.linkedin.com/company/oasisprotocol -# REACT_APP_SOCIAL_DOCS=https://oasisprotocol.org/developers#overview -# REACT_APP_SOCIAL_HOME=https://oasisprotocol.org/ -REACT_APP_PRODUCTION_URLS="https://explorer.oasis.io, https://explorer.prd.oasis.io" -REACT_APP_STAGING_URLS=https://explorer.stg.oasis.io -REACT_APP_SHOW_BUILD_BANNERS=true +REACT_APP_META_TITLE=Pontus-X Explorer +REACT_APP_META_IMAGE=pontusx/og-image.png +REACT_APP_META_MANIFEST=pontusx.webmanifest +REACT_APP_META_FAVICON=pontusx/favicon.ico +REACT_APP_META_APPLE_ICON=pontusx/logo192.png +REACT_APP_META_DESC=Official explorer for the Pontus-X Network. +# REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity +# REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol +# REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord +# REACT_APP_SOCIAL_YOUTUBE=https://www.youtube.com/channel/UC35UFPcZ2F1wjPxhPrSsESQ +# REACT_APP_SOCIAL_REDDIT=https://www.reddit.com/r/oasisnetwork/ +REACT_APP_SOCIAL_LINKEDIN=https://www.linkedin.com/company/76729586 +REACT_APP_SOCIAL_DOCS=https://docs.pontus-x.eu/ +REACT_APP_SOCIAL_HOME=https://www.pontus-x.eu/ +#REACT_APP_PRODUCTION_URLS=https://explorer.oasis.io, https://explorer.prd.oasis.io +#REACT_APP_STAGING_URLS=https://explorer.stg.oasis.io +REACT_APP_SHOW_BUILD_BANNERS=false # REACT_APP_FIXED_NETWORK=testnet -# REACT_APP_FIXED_LAYER=sapphire -# REACT_APP_SKIP_GRAPH=true -REACT_APP_SHOW_FIAT_VALUES=true +# REACT_APP_FIXED_LAYER=pontusx +REACT_APP_SKIP_GRAPH=true +REACT_APP_SHOW_FIAT_VALUES=false +REACT_APP_SHOW_PRIVACY_POLICY=true # LOCALNET SETTINGS REACT_APP_LOCALNET_CONSENSUS=false diff --git a/.env.production b/.env.production index 7d12ef88e7..f43601bb87 100644 --- a/.env.production +++ b/.env.production @@ -1,26 +1,32 @@ REACT_APP_BUILD_DATETIME= REACT_APP_BUILD_SHA= REACT_APP_BUILD_VERSION= -REACT_APP_PRIVACY_POLICY=https://oasisprotocol.org/privacy-policy -REACT_APP_ENABLE_OASIS_MATOMO_ANALYTICS=true -REACT_APP_META_TITLE="Oasis Explorer" -REACT_APP_META_IMAGE="Oasis Explorer - OpenGraph Banner.png" -REACT_APP_META_MANIFEST=app.webmanifest -REACT_APP_META_FAVICON=https://assets.oasis.io/logotypes/favicon.svg -REACT_APP_META_APPLE_ICON="https://assets.oasis.io/logotypes/Icon Blue 192.png" -REACT_APP_META_DESC="Official explorer for the Oasis Network." -REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity -REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol -REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord -REACT_APP_SOCIAL_YOUTUBE=https://www.youtube.com/channel/UC35UFPcZ2F1wjPxhPrSsESQ -REACT_APP_SOCIAL_REDDIT=https://www.reddit.com/r/oasisnetwork/ -# REACT_APP_SOCIAL_LINKEDIN=https://www.linkedin.com/company/oasisprotocol -# REACT_APP_SOCIAL_DOCS=https://oasisprotocol.org/developers#overview -# REACT_APP_SOCIAL_HOME=https://oasisprotocol.org/ -REACT_APP_PRODUCTION_URLS="https://explorer.oasis.io, https://explorer.prd.oasis.io" -REACT_APP_STAGING_URLS=https://explorer.stg.oasis.io -REACT_APP_SHOW_BUILD_BANNERS=true +REACT_APP_PRIVACY_POLICY=/privacy +REACT_APP_ENABLE_OASIS_MATOMO_ANALYTICS=false +# REACT_APP_API=http://localhost:8008/v1/ +# REACT_APP_API=https://nexus.stg.oasis.io/v1/ +# REACT_APP_TESTNET_API=https://testnet.nexus.stg.oasis.io/v1/ +REACT_APP_API=https://nexus.oasis.io/v1/ +REACT_APP_TESTNET_API=https://testnet.nexus.oasis.io/v1/ +REACT_APP_META_TITLE=Pontus-X Explorer +REACT_APP_META_IMAGE=pontusx/og-image.png +REACT_APP_META_MANIFEST=pontusx.webmanifest +REACT_APP_META_FAVICON=pontusx/favicon.ico +REACT_APP_META_APPLE_ICON=pontusx/logo192.png +REACT_APP_META_DESC=Official explorer for the Pontus-X Network. +# REACT_APP_SOCIAL_TELEGRAM=https://t.me/oasisprotocolcommunity +# REACT_APP_SOCIAL_TWITTER=https://twitter.com/oasisprotocol +# REACT_APP_SOCIAL_DISCORD=https://oasis.io/discord +# REACT_APP_SOCIAL_YOUTUBE=https://www.youtube.com/channel/UC35UFPcZ2F1wjPxhPrSsESQ +# REACT_APP_SOCIAL_REDDIT=https://www.reddit.com/r/oasisnetwork/ +REACT_APP_SOCIAL_LINKEDIN=https://www.linkedin.com/company/76729586 +REACT_APP_SOCIAL_DOCS=https://docs.pontus-x.eu/ +REACT_APP_SOCIAL_HOME=https://www.pontus-x.eu/ +# REACT_APP_PRODUCTION_URLS=https://explorer.oasis.io, https://explorer.prd.oasis.io +# REACT_APP_STAGING_URLS=https://explorer.stg.oasis.io +REACT_APP_SHOW_BUILD_BANNERS=false # REACT_APP_FIXED_NETWORK=testnet -# REACT_APP_FIXED_LAYER=sapphire -# REACT_APP_SKIP_GRAPH=true -REACT_APP_SHOW_FIAT_VALUES=true +# REACT_APP_FIXED_LAYER=pontusx +REACT_APP_SKIP_GRAPH=true +REACT_APP_SHOW_FIAT_VALUES=false +REACT_APP_SHOW_PRIVACY_POLICY=true diff --git a/package.json b/package.json index 7a1cdc97e8..1be52e8697 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,8 @@ "viem": "^2.31.4" }, "devDependencies": { + "@mdx-js/react": "^1.6.22", + "@mdx-js/rollup": "^3.1.0", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/public/pontusx.webmanifest b/public/pontusx.webmanifest new file mode 100644 index 0000000000..b8812a83ea --- /dev/null +++ b/public/pontusx.webmanifest @@ -0,0 +1,26 @@ +{ + "$schema": "https://json.schemastore.org/web-manifest-combined.json", + "short_name": "Pontus-X Explorer", + "name": "Official explorer for the Pontus-X Network.", + "icons": [ + { + "src": "./pontusx/favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + }, + { + "src": "./pontusx/logo192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "./pontusx/logo512.png", + "type": "image/png", + "sizes": "512x512" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/public/pontusx/apple-touch.png b/public/pontusx/apple-touch.png new file mode 100644 index 0000000000..aa467c6b31 Binary files /dev/null and b/public/pontusx/apple-touch.png differ diff --git a/public/pontusx/favicon-16x16.png b/public/pontusx/favicon-16x16.png new file mode 100644 index 0000000000..69da7c66b8 Binary files /dev/null and b/public/pontusx/favicon-16x16.png differ diff --git a/public/pontusx/favicon-32x32.png b/public/pontusx/favicon-32x32.png new file mode 100644 index 0000000000..879e4a58e1 Binary files /dev/null and b/public/pontusx/favicon-32x32.png differ diff --git a/public/pontusx/favicon.ico b/public/pontusx/favicon.ico new file mode 100644 index 0000000000..5964973425 Binary files /dev/null and b/public/pontusx/favicon.ico differ diff --git a/public/pontusx/logo192.png b/public/pontusx/logo192.png new file mode 100644 index 0000000000..4032ba6f41 Binary files /dev/null and b/public/pontusx/logo192.png differ diff --git a/public/pontusx/logo512.png b/public/pontusx/logo512.png new file mode 100644 index 0000000000..88006d2a7d Binary files /dev/null and b/public/pontusx/logo512.png differ diff --git a/public/pontusx/logo_blue.svg b/public/pontusx/logo_blue.svg new file mode 100644 index 0000000000..986b511297 --- /dev/null +++ b/public/pontusx/logo_blue.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/pontusx/logo_only_blue.svg b/public/pontusx/logo_only_blue.svg new file mode 100644 index 0000000000..873ccc5566 --- /dev/null +++ b/public/pontusx/logo_only_blue.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/public/pontusx/logo_only_white.svg b/public/pontusx/logo_only_white.svg new file mode 100644 index 0000000000..e5d7441ad7 --- /dev/null +++ b/public/pontusx/logo_only_white.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/public/pontusx/logo_white.svg b/public/pontusx/logo_white.svg new file mode 100644 index 0000000000..83e28864b9 --- /dev/null +++ b/public/pontusx/logo_white.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/pontusx/og-image.png b/public/pontusx/og-image.png new file mode 100644 index 0000000000..c56245edfb Binary files /dev/null and b/public/pontusx/og-image.png differ diff --git a/src/app/components/CustomIcons/PontusxIcon.tsx b/src/app/components/CustomIcons/PontusxIcon.tsx new file mode 100644 index 0000000000..f9b0495d97 --- /dev/null +++ b/src/app/components/CustomIcons/PontusxIcon.tsx @@ -0,0 +1,40 @@ +import { FC } from 'react' +import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon' + +export const PontusxIcon: FC = props => { + return ( + + + + + + + + ) +} diff --git a/src/app/components/CustomIcons/pontusx_horizontal_white.svg b/src/app/components/CustomIcons/pontusx_horizontal_white.svg new file mode 100644 index 0000000000..fb05dfa65b --- /dev/null +++ b/src/app/components/CustomIcons/pontusx_horizontal_white.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/app/components/PageLayout/Header.tsx b/src/app/components/PageLayout/Header.tsx index 2bcbddca8e..0b16e14c0e 100644 --- a/src/app/components/PageLayout/Header.tsx +++ b/src/app/components/PageLayout/Header.tsx @@ -11,6 +11,7 @@ import { useScopeParam } from '../../hooks/useScopeParam' import { useScreenSize } from '../../hooks/useScreensize' import { isScopeSelectorNeeded } from '../../utils/route-utils' import { useTranslation } from 'react-i18next' +import { hideRoseAppButton } from '../../../config' export const Header: FC = () => { const theme = useTheme() @@ -57,7 +58,7 @@ export const Header: FC = () => { )} - {isDesktop && ( + {isDesktop && !hideRoseAppButton && (