-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathAddressImage.vue
More file actions
53 lines (45 loc) · 1.86 KB
/
Copy pathAddressImage.vue
File metadata and controls
53 lines (45 loc) · 1.86 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
<script setup>
/** Vendor */
import { DateTime } from "luxon"
/** Services */
import { tia, comma } from "@/services/utils"
defineOptions({
inheritAttrs: false,
})
const props = defineProps({
title: String,
address: 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', 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: '40px' }">
<div :style="{ display: 'flex', alignItems: 'center' }">
<span :style="{ fontSize: '70px', color: 'rgba(255,255,255, 0.9)' }">addr</span>
<span :style="{ fontSize: '70px', color: 'rgba(255,255,255, 0.3)' }">('</span>
<span :style="{ fontSize: '70px', color: '#FF8351' }"> celestia•••{{ address.hash.slice(-4) }} </span>
<span :style="{ fontSize: '70px', color: 'rgba(255,255,255, 0.3)' }">')</span>
</div>
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.7)' }"> {{ comma(tia(address.balance.spendable)) }} TIA </span>
<div :style="{ display: 'flex', flexDirection: 'column', gap: '24px' }">
<div :style="{ display: 'flex', gap: '12px' }">
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)' }">First Height: </span>
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.6)' }">{{ comma(address.first_height) }} </span>
</div>
<div :style="{ display: 'flex', gap: '12px' }">
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.3)' }">Last Height: </span>
<span :style="{ fontSize: '40px', color: 'rgba(255,255,255, 0.6)' }">{{ comma(address.last_height) }} </span>
</div>
</div>
</div>
</div>
</template>