tornado-initiation-ui/pages/index.vue

56 lines
1.2 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-11-22 08:29:48 +01:00
Tornado.cash <span>Arbitrum</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">
<template v-slot:progress>
2020-11-03 14:13:09 +01:00
<span>{{ deployedCount }}</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: {
...mapGetters('steps', ['deployedCount']),
},
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>