From 1cdefc0cc1a73f48cf028ff8bc490846ba1f85df Mon Sep 17 00:00:00 2001 From: quangdz1704 Date: Tue, 9 Jul 2024 16:01:19 +0700 Subject: [PATCH] fix: block --- src/components/Countdown.vue | 61 ++++- src/components/PaginationBar.vue | 8 +- src/layouts/components/DefaultLayout.vue | 16 +- src/layouts/components/NavBarI18n.vue | 87 ++++---- src/layouts/components/NavbarSearch.vue | 2 +- .../components/NavbarThemeSwitcher.vue | 2 +- src/modules/[chain]/account/[address].vue | 74 ++++--- src/modules/[chain]/block/[height].vue | 39 ++-- src/modules/[chain]/block/index.vue | 209 +++++++++++------- src/modules/[chain]/index.vue | 16 +- src/modules/[chain]/staking/[validator].vue | 14 +- src/modules/[chain]/staking/index.vue | 2 +- src/plugins/i18n/locales/en.json | 4 +- src/router/index.ts | 28 +-- src/style.css | 20 +- tailwind.config.js | 8 + 16 files changed, 366 insertions(+), 224 deletions(-) diff --git a/src/components/Countdown.vue b/src/components/Countdown.vue index 018606c5..7d51fafd 100644 --- a/src/components/Countdown.vue +++ b/src/components/Countdown.vue @@ -14,18 +14,55 @@ const s = ref(0); v-if="time" :time="time > 0 ? time : 0" v-slot="{ days, hours, minutes, seconds }" - class="countdown-container justify-items-center" + class="countdown-container flex justify-items-center items-start justify-center" > - {{ days }} days - {{ hours }} hours - {{ minutes }} - minutes - - - {{ seconds }} - {{ seconds }} - - - seconds +
+ + {{ days }} + +

days

+
+ : +
+ + {{ hours }} + +

hours

+
+ : +
+ + {{ minutes }} + +

minutes

+
+ : +
+ +
+ + {{ + seconds + }} + {{ + seconds + }} + +
+
+

secs

+
diff --git a/src/components/PaginationBar.vue b/src/components/PaginationBar.vue index 74d4980b..e46f687a 100644 --- a/src/components/PaginationBar.vue +++ b/src/components/PaginationBar.vue @@ -57,9 +57,9 @@ function goPreviousPage() {