forked from MyEtherWallet/MyEtherWallet
-
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.
- Loading branch information
1 parent
0d87d6c
commit d5a70a4
Showing
17 changed files
with
400 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
src/components/Buttons/ButtonWithQrCode/ButtonWithQrCode.scss
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,11 @@ | ||
@import '~@/scss/GlobalVariables'; | ||
|
||
|
||
.wrap { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.the-button { | ||
margin-right: 15px; | ||
} |
33 changes: 33 additions & 0 deletions
33
src/components/Buttons/ButtonWithQrCode/ButtonWithQrCode.vue
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,33 @@ | ||
<template> | ||
<div class="modal-container"> | ||
<div class="wrap"> | ||
<div class="the-button large-round-button-green-filled">{{buttonname}}</div> | ||
<div class="qrcode-container"> | ||
<img class="dummy-qrcode" :src="qrcodeIconImage"> | ||
<div class="real-qrcode"> | ||
<img src=""> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import QrcodeIcon from '@/assets/images/icons/qr-code.svg' | ||
export default { | ||
props: ['qrcode', 'buttonname'], | ||
data () { | ||
return { | ||
qrcodeIconImage: QrcodeIcon | ||
} | ||
}, | ||
methods: { | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "ButtonWithQrCode.scss"; | ||
</style> |
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 @@ | ||
export { default } from './ButtonWithQrCode' |
6 changes: 6 additions & 0 deletions
6
src/components/Buttons/HelpCenterButton/HelpCenterButton.scss
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,6 @@ | ||
@import '~@/scss/GlobalVariables'; | ||
|
||
|
||
.wrap { | ||
text-align: center; | ||
} |
27 changes: 27 additions & 0 deletions
27
src/components/Buttons/HelpCenterButton/HelpCenterButton.vue
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,27 @@ | ||
<template> | ||
<div class="helpcenter-button"> | ||
<div class="wrap"> | ||
Having issues? | ||
<router-link to="/help-center">Help Center</router-link> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data () { | ||
return { | ||
} | ||
}, | ||
methods: { | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "HelpCenterButton.scss"; | ||
</style> |
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 @@ | ||
export { default } from './HelpCenterButton' |
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
92 changes: 92 additions & 0 deletions
92
...yout/containers/SwapContainer/components/SwapConfirmationModal/SwapConfirmationModal.scss
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,92 @@ | ||
@import '~@/scss/GlobalVariables'; | ||
|
||
|
||
.modal-body { | ||
|
||
} | ||
|
||
.time-remaining { | ||
text-align: center; | ||
|
||
h1 { | ||
font-weight: 500; | ||
font-size: 50px; | ||
color: $red-2; | ||
margin: 0; | ||
} | ||
} | ||
|
||
|
||
|
||
.value { | ||
font-size: 20px; | ||
font-weight: 500; | ||
margin-bottom: 13px; | ||
margin-top: 13px; | ||
|
||
span { | ||
font-size: 20px; | ||
font-weight: 500; | ||
} | ||
} | ||
|
||
|
||
.block-title { | ||
font-size: 15px; | ||
font-weight: 500; | ||
margin-bottom: 3px; | ||
} | ||
|
||
|
||
.address { | ||
line-height: 19px; | ||
overflow-wrap: break-word; | ||
word-wrap: break-word; | ||
|
||
-ms-word-break: break-all; | ||
word-break: break-all; | ||
word-break: break-word; | ||
|
||
-ms-hyphens: auto; | ||
-moz-hyphens: auto; | ||
-webkit-hyphens: auto; | ||
hyphens: auto; | ||
} | ||
|
||
.swap-detail { | ||
display: grid; | ||
grid-template-columns: 1fr 80px 1fr; | ||
margin-top: 20px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.from-address, | ||
.to-address { | ||
background-color: $background-color-1; | ||
padding: 20px; | ||
border-radius: 5px; | ||
|
||
.icon { | ||
|
||
} | ||
} | ||
|
||
|
||
.right-arrow { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-around; | ||
|
||
} | ||
|
||
|
||
.confirm-send-button { | ||
margin-top: 40px; | ||
margin-bottom: 20px; | ||
display: flex; | ||
|
||
>* { | ||
margin: 0 auto; | ||
} | ||
} | ||
|
106 changes: 106 additions & 0 deletions
106
...ayout/containers/SwapContainer/components/SwapConfirmationModal/SwapConfirmationModal.vue
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,106 @@ | ||
<template> | ||
<div class="modal-container"> | ||
<b-modal ref="swapconfirmation" hide-footer centered class="bootstrap-modal bootstrap-modal-wide padding-40-20" title="Confirmation"> | ||
<div class="time-remaining"> | ||
<h1>09:25</h1> | ||
<p>Time Remaining</p> | ||
</div> | ||
<div class="swap-detail"> | ||
<div class="from-address"> | ||
<div class="icon"> | ||
<img :src="fromAddress.image"> | ||
</div> | ||
<p class="value">{{fromAddress.value}} <span>{{fromAddress.name}}</span></p> | ||
<p class="block-title">From Address</p> | ||
<p class="address">{{fromAddress.address}}</p> | ||
</div> | ||
<div class="right-arrow"> | ||
<img :src="arrowImage"> | ||
</div> | ||
<div class="to-address"> | ||
<div class="icon"> | ||
<img :src="toAddress.image"> | ||
</div> | ||
<p class="value">{{toAddress.value}} <span>{{toAddress.name}}</span></p> | ||
<p class="block-title">To Address</p> | ||
<p class="address">{{toAddress.address}}</p> | ||
</div> | ||
</div> | ||
|
||
<detail-information :details="detailInfo"></detail-information> | ||
|
||
<div class="confirm-send-button"> | ||
<button-with-qrcode :qrcode="qrcode" buttonname="Confirm and Send"></button-with-qrcode> | ||
</div> | ||
|
||
<help-center-button></help-center-button> | ||
|
||
</b-modal> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Arrow from '@/assets/images/etc/single-arrow.svg' | ||
import iconBtc from '@/assets/images/currency/btc.svg' | ||
import iconEth from '@/assets/images/currency/eth.svg' | ||
import DetailInformation from './components/DetailInformation' | ||
import ButtonWithQrCode from '@/components/Buttons/ButtonWithQrCode' | ||
import HelpCenterButton from '@/components/Buttons/HelpCenterButton' | ||
export default { | ||
components: { | ||
'detail-information': DetailInformation, | ||
'button-with-qrcode': ButtonWithQrCode, | ||
'help-center-button': HelpCenterButton | ||
}, | ||
props: [], | ||
data () { | ||
return { | ||
qrcode: '', | ||
arrowImage: Arrow, | ||
fromAddress: { | ||
image: iconEth, | ||
value: '1.0000000000', | ||
name: 'ETH', | ||
address: '0xF54F78F67feCDd37e0C009aB4cCD6549A69540D4' | ||
}, | ||
toAddress: { | ||
image: iconBtc, | ||
value: '0.0034523', | ||
name: 'BTC', | ||
address: '0xF54F78F67feCDd37e0C009aB4cCD6549A69540D4' | ||
}, | ||
detailInfo: [ | ||
{ | ||
name: 'Network', | ||
value: 'ETH by mytherapi.com' | ||
}, | ||
{ | ||
name: 'Gas Limit', | ||
value: '21000' | ||
}, | ||
{ | ||
name: 'Gas Price', | ||
value: '210000 Gwei (0.00321 ETH=$1.234)' | ||
}, | ||
{ | ||
name: 'Max Transaction Fee', | ||
value: '441000 Gwei (0.000441 ETH)' | ||
}, | ||
{ | ||
name: 'Nonce', | ||
value: '0' | ||
}, | ||
{ | ||
name: 'Data', | ||
value: 'None' | ||
} | ||
] | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "SwapConfirmationModal.scss"; | ||
</style> |
Oops, something went wrong.