From fb868838b66c4c5019ef86b945dd8c799191acb7 Mon Sep 17 00:00:00 2001 From: Sebastian Scatularo Date: Tue, 24 Oct 2023 15:17:40 -0300 Subject: [PATCH] #469 #468 - add wormholescan link and banner --- package-lock.json | 4 +- package.json | 2 +- public/cosmos/index.css | 74 ++++++- public/cosmos/index.html | 26 ++- public/sui/index.css | 74 ++++++- public/sui/index.html | 239 +++++++++++---------- public/usdc-bridge/index.css | 174 ++++++--------- public/usdc-bridge/index.html | 25 ++- src/App.tsx | 24 +++ src/components/NewsBar.tsx | 130 ----------- src/components/NewsBar/Bar.tsx | 32 +++ src/components/NewsBar/NewsBarButton.tsx | 38 ++++ src/components/NewsBar/index.tsx | 18 ++ src/components/NewsBar/messages.tsx | 115 ++++++++++ src/components/NewsBar/useBannerMessage.ts | 31 +++ 15 files changed, 629 insertions(+), 377 deletions(-) delete mode 100644 src/components/NewsBar.tsx create mode 100644 src/components/NewsBar/Bar.tsx create mode 100644 src/components/NewsBar/NewsBarButton.tsx create mode 100644 src/components/NewsBar/index.tsx create mode 100644 src/components/NewsBar/messages.tsx create mode 100644 src/components/NewsBar/useBannerMessage.ts diff --git a/package-lock.json b/package-lock.json index 6c7a01531..2f12f67a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@xlabs/portal-bridge-ui", - "version": "0.1.85", + "version": "0.1.86", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@xlabs/portal-bridge-ui", - "version": "0.1.85", + "version": "0.1.86", "hasInstallScript": true, "dependencies": { "@certusone/wormhole-sdk": "^0.10.4", diff --git a/package.json b/package.json index 75bcc7a23..bc68a215d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xlabs/portal-bridge-ui", - "version": "0.1.85", + "version": "0.1.86", "private": true, "dependencies": { "@certusone/wormhole-sdk": "^0.10.4", diff --git a/public/cosmos/index.css b/public/cosmos/index.css index b13801231..3a842ed1e 100644 --- a/public/cosmos/index.css +++ b/public/cosmos/index.css @@ -49,14 +49,14 @@ body { justify-content: center; } -.cosmos-banner { +.wormholescan-banner { box-sizing: inherit; width: 100%; + height: 56px; display: flex; padding: 4px 16px; font-size: 16px; - background: linear-gradient(1deg, #9577F4 0%, #AD55DA 28.96%, #CA2EBD 100%); - min-height: 56px; + background: linear-gradient(86deg, #FF2A57 0%, #FF2A57 28.96%, #0F0C48 100%); text-align: center; align-items: center; font-weight: 500; @@ -64,7 +64,7 @@ body { justify-content: center; } -.cosmos-link { +.wormholescan-link { text-align: center; box-sizing: inherit; margin: 0; @@ -198,6 +198,11 @@ body { text-underline-offset: 6px; margin-left: 32px; } + +.link:hover { + text-decoration: underline; +} + .active { text-decoration: underline; } @@ -233,3 +238,64 @@ body { .footer-link:visited { color: white; } + +.MuiChip-label { + overflow: hidden; + white-space: nowrap; + padding-left: 12px; + padding-right: 12px; + text-overflow: ellipsis; +} + +.MuiChip-labelSmall { + padding-left: 8px; + padding-right: 8px; +} + +.MuiChip-root { + color: #fff; + border: none; + cursor: default; + height: 32px; + display: inline-flex; + outline: 0; + padding: 0; + font-size: 0.7544642857142857rem; + box-sizing: border-box; + transition: background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; + align-items: center; + font-family: 'Poppins', sans-serif; + white-space: nowrap; + border-radius: 16px; + vertical-align: middle; + justify-content: center; + text-decoration: none; + background-color: #616161; +} + +.MuiChip-sizeSmall { + height: 24px; +} + +.makeStyles-newTag-17 { + left: 142px; + color: #E2E1FF; + bottom: 24px; + position: relative; + font-size: 10px; + word-wrap: break-word; + font-weight: 600; + line-height: 24px; + background-color: #3B3785; +} + +@media (max-width:1279.95px) { + .wormholescan-banner { + height: auto; + padding: 8px; + flex-direction: column; + } + .wormholescan-banner p { + margin: 0px; + } +} \ No newline at end of file diff --git a/public/cosmos/index.html b/public/cosmos/index.html index 06243c4d4..b981e00c0 100644 --- a/public/cosmos/index.html +++ b/public/cosmos/index.html @@ -35,15 +35,13 @@
-