-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathValidatorImage.vue
More file actions
51 lines (44 loc) · 1.78 KB
/
Copy pathValidatorImage.vue
File metadata and controls
51 lines (44 loc) · 1.78 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
<script setup>
/** Services */
import { abbreviate } from "@/services/utils"
defineOptions({
inheritAttrs: false,
})
const props = defineProps({
title: String,
validator: 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)' }">validator</span>
<span :style="{ fontSize: '60px', color: 'rgba(255,255,255, 0.3)' }">('</span>
<span :style="{ fontSize: '40px', color: '#FF8351' }"> celestiavaloper•••{{ validator.address.hash.slice(-4) }} </span>
<span :style="{ fontSize: '60px', color: 'rgba(255,255,255, 0.3)' }">')</span>
</div>
<span v-if="validator.moniker" :style="{ fontSize: '46px', color: 'rgba(255,255,255, 0.9)' }">
{{ validator.moniker }}
</span>
<div :style="{ display: 'flex', gap: '12px' }">
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)' }">Voting Power: </span>
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.6)' }">{{ abbreviate(validator.voting_power) }} TIA</span>
</div>
</div>
<div :style="{ display: 'flex', flexDirection: 'column', gap: '24px' }">
<div v-if="validator.website" :style="{ display: 'flex', gap: '12px' }">
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)' }">{{ validator.website }} </span>
</div>
</div>
</div>
</template>