Skip to content

Commit

Permalink
Add basescan icon to navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
willyogo committed Jan 10, 2025
1 parent 80ef30f commit 7af4bd9
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 5 deletions.
32 changes: 28 additions & 4 deletions src/common/AppNavbar.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
<template>
<div class="app-navbar">
<app-logo />
<div class="app-navbar__logo-icon-wrp">
<app-logo />
<!-- New Icon -->
<a
href="https://basescan.org/address/0x48C6740BcF807d6C47C864FaEEA15Ed4dA3910Ab"
target="_blank"
rel="noopener noreferrer"
>
<img
class="app-navbar__base-icon"
alt="View SPACE on basescan"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEGElEQVR4AbWWA5AcXRSFX2ytbe/+DNccx6vYtm3bTjm2jUGyVg/CRmzb6dwXdO12LaYHt+oMu/s797zbQMYWy7JVMzIyYkaPHjstOTlln1SmKBCJpDfFYukNqUxe2D459cCwESOmnz17Nh62rY4sVXfu3LGZOHHiJIlUdsfG1v577Tr12PLUyMaOFUuk9ydPnjqNJEl7k8HQRZWVK1f2a9Y8/GmduvU5gLHC+zRr3uL50uXLB+P0BMFfvnzZqHvPXkegY8Fgvho2smW79ehx8vXr17bGRu4qkyl05oL5kkikV+7fv+9RYecyOQe3uKRyBTZhV+aa9+7d95CloXx179HrRKkzsWLF6t4wwd/NBSQmibW7d+9OP3DgSFuscRMmbIY5KDETK1asGFQCjgckPDzysSU63LNnT2f+9SMqKuZ98W2aNw9//ubNGwduo6lTp46rW6+BRSI+efJkMuJVTEzca/4pOmHSpKnc2sNwMEIgdvaObOs2bTPaJaccxFK0bFXQoKGN0QawRCLJPWBXQ3B5Dbe1cxC09smpaSdh50rFYq4sb9kqV4gB3ARUMBo9evQkoTF36dJ1Ix+SnJy6V4iB6OjYV2CgAUpLS99dTtTf/fwDPvv5B3729PT+CmtnEQNOzq7fVq9e3QnhgqteXmlwX1//L0eOHGkFLp2x4CLlDXfBU+YawMs9d+78idyfIrGk1AFMSEy6iXi1YMGigeYYcHRy+Y6n/8/8qAiyK0qCe3qpBhJENxCvli1b1s9UAz4+fp8XLFo0/A9cSVxvqSq6rkVSqVxnbQPDho2gt27dKvvzPeMyFaYirj9TEuRF1LZd8hFrG4Cunf58Vhbd8FIR1E2InwUTO9CAQYPmW9kAVxcIOgDAzC84SEtORAcOH5bBZdgiBmDC2UKtNrE0uJKgoyDyhxwcS8tE43jqRsfEPjfXwPLly6fjO2op8VeCqIcC/GNxOHy/m5+fXw3hGjhw8HIhBrp3774GGVFKLekGsMMYyJdaS07nNtTr9b4BgcEfStzXE0UM4tWuXbu6QNRnzp8/H1oe2GBgq8P6DgTQ89Lg0P3Ls3rGkXeRWTA8MCjko5u757d//v3//dix45aUFmd54N1wZwVwK1UReYkH5WtUWY9ljiAvUH0koHYbDNXVBNlLWXSdqAAM3V+/cPw4WQOZWziN8zqqsVpLLeFNdzmibmYS11xNhp7SauvAQeJVWnoexHzZOCh3zt/O0FJhRsM2wimiKSRDNFo6WU1Qs2FqVXCgN4KgHJzKO1fIeCIhhc9RiHYCOH8rHMrpA+w/L/POnVrI1FLnUu5woGWg1wLA7yC1DcpLlB+yVGWTZH2NlkmBjtbCwTNg6h/BHHwF2FeY/qdwtcuB/zapdXSnzEt3bJCR9QPwKOxl9MLyXAAAAABJRU5ErkJggg=="
/>
</a>
</div>
<transition name="fade" mode="out-in">
<connect-wallet-button
v-if="!web3ProvidersStore.isConnected"
Expand All @@ -18,11 +32,8 @@

<script lang="ts" setup>
import { useWeb3ProvidersStore } from '@/store'
// import AppButton from './AppButton.vue'
import AppLogo from './AppLogo.vue'
import ConnectWalletButton from './ConnectWalletButton.vue'
// import NetworkSwitch from './NetworkSwitch.vue'
// import WalletBalances from './WalletBalances.vue'
import WalletDashboard from './WalletDashboard.vue'
const web3ProvidersStore = useWeb3ProvidersStore()
Expand All @@ -46,6 +57,19 @@ $z-index: 1000;
border-bottom: none;
}
/* New wrapper for aligning logo and icon in the same row */
.app-navbar__logo-icon-wrp {
display: flex;
align-items: center;
gap: toRem(8);
}
.app-navbar__base-icon {
width: toRem(24);
height: toRem(24);
cursor: pointer;
}
.app-navbar__nav {
display: flex;
gap: toRem(48);
Expand Down
30 changes: 29 additions & 1 deletion src/common/AppNavbarMobile.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
<template>
<div class="app-navbar-mobile">
<app-logo />
<div class="app-navbar-mobile__logo-icon-wrp">
<app-logo />
<a
href="https://basescan.org/address/0x48C6740BcF807d6C47C864FaEEA15Ed4dA3910Ab"
target="_blank"
rel="noopener noreferrer"
>
<img
class="app-navbar-mobile__base-icon"
alt="View SPACE on basescan"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEGElEQVR4AbWWA5AcXRSFX2ytbe/+DNccx6vYtm3bTjm2jUGyVg/CRmzb6dwXdO12LaYHt+oMu/s797zbQMYWy7JVMzIyYkaPHjstOTlln1SmKBCJpDfFYukNqUxe2D459cCwESOmnz17Nh62rY4sVXfu3LGZOHHiJIlUdsfG1v577Tr12PLUyMaOFUuk9ydPnjqNJEl7k8HQRZWVK1f2a9Y8/GmduvU5gLHC+zRr3uL50uXLB+P0BMFfvnzZqHvPXkegY8Fgvho2smW79ehx8vXr17bGRu4qkyl05oL5kkikV+7fv+9RYecyOQe3uKRyBTZhV+aa9+7d95CloXx179HrRKkzsWLF6t4wwd/NBSQmibW7d+9OP3DgSFuscRMmbIY5KDETK1asGFQCjgckPDzysSU63LNnT2f+9SMqKuZ98W2aNw9//ubNGwduo6lTp46rW6+BRSI+efJkMuJVTEzca/4pOmHSpKnc2sNwMEIgdvaObOs2bTPaJaccxFK0bFXQoKGN0QawRCLJPWBXQ3B5Dbe1cxC09smpaSdh50rFYq4sb9kqV4gB3ARUMBo9evQkoTF36dJ1Ix+SnJy6V4iB6OjYV2CgAUpLS99dTtTf/fwDPvv5B3729PT+CmtnEQNOzq7fVq9e3QnhgqteXmlwX1//L0eOHGkFLp2x4CLlDXfBU+YawMs9d+78idyfIrGk1AFMSEy6iXi1YMGigeYYcHRy+Y6n/8/8qAiyK0qCe3qpBhJENxCvli1b1s9UAz4+fp8XLFo0/A9cSVxvqSq6rkVSqVxnbQPDho2gt27dKvvzPeMyFaYirj9TEuRF1LZd8hFrG4Cunf58Vhbd8FIR1E2InwUTO9CAQYPmW9kAVxcIOgDAzC84SEtORAcOH5bBZdgiBmDC2UKtNrE0uJKgoyDyhxwcS8tE43jqRsfEPjfXwPLly6fjO2op8VeCqIcC/GNxOHy/m5+fXw3hGjhw8HIhBrp3774GGVFKLekGsMMYyJdaS07nNtTr9b4BgcEfStzXE0UM4tWuXbu6QNRnzp8/H1oe2GBgq8P6DgTQ89Lg0P3Ls3rGkXeRWTA8MCjko5u757d//v3//dix45aUFmd54N1wZwVwK1UReYkH5WtUWY9ljiAvUH0koHYbDNXVBNlLWXSdqAAM3V+/cPw4WQOZWziN8zqqsVpLLeFNdzmibmYS11xNhp7SauvAQeJVWnoexHzZOCh3zt/O0FJhRsM2wimiKSRDNFo6WU1Qs2FqVXCgN4KgHJzKO1fIeCIhhc9RiHYCOH8rHMrpA+w/L/POnVrI1FLnUu5woGWg1wLA7yC1DcpLlB+yVGWTZH2NlkmBjtbCwTNg6h/BHHwF2FeY/qdwtcuB/zapdXSnzEt3bJCR9QPwKOxl9MLyXAAAAABJRU5ErkJggg=="
/>
</a>
</div>

<music-player />

<button
class="app-navbar-mobile__burger-btn"
@click="isExtShown = !isExtShown"
Expand All @@ -14,6 +29,7 @@
/>
</transition>
</button>

<transition name="fade" appear>
<div v-if="isExtShown" class="app-navbar-mobile__ext-wrp">
<transition name="slide" appear>
Expand Down Expand Up @@ -81,6 +97,18 @@ $z-index: 1000;
border-bottom: toRem(1) solid #CBD5E0;
}
.app-navbar-mobile__logo-icon-wrp {
display: flex;
align-items: center;
gap: toRem(8);
}
.app-navbar-mobile__base-icon {
width: toRem(24);
height: toRem(24);
cursor: pointer;
}
.app-navbar-mobile__burger-icon {
height: toRem(24);
width: toRem(24);
Expand Down

0 comments on commit 7af4bd9

Please sign in to comment.