forked from cerc-io/cosmos-explorer
feat: side bar
This commit is contained in:
parent
7d26cd3f4a
commit
358a2c4848
@ -50,40 +50,18 @@ blockchain.$subscribe((m, s) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="">
|
||||||
<div class="flex items-center py-3 px-5">
|
<div class="w-64 fixed left-0 top-0 bottom-0 overflow-auto">
|
||||||
<div class="text-2xl pr-3 cursor-pointer xl:hidden">
|
<div v-for="(item, index) of blockchain.computedChainMenu" :key="index">
|
||||||
<Icon icon="mdi-menu" />
|
<div>{{ item?.title }}</div>
|
||||||
|
<div v-for="(el, key) of item?.children" :key="key">
|
||||||
|
{{ el?.title }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<UserProfile />
|
|
||||||
|
|
||||||
<div class="flex-1"></div>
|
|
||||||
|
|
||||||
<!-- <NavSearchBar />-->
|
|
||||||
<NavBarNotifications class="hidden md:inline-block" />
|
|
||||||
<NavBarI18n class="hidden md:inline-block" />
|
|
||||||
<NavbarThemeSwitcher class="hidden md:inline-block" />
|
|
||||||
<NavBarWallet class="md:inline-block" />
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="ml-64 px-5">
|
||||||
<!-- 👉 Pages -->
|
|
||||||
<RouterView v-slot="{ Component }">
|
|
||||||
<Transition :name="appRouteTransition" mode="out-in">
|
|
||||||
<Component :is="Component" />
|
|
||||||
</Transition>
|
|
||||||
</RouterView>
|
|
||||||
|
|
||||||
<newFooter />
|
|
||||||
</div>
|
|
||||||
<VerticalNavLayout :nav-items="blockchain.computedChainMenu">
|
|
||||||
<!-- 👉 navbar -->
|
|
||||||
<template #navbar="{ toggleVerticalOverlayNavActive }">
|
|
||||||
<div class="flex items-center py-3">
|
<div class="flex items-center py-3">
|
||||||
<div
|
<div class="text-2xl pr-3 cursor-pointer xl:hidden">
|
||||||
class="text-2xl pr-3 cursor-pointer xl:hidden"
|
|
||||||
@click="toggleVerticalOverlayNavActive(true)"
|
|
||||||
>
|
|
||||||
<Icon icon="mdi-menu" />
|
<Icon icon="mdi-menu" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -97,56 +75,15 @@ blockchain.$subscribe((m, s) => {
|
|||||||
<NavbarThemeSwitcher class="hidden md:inline-block" />
|
<NavbarThemeSwitcher class="hidden md:inline-block" />
|
||||||
<NavBarWallet class="md:inline-block" />
|
<NavBarWallet class="md:inline-block" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- 👉 Pages -->
|
<!-- 👉 Pages -->
|
||||||
<RouterView v-slot="{ Component }">
|
<RouterView v-slot="{ Component }">
|
||||||
<Transition :name="appRouteTransition" mode="out-in">
|
<Transition :name="appRouteTransition" mode="out-in">
|
||||||
<Component :is="Component" />
|
<Component :is="Component" />
|
||||||
</Transition>
|
</Transition>
|
||||||
</RouterView>
|
</RouterView>
|
||||||
|
|
||||||
<!-- 👉 Footer -->
|
|
||||||
<template #footer>
|
|
||||||
<!-- <Footer /> -->
|
|
||||||
<newFooter />
|
<newFooter />
|
||||||
</template>
|
</div>
|
||||||
|
</div>
|
||||||
<!-- 👉 Customizer -->
|
|
||||||
<!-- <TheCustomizer /> -->
|
|
||||||
</VerticalNavLayout>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
@keyframes rotate-180 {
|
|
||||||
from {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes rotate-back-180 {
|
|
||||||
from {
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.layout-vertical-nav {
|
|
||||||
.nav-header {
|
|
||||||
.header-action {
|
|
||||||
animation-duration: 0s;
|
|
||||||
animation-duration: 0.35s;
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
animation-name: v-bind(verticalNavHeaderActionAnimationName);
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user