Skip to content

Commit

Permalink
styles: updated the sidebar (#1031)
Browse files Browse the repository at this point in the history
* styles: updated app logo

* styles: updated sidebar

* styles: updated sidebar (2)
  • Loading branch information
impelcrypto authored Nov 16, 2023
1 parent 15f4a4c commit 95a90b2
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 48 deletions.
152 changes: 152 additions & 0 deletions src/assets/img/astar_logo_v2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion src/components/common/Logo.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<img src="~assets/img/astar_logo.png" width="200" height="78" />
<img src="~assets/img/astar_logo_v2.svg" class="icon--logo" />
</template>
<script lang="ts">
import { defineComponent } from 'vue';
Expand All @@ -10,3 +10,16 @@ export default defineComponent({
},
});
</script>

<style lang="scss">
@import 'src/css/quasar.variables.scss';
.icon--logo {
width: 142px;
height: 40px;
margin-left: 12px;
@media (min-width: $lg) {
margin-top: 12px;
}
}
</style>
30 changes: 1 addition & 29 deletions src/components/sidenav/SidebarDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,29 +91,7 @@
</div>
</router-link>
</div>
<div @mouseover="hoverNFT = true" @mouseleave="hoverNFT = false">
<router-link
to="#"
:class="['link', $route.path.split('/')[2] === 'astar-nft' ? 'activeLink' : '']"
>
<astar-icon-base
:class="['icon-add', isShiden ? 'shiden' : '']"
stroke="currentColor"
icon-name="staking"
>
<icon-side-nft />
</astar-icon-base>
<div class="row--item">
<astar-text type="H4">NFT</astar-text>
</div>
</router-link>
<balloon
class="balloon"
:is-balloon="hoverNFT"
:is-balloon-closing="!hoverNFT"
:text="$t('sidenavi.comingsoon')"
/>
</div>

<div>
<a :class="['link']" href="https://astar.network/community/ecosystem/" target="_blank">
<astar-icon-base :class="['icon-add', isShiden ? 'shiden' : '']" icon-name="ecosystem">
Expand Down Expand Up @@ -154,19 +132,15 @@ import Logo from '../common/Logo.vue';
import { useRouter } from 'vue-router';
import { Path as RoutePath } from 'src/router/routes';
import IconEcosystem from './components/IconEcosystem.vue';
import Balloon from './components/Balloon.vue';
import SidebarOptionDesktop from './SidebarOptionDesktop.vue';
import { decentralizedOrigin } from 'src/links';
import { socialUrl } from 'src/links';
import IconSideNft from './components/IconSideNFT.vue';
export default defineComponent({
components: {
Logo,
IconEcosystem,
Balloon,
SidebarOptionDesktop,
IconSideNft,
},
setup() {
const { isOpen } = useSidebar();
Expand All @@ -181,7 +155,6 @@ export default defineComponent({
const router = useRouter();
const path = computed(() => router.currentRoute.value.path.split('/')[2]);
const hoverNFT = ref<boolean>(false);
const isDecentralized = computed<boolean>(() => {
return window.location.origin === decentralizedOrigin;
});
Expand Down Expand Up @@ -210,7 +183,6 @@ export default defineComponent({
router,
path,
RoutePath,
hoverNFT,
isDecentralized,
socialUrl,
isZkatana,
Expand Down
4 changes: 3 additions & 1 deletion src/components/sidenav/SidebarOptionDesktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,13 @@ svg {
.sidebar-button-container {
display: flex;
align-items: center;
background-color: $navy-3;
border-radius: 6px;
padding: 10px;
margin-bottom: 10px;
cursor: pointer;
&:hover {
background-color: $navy-3;
}
}
.menu-item {
Expand Down
9 changes: 0 additions & 9 deletions src/components/sidenav/components/IconSideNFT.vue

This file was deleted.

13 changes: 5 additions & 8 deletions src/components/sidenav/styles/sidebar-desktop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
.sidebar {
width: 224px;
padding-top: 24px;
background: linear-gradient(140deg, #070c25 50%, #253585 80%, #3e2371 90%);
background: #081029;
display: flex;
flex-direction: column;
z-index: 1;
Expand Down Expand Up @@ -98,19 +98,19 @@
}

.menu__assets {
margin-top: -322px;
margin-top: -276px;
}

.menu__dashboard {
margin-top: -276px;
margin-top: -230px;
}

.menu__staking {
margin-top: -230px;
margin-top: -184px;
}

.menu__bridge {
margin-top: -184px;
margin-top: -138px;
}

.dummy-row {
Expand All @@ -125,9 +125,6 @@
.menu__indicator {
background: $navy-3;
}
.sidebar {
background: linear-gradient(140deg, #070c25 50%, #253585 80%, #3e2371 90%);
}
.link {
color: $gray-1;
}
Expand Down

0 comments on commit 95a90b2

Please sign in to comment.