-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathUpgradeImage.vue
More file actions
60 lines (52 loc) · 2.04 KB
/
UpgradeImage.vue
File metadata and controls
60 lines (52 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<script setup>
/** Services */
import { abbreviate } from "@/services/utils"
defineOptions({
inheritAttrs: false,
})
const props = defineProps({
title: String,
upgrade: Object,
})
const bgStyles = computed(() => {
return {
style: {
filter: "grayscale(1)",
opacity: "0.05",
},
}
})
</script>
<template>
<div class="w-full h-full" :style="{ background: '#111111', padding: '100px 50px', fontFamily: 'IBM+Plex+Mono', overflow: 'hidden' }">
<img src="/img/bg.png" width="1200" height="600" class="absolute" v-bind="bgStyles" />
<div :style="{ height: '100%', display: 'flex', flexDirection: 'column', gap: '50px' }">
<div :style="{ display: 'flex', alignItems: 'center' }">
<span :style="{ fontSize: '60px', color: 'rgba(255,255,255, 0.9)' }">upgrade</span>
<span :style="{ fontSize: '60px', color: 'rgba(255,255,255, 0.3)' }">('</span>
<span :style="{ fontSize: '40px', color: '#FF8351' }"> Version {{ upgrade?.version }} </span>
<span :style="{ fontSize: '60px', color: 'rgba(255,255,255, 0.3)' }">')</span>
</div>
<div :style="{ display: 'flex', gap: '12px' }">
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)', paddingRight: '16px' }">Status: </span>
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.6)' }">
{{
upgrade.tx_hash
? 'Applied'
: upgrade?.votedShare > 83.33
? 'Ready for Upgrade'
: 'In Progress'
}}
</span>
</div>
<div :style="{ display: 'flex' }">
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)', paddingRight: '16px' }">Total Stake: </span>
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.6)' }">{{ abbreviate(upgrade?.voting_power) }} TIA</span>
</div>
<div :style="{ display: 'flex', gap: '12px' }">
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)', paddingRight: '16px' }">Total Voted: </span>
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.6)' }">{{ abbreviate(upgrade?.voted_power) }} TIA</span>
</div>
</div>
</div>
</template>