2020-11-06 13:25:40 +01:00
|
|
|
<template>
|
|
|
|
<div class="container">
|
|
|
|
<div>
|
|
|
|
<Logo />
|
|
|
|
<h1 class="title">
|
2020-11-06 16:35:44 +01:00
|
|
|
address: {{ getAddress }}
|
|
|
|
<br>
|
|
|
|
network: {{ getNetwork }}
|
2020-11-06 13:25:40 +01:00
|
|
|
</h1>
|
2020-11-06 16:35:44 +01:00
|
|
|
<button @click="handleConnectProvider">Connect</button>
|
2020-11-06 13:25:40 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2020-11-06 16:35:44 +01:00
|
|
|
|
2020-11-06 13:25:40 +01:00
|
|
|
<script>
|
2020-11-06 16:35:44 +01:00
|
|
|
import { mapActions, mapGetters } from 'vuex'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
computed: {
|
|
|
|
...mapGetters('provider', ['getAddress', 'getNetwork']),
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
...mapActions('provider', ['initProvider']),
|
|
|
|
handleConnectProvider() {
|
|
|
|
this.initProvider({ name: 'metamask', network: 'mainnet' })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-06 13:25:40 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.container {
|
|
|
|
margin: 0 auto;
|
|
|
|
min-height: 100vh;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
font-family:
|
|
|
|
'Quicksand',
|
|
|
|
'Source Sans Pro',
|
|
|
|
-apple-system,
|
|
|
|
BlinkMacSystemFont,
|
|
|
|
'Segoe UI',
|
|
|
|
Roboto,
|
|
|
|
'Helvetica Neue',
|
|
|
|
Arial,
|
|
|
|
sans-serif;
|
|
|
|
display: block;
|
|
|
|
font-weight: 300;
|
2020-11-06 16:35:44 +01:00
|
|
|
font-size: 32px;
|
2020-11-06 13:25:40 +01:00
|
|
|
color: #35495e;
|
|
|
|
letter-spacing: 1px;
|
|
|
|
}
|
|
|
|
</style>
|