tornado-initiation-ui/pages/index.vue

57 lines
1.3 KiB
Vue
Raw Normal View History

2020-10-09 03:15:45 +02:00
<template>
2020-10-12 19:41:52 +02:00
<div>
2020-11-11 20:07:00 +01:00
<h1 class="title has-text-centered">
2021-10-25 11:12:11 +02:00
Tornado.cash <span>Pool</span> Deployment
2020-11-11 20:07:00 +01:00
</h1>
2020-11-03 07:54:19 +01:00
<h2 class="subtitle has-text-centered">{{ $t('pageSubtitle') }}</h2>
2020-10-12 19:41:52 +02:00
<div class="buttons is-centered">
2020-10-13 09:49:08 +02:00
<b-button
type="is-primary"
outlined
icon-left="tool"
@mousedown="(e) => e.preventDefault()"
@click="onStart"
2020-11-03 07:54:19 +01:00
>{{ $t('startNow') }}</b-button
2020-10-13 09:49:08 +02:00
>
2020-10-12 19:41:52 +02:00
</div>
2020-11-03 07:54:19 +01:00
<i18n tag="h3" class="title is-14px mt-6" path="completedTasks">
2021-10-25 11:12:11 +02:00
<template v-slot:layer>{{ $t(getNetwork.isL1 ? 'l1' : 'l2') }}</template>
2020-11-03 07:54:19 +01:00
<template v-slot:progress>
2021-10-25 11:12:11 +02:00
<span>{{ getNetwork.isL1 ? deployedL1Count : deployedL2Count }}</span>
2020-11-03 07:54:19 +01:00
</template>
</i18n>
2020-10-12 19:41:52 +02:00
<div class="tornado-discoverer image is-16by9"></div>
2020-10-13 09:49:08 +02:00
<steps ref="steps" />
2020-10-12 19:41:52 +02:00
</div>
2020-10-09 03:15:45 +02:00
</template>
<script>
2020-10-12 19:41:52 +02:00
import Steps from '@/components/Steps'
2020-11-03 14:13:09 +01:00
import { mapGetters } from 'vuex'
2020-10-12 19:41:52 +02:00
2020-10-09 03:15:45 +02:00
export default {
2020-10-12 19:41:52 +02:00
components: {
Steps,
},
2020-11-03 14:13:09 +01:00
computed: {
2021-10-25 11:12:11 +02:00
...mapGetters('steps', ['deployedL1Count', 'deployedL2Count']),
...mapGetters('provider', ['getNetwork']),
2020-11-03 14:13:09 +01:00
},
2020-10-13 09:49:08 +02:00
methods: {
scrollTo(element) {
window.scrollTo({
behavior: 'smooth',
left: 0,
top: element.getBoundingClientRect().top,
})
},
onStart() {
this.scrollTo(this.$refs.steps.$el)
},
},
2020-10-09 03:15:45 +02:00
}
</script>