diff --git a/components/Layout/Header/index.js b/components/Layout/Header/index.js
index fb54f3f8..ff4ee2a3 100644
--- a/components/Layout/Header/index.js
+++ b/components/Layout/Header/index.js
@@ -23,6 +23,7 @@ import CurrencyTable from './CurrencyTable'
import NetworkTable from './NetworkTable'
import MobileMenu from './MobileMenu'
import { FaAngleDown } from 'react-icons/fa'
+import { FaWallet } from 'react-icons/fa'
import { IoIosRocket } from 'react-icons/io'
import LogoSmall from '../LogoSmall'
@@ -522,6 +523,9 @@ export default function Header({
)}
+
+ Connect Wallet
+
Bithomp Pro
diff --git a/components/SignForm.js b/components/SignForm.js
index 1b081c03..fe92a6b3 100644
--- a/components/SignForm.js
+++ b/components/SignForm.js
@@ -125,6 +125,8 @@ export default function SignForm({
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [uuid])
+ if (!signRequest) return null
+
const txSend = (options) => {
//when the request is wallet specific it's a priority, logout if not matched
//when request is not wallet specific, use the account wallet if loggedin
diff --git a/pages/auth/connect-wallet.js b/pages/auth/connect-wallet.js
new file mode 100644
index 00000000..01920b1c
--- /dev/null
+++ b/pages/auth/connect-wallet.js
@@ -0,0 +1,127 @@
+import { useState } from 'react'
+
+import { useTranslation } from 'next-i18next'
+import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
+import Image from 'next/image'
+
+import SignForm from '../../components/SignForm'
+
+export async function getServerSideProps(context) {
+ const { locale } = context
+ return {
+ props: {
+ ...(await serverSideTranslations(locale, ['common']))
+ }
+ }
+}
+
+export default function ConnectWallet() {
+ const { t } = useTranslation('common')
+
+ const [account, setAccount] = useState(null)
+ const [signRequest, setSignRequest] = useState(null)
+ const [refreshPage, setRefreshPage] = useState('')
+ const [wcSession, setWcSession] = useState(null)
+
+ const handleWalletClick = (wallet) => {
+ setSignRequest({
+ wallet: wallet,
+ redirectName: 'connect-wallet'
+ })
+ }
+
+ return (
+
+ {t('connect-wallet.title', 'Connect your crypto wallet')}
+
+ {t(
+ 'connect-wallet.description',
+ 'Connect your crypto wallet to the blockchain explorer to start exploring XRP Ledger.'
+ )}
+
+
+
+ -
+ handleWalletClick('xaman')}>
+
+ Xaman
+
+
+ - handleWalletClick('crossmark')}
+ className="flex justify-center items-center gap-2 border-2 border-black p-2 hover:shadow-[4px_4px_0px_0px] transition-shadow duration-300"
+ >
+
+
+ Crossmark
+
+
+ -
+ handleWalletClick('gemwallet')}>
+
+ GemWallet
+
+
+ -
+ handleWalletClick('metamask')}>
+
+ Metamask
+
+
+ -
+ handleWalletClick('ledgerwallet')}>
+
+ Ledger
+
+
+ -
+ handleWalletClick('trezor')}>
+
+ Trezor
+
+
+
+
+
+
+ )
+}
diff --git a/styles/components/signForm.scss b/styles/components/signForm.scss
index db52dc7f..0bd6a7aa 100644
--- a/styles/components/signForm.scss
+++ b/styles/components/signForm.scss
@@ -1,6 +1,6 @@
.sign-in-form {
background: rgba(black, 0.6);
- position: absolute;
+ position: fixed;
top: 0;
right: 0;
bottom: 0;
diff --git a/styles/ui.scss b/styles/ui.scss
index e6ec9b1e..6d9025bd 100644
--- a/styles/ui.scss
+++ b/styles/ui.scss
@@ -99,7 +99,7 @@ body.dark {
.content-text,
.content-center,
.content-profile {
- z-index: 1;
+ // z-index: 1;
position: relative;
}