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
Showing
15 changed files
with
7,297 additions
and
88 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
41 changes: 31 additions & 10 deletions
41
app/components/multiple-wallets/multiple-wallets.component.svelte.html
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 |
---|---|---|
@@ -1,15 +1,36 @@ | ||
<h1 class="print-only print-title">Those wallets are 15cmx8cm, folded they occupies the size of a business card (5cmx8cm).</h1> | ||
|
||
{{#each wallets as wallet, i}} | ||
<PaperWallet publicAddress="{{wallet.publicAddress}}" privateKey="{{wallet.privateKey}}" publicQRCode="{{wallet.publicQRCode}}" privateQRCode="{{wallet.privateQRCode}}" /> | ||
{{/each}} | ||
|
||
<div class="MultipleWalletsComp"> | ||
<button class="btn" on:click="actionPaperWallet()">PaperWallet (print)</button> | ||
{{#each wallets as wallet, i}} | ||
<div class="wallet"> | ||
<h2>Wallet #{{i + 1}}</h2> | ||
<div class="wallet-public-address"> | ||
<div class="wallet-title">Public Address:</div> | ||
<div class="wallet-value">{{wallet.publicAddress}}</div> | ||
<div class="wallet"> | ||
<h2>Wallet #{{i + 1}}</h2> | ||
<div class="wallet-public-address"> | ||
<div class="wallet-title">Public Address:</div> | ||
<div class="wallet-value">{{wallet.publicAddress}}</div> | ||
</div> | ||
<div class="wallet-private-key"> | ||
<div class="wallet-title">Private key:</div> | ||
<div class="wallet-value">{{wallet.privateKey}}</div> | ||
</div> | ||
</div> | ||
<div class="wallet-private-key"> | ||
<div class="wallet-title">Private key:</div> | ||
<div class="wallet-value">{{wallet.privateKey}}</div> | ||
</div> | ||
</div> | ||
{{/each}} | ||
</div> | ||
|
||
<script> | ||
import PaperWallet from '../paperwallet/paperwallet.component.svelte'; | ||
export default { | ||
methods: { | ||
actionPaperWallet() { | ||
window.print(); | ||
} | ||
}, | ||
components: { | ||
PaperWallet | ||
} | ||
} | ||
</script> |
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 @@ | ||
.PaperWalletComp { | ||
@media print { | ||
width: 15cm; | ||
margin: 0 auto 0.5cm; | ||
} | ||
} |
1,184 changes: 1,184 additions & 0 deletions
1,184
app/components/paperwallet/paperwallet.component.svelte.html
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
@include viewports(above small) { | ||
flex-direction: column; | ||
min-height: auto; | ||
} | ||
|
||
h1 { | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.