feat: staking page UI refactor
This commit is contained in:
parent
270c8f5093
commit
7a494e7b59
@ -136,7 +136,16 @@ function color(v: string) {
|
|||||||
<td>{{ v.version }}</td>
|
<td>{{ v.version }}</td>
|
||||||
<td>{{ v.ordering }}</td>
|
<td>{{ v.ordering }}</td>
|
||||||
<td>
|
<td>
|
||||||
<VChip :color="color(v.state)">{{ v.state }}</VChip>
|
<div
|
||||||
|
class="text-xs truncate relative py-2 px-4 rounded-full w-fit"
|
||||||
|
:class="`text-${color(v.state)}`"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="inset-x-0 inset-y-0 opacity-10 absolute"
|
||||||
|
:class="`bg-${color(v.state)}`"
|
||||||
|
></span>
|
||||||
|
{{ v.state }}
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -163,12 +163,13 @@ const rank = function (position: number) {
|
|||||||
{{ list.length }}/{{ staking.params.max_validators }}
|
{{ list.length }}/{{ staking.params.max_validators }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<VCard>
|
<div class="bg-base-100 px-4 pt-3 pb-4 rounded shadow">
|
||||||
<VTable class="text-no-wrap table-header-bg rounded-0">
|
<div class="overflow-x-auto">
|
||||||
|
<table class="table w-full">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" style="width: 3rem">#</th>
|
<th scope="col" style="width: 3rem;position: relative;">#</th>
|
||||||
<th scope="col">VALIDATOR</th>
|
<th scope="col">VALIDATOR</th>
|
||||||
<th scope="col" class="text-right">VOTING POWER</th>
|
<th scope="col" class="text-right">VOTING POWER</th>
|
||||||
<th scope="col" class="text-right">24h CHANGES</th>
|
<th scope="col" class="text-right">24h CHANGES</th>
|
||||||
@ -262,13 +263,28 @@ const rank = function (position: number) {
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</VTable>
|
</table>
|
||||||
<VDivider />
|
</div>
|
||||||
<VCardActions class="py-2">
|
|
||||||
<VChip label color="error">Top 33%</VChip>
|
<div class="divider"></div>
|
||||||
<VChip label color="warning" class="mx-2">Top 67%</VChip>
|
<div class="flex flex-row">
|
||||||
</VCardActions>
|
<div
|
||||||
</VCard>
|
class="text-xs truncate relative py-2 px-4 rounded-md w-fit text-error mr-2"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="inset-x-0 inset-y-0 opacity-10 absolute bg-error"
|
||||||
|
></span>
|
||||||
|
Top 33%
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="text-xs truncate relative py-2 px-4 rounded-md w-fit text-warning"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
class="inset-x-0 inset-y-0 opacity-10 absolute bg-warning"
|
||||||
|
></span>
|
||||||
|
Top 67%
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user