feat: add footer with app version
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -12,6 +12,9 @@ const route = useRoute();
|
||||
const injected = injectedModule();
|
||||
const targetNetwork = ref(DEFAULT_NETWORK);
|
||||
|
||||
const currentYear = new Date().getFullYear();
|
||||
const appVersion = __APP_VERSION__;
|
||||
|
||||
const web3Onboard = init({
|
||||
wallets: [injected],
|
||||
chains: Object.values(Networks).map((network) => ({
|
||||
@@ -32,7 +35,7 @@ if (!connectedWallet) {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="p-3 sm:p-4 md:p-8">
|
||||
<main class="p-3 sm:p-4 md:p-8">
|
||||
<TopBar />
|
||||
<RouterView v-slot="{ Component }">
|
||||
<template v-if="Component">
|
||||
@@ -53,5 +56,10 @@ if (!connectedWallet) {
|
||||
</template>
|
||||
</RouterView>
|
||||
<ToasterComponent :targetNetwork="targetNetwork" />
|
||||
</div>
|
||||
</main>
|
||||
<footer class="mt-20 pt-2 pb-2 border-t border-gray-700 text-center">
|
||||
<div class="flex justify-center items-center">
|
||||
<p class="text-gray-400 text-xs"> Versão: {{ appVersion }} | © {{ currentYear }} P2Pix. Todos os direitos reservados.</p>
|
||||
</div>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user