diff --git a/public/static/connect.png b/public/static/connect.png new file mode 100644 index 000000000..56e7c37b7 Binary files /dev/null and b/public/static/connect.png differ diff --git a/src/components/ConnectWallet/ConnectWallet.module.less b/src/components/ConnectWallet/ConnectWallet.module.less index 55b97b830..2dd64aeb1 100644 --- a/src/components/ConnectWallet/ConnectWallet.module.less +++ b/src/components/ConnectWallet/ConnectWallet.module.less @@ -1,77 +1,24 @@ .container { display: flex; flex-direction: column; - - padding: 2rem 3rem; + align-items: center; + padding: 24px; background: white; margin: 1rem 0; border-radius: 8px; + max-width: 420px; + + box-shadow: 0px 10px 20px 0px rgba(67, 136, 221, 0.06); } .subtitle { color: var(--gray700); margin: 1rem 0; + text-align: center; } -.walletContainer { - border-radius: 8px !important; - margin: 1rem 0; -} - -.walletContainer::before { - border-radius: 8px !important; -} - -.walletContainer :is(p, i) { - background: unset; - -webkit-background-clip: unset; - -webkit-text-fill-color: unset; -} - -.wallet { - width: 400px; - cursor: pointer; -} - -.title { - font-size: 26px; - font-weight: 600; -} - -.walletIcon { - width: 180px; - margin: 1rem 0; - padding-right: 12px; -} - -.walletSubtitle { - color: var(--gray700); -} - -.arrow { - font-size: 30px; - color: var(--gray900); -} - -.connectButton { - will-change: transform; - font-weight: 700; - line-height: 1; - height: 44px; - transition-timing-function: ease; - transition-duration: .1s; - font-family: var(--sq-font-family); - padding: 0 24px; - border-radius: 9999px; - background: #fff; - border: none; - cursor: pointer; - display: flex; - align-items: center; - font-size: 16px; - gap: 8px; -} - -.connectButton + .connectButton { - margin-top: 20px; +.connectBtn { + &:hover { + transform: scale(1.03); + } } diff --git a/src/components/ConnectWallet/ConnectWallet.tsx b/src/components/ConnectWallet/ConnectWallet.tsx index 99b12f733..2a794d8bd 100644 --- a/src/components/ConnectWallet/ConnectWallet.tsx +++ b/src/components/ConnectWallet/ConnectWallet.tsx @@ -4,7 +4,8 @@ import * as React from 'react'; import { useTranslation } from 'react-i18next'; import { ConnectButton } from '@rainbow-me/rainbowkit'; -import { Button, Typography } from '@subql/components'; +import { Typography } from '@subql/components'; +import { Button } from 'antd'; import clsx from 'clsx'; import styles from './ConnectWallet.module.less'; @@ -15,91 +16,39 @@ type Props = { className?: string; }; -export const SUPPORTED_NETWORKS = [ - { - icon: '/static/metaMask.svg', - name: 'MetaMask', - desc: 'Connect with Metamask browser extension', - }, - { - icon: '/static/walletConnect.svg', - name: 'WalletConnect', - desc: 'Connect with WalletConnect browser extension', - }, - { - icon: '/static/talisman.png', - name: 'Talisman', - desc: 'Connect with Talisman browser extension', - }, - { - icon: '/static/rainbow.svg', - name: 'Rainbow', - desc: 'Connect with Rainbow browser extension', - }, -]; - -const Wallet: React.FC<{ description?: string; name: string; icon: string; onClick?: () => void }> = ({ - icon, - name, - onClick, - description, -}) => { - const { t } = useTranslation(); - - return ( - + )} + ); }; diff --git a/src/i18n/en/explorer.ts b/src/i18n/en/explorer.ts index 41c137010..bdcbc6bae 100644 --- a/src/i18n/en/explorer.ts +++ b/src/i18n/en/explorer.ts @@ -209,8 +209,9 @@ const translation = { deploymentId: 'Deployment ID', }, connectWallet: { - title: 'Connect wallet', - subtitle: 'To participate in our test network, please start by connecting your wallet first.', + title: 'Connect your wallet', + subtitle: + "To continue, please connect your wallet to the SubQuery Network. If you don't have a wallet, you can select a provider and create one now.", connectWith: 'Connect With:', metamaskDesc: 'Connect with Metamask browser extension', talismanDesc: 'Connect with Talisman browser extension',