From 44a9e048e57134db3a82ca6734859073a3f1f9b2 Mon Sep 17 00:00:00 2001 From: Abbas Ali Date: Tue, 29 Oct 2024 11:15:12 +0530 Subject: [PATCH] fix: ui rebranding network change and access pages --- .../src/pages/access/basic-access.tsx | 54 +++++++++++-------- .../src/pages/access/style.module.scss | 16 +++++- .../src/pages/access/viewing-key.tsx | 54 +++++++++++-------- .../pages/approveSwitchAccountPage/index.tsx | 47 +++++++++------- .../style.module.scss | 25 +++++---- .../pages/approveSwitchChainPage/index.tsx | 47 +++++++++------- .../approveSwitchChainPage/style.module.scss | 21 ++++---- 7 files changed, 163 insertions(+), 101 deletions(-) diff --git a/packages/fetch-extension/src/pages/access/basic-access.tsx b/packages/fetch-extension/src/pages/access/basic-access.tsx index 08ee3a827b..3d8b93bad3 100644 --- a/packages/fetch-extension/src/pages/access/basic-access.tsx +++ b/packages/fetch-extension/src/pages/access/basic-access.tsx @@ -1,7 +1,7 @@ import React, { FunctionComponent, useMemo } from "react"; import { useInteractionInfo } from "@keplr-wallet/hooks"; -import { Button } from "reactstrap"; +import { ButtonV2 } from "@components-v2/buttons/button"; import { observer } from "mobx-react-lite"; import { useStore } from "../../stores"; @@ -57,12 +57,15 @@ export const AccessPage: FunctionComponent = observer(() => { }, [waitingPermission]); return ( - +
logo

@@ -96,11 +99,16 @@ export const AccessPage: FunctionComponent = observer(() => {
- - + dataLoading={permissionStore.isLoading} + text={} + />
diff --git a/packages/fetch-extension/src/pages/access/style.module.scss b/packages/fetch-extension/src/pages/access/style.module.scss index a0f361eb71..3dbf65da56 100644 --- a/packages/fetch-extension/src/pages/access/style.module.scss +++ b/packages/fetch-extension/src/pages/access/style.module.scss @@ -1,3 +1,11 @@ +.emptyLayout { + background-color: #000d3d; + background-image: url("../../public/assets/svg/wireframe/bg.svg"); + background-repeat: no-repeat; + background-size: cover; + background-position: center; +} + .container { display: flex; flex-direction: column; @@ -6,18 +14,20 @@ .header { margin-top: 20px; text-align: center; + color: white; } .paragraph { text-align: center; padding: 0 24px; overflow-y: auto; + color: white; } .permission { margin-top: 30px; font-size: 14px; - color: #525f7f; + color: white; text-align: center; } @@ -27,7 +37,7 @@ padding: 0; width: fit-content; margin: auto; - color: #525f7f; + color: white; li:before { content: "- "; @@ -36,6 +46,8 @@ .buttons { display: flex; + margin-bottom: 20px; + gap: 10px; } .button { diff --git a/packages/fetch-extension/src/pages/access/viewing-key.tsx b/packages/fetch-extension/src/pages/access/viewing-key.tsx index 0ad630bc68..65d5242a05 100644 --- a/packages/fetch-extension/src/pages/access/viewing-key.tsx +++ b/packages/fetch-extension/src/pages/access/viewing-key.tsx @@ -1,7 +1,7 @@ import React, { FunctionComponent, useEffect, useMemo } from "react"; import { useInteractionInfo } from "@keplr-wallet/hooks"; -import { Button } from "reactstrap"; +import { ButtonV2 } from "@components-v2/buttons/button"; import { ChainIdHelper } from "@keplr-wallet/cosmos"; @@ -45,12 +45,15 @@ export const Secret20ViewingKeyAccessPage: FunctionComponent = observer(() => { }, [waitingPermission]); return ( - +
logo

@@ -78,11 +81,16 @@ export const Secret20ViewingKeyAccessPage: FunctionComponent = observer(() => {
- - + dataLoading={permissionStore.isLoading} + text={} + />
diff --git a/packages/fetch-extension/src/pages/approveSwitchAccountPage/index.tsx b/packages/fetch-extension/src/pages/approveSwitchAccountPage/index.tsx index e5677c7ec9..d06048680a 100644 --- a/packages/fetch-extension/src/pages/approveSwitchAccountPage/index.tsx +++ b/packages/fetch-extension/src/pages/approveSwitchAccountPage/index.tsx @@ -1,6 +1,5 @@ import React, { FunctionComponent, useEffect, useState } from "react"; import { useNavigate } from "react-router"; -import { Button } from "reactstrap"; import style from "./style.module.scss"; import { EmptyLayout } from "@layouts/empty-layout"; @@ -13,6 +12,7 @@ import { messageAndGroupListenerUnsubscribe } from "@graphQL/messages-api"; import { InExtensionMessageRequester } from "@keplr-wallet/router-extension"; import { ListAccountsMsg } from "@keplr-wallet/background"; import { BACKGROUND_PORT } from "@keplr-wallet/router"; +import { ButtonV2 } from "@components-v2/buttons/button"; export const ApproveSwitchAccountByAddressPage: FunctionComponent = observer( () => { @@ -85,7 +85,7 @@ export const ApproveSwitchAccountByAddressPage: FunctionComponent = observer( } return ( - + {isLoadingPlaceholder ? (
@@ -181,7 +181,7 @@ export const ApproveSwitchAccountByAddressPage: FunctionComponent = observer(
chain logo
@@ -194,7 +194,7 @@ export const ApproveSwitchAccountByAddressPage: FunctionComponent = observer(
keplr logo
@@ -234,12 +234,17 @@ export const ApproveSwitchAccountByAddressPage: FunctionComponent = observer(
}
- - + text={} + />
)} diff --git a/packages/fetch-extension/src/pages/approveSwitchAccountPage/style.module.scss b/packages/fetch-extension/src/pages/approveSwitchAccountPage/style.module.scss index b1df64593f..6b83fc8fd5 100644 --- a/packages/fetch-extension/src/pages/approveSwitchAccountPage/style.module.scss +++ b/packages/fetch-extension/src/pages/approveSwitchAccountPage/style.module.scss @@ -1,3 +1,11 @@ +.emptyLayout { + background-color: #000d3d; + background-image: url("../../public/assets/svg/wireframe/bg.svg"); + background-repeat: no-repeat; + background-size: cover; + background-position: center; +} + .container { display: flex; flex-direction: column; @@ -179,11 +187,6 @@ .imageBackground { width: 80px; height: 80px; - background: linear-gradient( - 315deg, - #0084da 13.07%, - rgba(0, 132, 218, 0.31) 85.23% - ); border-radius: 50%; opacity: 0.3; } @@ -219,9 +222,10 @@ margin-top: 18px; text-align: center; font-weight: 600; - font-size: 24px; + font-size: 22px; line-height: 29px; - color: #2c2e53; + color: white; + word-wrap: break-word; } .tag { @@ -256,9 +260,8 @@ flex: 1; - /* Platinum/Platinum 300 */ - - color: #566172; + color: white; + word-wrap: break-word; } .chainDetailContainer { @@ -381,6 +384,8 @@ .buttons { justify-self: flex-end; display: flex; + margin-bottom: 20px; + gap: 10px; } .button { diff --git a/packages/fetch-extension/src/pages/approveSwitchChainPage/index.tsx b/packages/fetch-extension/src/pages/approveSwitchChainPage/index.tsx index e16bf7f9fe..6dccbb1d06 100644 --- a/packages/fetch-extension/src/pages/approveSwitchChainPage/index.tsx +++ b/packages/fetch-extension/src/pages/approveSwitchChainPage/index.tsx @@ -1,6 +1,6 @@ import React, { FunctionComponent, useEffect, useState } from "react"; import { useNavigate } from "react-router"; -import { Button } from "reactstrap"; +import { ButtonV2 } from "@components-v2/buttons/button"; import style from "./style.module.scss"; import { EmptyLayout } from "@layouts/empty-layout"; @@ -48,7 +48,7 @@ export const ApproveSwitchChainPage: FunctionComponent = observer(() => { } return ( - + {isLoadingPlaceholder ? (
@@ -144,7 +144,7 @@ export const ApproveSwitchChainPage: FunctionComponent = observer(() => {
chain logo
@@ -157,7 +157,7 @@ export const ApproveSwitchChainPage: FunctionComponent = observer(() => {
keplr logo
@@ -211,12 +211,17 @@ export const ApproveSwitchChainPage: FunctionComponent = observer(() => {
}
- - + text={} + />
)} diff --git a/packages/fetch-extension/src/pages/approveSwitchChainPage/style.module.scss b/packages/fetch-extension/src/pages/approveSwitchChainPage/style.module.scss index b1df64593f..c0c62bf13d 100644 --- a/packages/fetch-extension/src/pages/approveSwitchChainPage/style.module.scss +++ b/packages/fetch-extension/src/pages/approveSwitchChainPage/style.module.scss @@ -1,3 +1,11 @@ +.emptyLayout { + background-color: #000d3d; + background-image: url("../../public/assets/svg/wireframe/bg.svg"); + background-repeat: no-repeat; + background-size: cover; + background-position: center; +} + .container { display: flex; flex-direction: column; @@ -179,11 +187,6 @@ .imageBackground { width: 80px; height: 80px; - background: linear-gradient( - 315deg, - #0084da 13.07%, - rgba(0, 132, 218, 0.31) 85.23% - ); border-radius: 50%; opacity: 0.3; } @@ -221,7 +224,7 @@ font-weight: 600; font-size: 24px; line-height: 29px; - color: #2c2e53; + color: white; } .tag { @@ -256,9 +259,7 @@ flex: 1; - /* Platinum/Platinum 300 */ - - color: #566172; + color: white; } .chainDetailContainer { @@ -381,6 +382,8 @@ .buttons { justify-self: flex-end; display: flex; + margin-bottom: 20px; + gap: 10px; } .button {