forked from blocknative/web3-onboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update ui for Modal and notify for connect HD Wallets
- Loading branch information
1 parent
6851ab7
commit 7cf98ed
Showing
18 changed files
with
319 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
packages/core/src/views/connect/ConnectHDWalletModal.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<script lang="ts"> | ||
import { _ } from 'svelte-i18n' | ||
import { Modal } from '../shared' | ||
import en from '../../i18n/en.json' | ||
import warningIcon from '../../icons/warning.js' | ||
export let wallet : string | ||
export let onConfirm: () => void | ||
</script> | ||
|
||
<style> | ||
.content { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 20px; | ||
font-family: var(--onboard-font-family-normal, var(--font-family-normal)); | ||
font-size: var(--onboard-font-size-5, var(--font-size-5)); | ||
line-height: 24px; | ||
text-align: center; | ||
max-width: 390px; | ||
} | ||
.content-description, .content-subHeading { | ||
padding: 0 var(--spacing-4); | ||
} | ||
.content-subHeading { | ||
color: var(--danger-600); | ||
font-weight: 600; | ||
} | ||
.content-description { | ||
font-size: var(--font-size-6); | ||
color: rgba(255, 255, 255, 0.45); | ||
font-weight: 500; | ||
} | ||
button { | ||
margin-top: 1.5rem; | ||
width: 50%; | ||
font-weight: 600; | ||
} | ||
.title { | ||
width: 300px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
.right { | ||
margin-left: 0.75rem; | ||
} | ||
.width-100 { | ||
width: 100%; | ||
} | ||
</style> | ||
|
||
<Modal close={() => {}} maskClose={true}> | ||
<span class="title" slot="title"> | ||
{$_('modals.confirmConnectHDWallet.heading', { | ||
default: en.modals.confirmConnectHDWallet.heading, | ||
values: { wallet } | ||
})} | ||
</span> | ||
<div class="content width-100" slot="content"> | ||
<span class="content-subHeading width-100"> | ||
{$_('modals.confirmConnectHDWallet.subHeading', { | ||
default: en.modals.confirmConnectHDWallet.subHeading | ||
})} | ||
</span> | ||
<span class="content-description width-100"> | ||
{$_('modals.confirmConnectHDWallet.description', { | ||
default: en.modals.confirmConnectHDWallet.description | ||
})} | ||
</span> | ||
</div> | ||
|
||
<div class="flex justify-between items-center" slot="footer"> | ||
<button class="right button-neutral-danger width-100" on:click={onConfirm} | ||
>{$_('modals.confirmConnectHDWallet.confirm', { | ||
default: en.modals.confirmConnectHDWallet.confirm | ||
})}</button | ||
> | ||
</div> | ||
</Modal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.