-
Notifications
You must be signed in to change notification settings - Fork 771
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
3 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
src/layouts/CreateWalletWarningLayout/CreateWalletWarningLayout.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,32 @@ | ||
@import '~@/scss/GlobalVariables'; | ||
|
||
.wrap { | ||
background-color: $background-color-1; | ||
padding: 0; | ||
} | ||
|
||
.nav-tab-user-input-box { | ||
background-color: $background-color-white; | ||
margin: 0 auto; | ||
max-width: 550px; | ||
|
||
.progress-bar { | ||
animation-name: progreesbar-grow; | ||
width: 33.33%; | ||
} | ||
|
||
@keyframes progreesbar-grow { | ||
from {width: 0%;} | ||
to {width: 33.33%;} | ||
} | ||
|
||
.tab-pane { | ||
min-height: 500px; | ||
padding: 50px; | ||
|
||
h3 { | ||
margin-bottom: 40px; | ||
text-align: center; | ||
} | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
src/layouts/CreateWalletWarningLayout/CreateWalletWarningLayout.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,87 @@ | ||
<template> | ||
<div class="your-password"> | ||
<tutorial-modal :skip="skip"></tutorial-modal> | ||
<by-json-page-title></by-json-page-title> | ||
<div class="wrap"> | ||
<div class="page-container"> | ||
<div class="nav-tab-user-input-box" v-show="!byJson && !byMnemonic"> | ||
<b-tabs class="x100"> | ||
<div class="progress-bar"></div> | ||
<b-tab title="By JSON File" active> | ||
<h3>{{ $t("createWallet.yourPw") }}</h3> | ||
<create-wallet-input v-model='password' :switcher="switcher" :param="'Json'"></create-wallet-input> | ||
<create-wallet-input-footer></create-wallet-input-footer> | ||
</b-tab> | ||
<b-tab title="By Mnemonic Phrase" > | ||
<h3>{{ $t("createWallet.yourPw") }}</h3> | ||
<create-wallet-input v-model='password' :switcher="switcher" :param="'Mnemonic'"></create-wallet-input> | ||
<create-wallet-input-footer></create-wallet-input-footer> | ||
</b-tab> | ||
</b-tabs> | ||
</div> | ||
<by-json-file-container v-if="byJson && !byMnemonic" :password="password"></by-json-file-container> | ||
<by-mnemonic-container v-if="!byJson && byMnemonic"></by-mnemonic-container> | ||
</div> | ||
</div> | ||
|
||
<by-json-page-footer></by-json-page-footer> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
import ByJsonFileContainer from '@/containers/ByJsonFileContainer' | ||
import ByMnemonicContainer from '@/containers/ByMnemonicContainer' | ||
import TutorialModal from './components/TutorialModal' | ||
import CreateWalletInput from './components/CreateWalletInput' | ||
import CreateWalletInputFooter from './components/CreateWalletInputFooter' | ||
import PageFooter from './components/PageFooter' | ||
import PageTitle from './components/PageTitle' | ||
export default { | ||
components: { | ||
'by-json-file-container': ByJsonFileContainer, | ||
'by-mnemonic-container': ByMnemonicContainer, | ||
'tutorial-modal': TutorialModal, | ||
'by-json-page-title': PageTitle, | ||
'create-wallet-input': CreateWalletInput, | ||
'create-wallet-input-footer': CreateWalletInputFooter, | ||
'by-json-page-footer': PageFooter | ||
}, | ||
data () { | ||
return { | ||
byJson: false, | ||
byMnemonic: false, | ||
password: '' | ||
} | ||
}, | ||
methods: { | ||
switcher (by) { | ||
if (by === 'Json') { | ||
this.byJson = true | ||
this.byMnemonic = false | ||
} else if (by === 'Mnemonic') { | ||
this.byJson = false | ||
this.byMnemonic = true | ||
} else { | ||
this.byJson = false | ||
this.byMnemonic = false | ||
} | ||
}, | ||
skip () { | ||
localStorage.setItem('skipTutorial', true) | ||
this.$children[0].$refs.tutorial.hide() | ||
} | ||
}, | ||
mounted () { | ||
let skipTutorial = localStorage.getItem('skipTutorial') | ||
if (skipTutorial === undefined || skipTutorial === null || skipTutorial === false) { | ||
this.$children[0].$refs.tutorial.show() | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "CreateWalletWarningLayout.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 './CreateWalletWarningLayout' |
cc3dd0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy of this build can be found at https://www.mewbuilds.com/build/cc3dd0f4b28080c9a64e63c0cb1c8a22b46ad309/index.html