Просмотр исходного кода

feat: adiciona card de minha tesouraria

ebagabee 1 неделя назад
Родитель
Сommit
667a3b4d79
2 измененных файлов с 39 добавлено и 0 удалено
  1. 37 0
      src/components/financial/TreasuryCard.vue
  2. 2 0
      src/pages/financial/FinancialPage.vue

+ 37 - 0
src/components/financial/TreasuryCard.vue

@@ -0,0 +1,37 @@
+<template>
+  <q-card class="treasury-card">
+    <div class="row justify-between items-start no-wrap">
+      <span class="text-subtitle1 text-dark">Minha Tesouraria</span>
+      <q-icon name="mdi-briefcase-outline" size="22px" color="dark" />
+    </div>
+
+    <div class="column q-gutter-sm q-mt-md">
+      <q-btn
+        outline
+        color="primary"
+        label="Acessar Contas"
+        :to="{ name: 'TreasuryPage' }"
+        no-caps
+      />
+      <q-btn
+        outline
+        color="primary"
+        label="Emissão Fiscal"
+        :to="{ name: 'InvoiceIssuancePage' }"
+        no-caps
+      />
+    </div>
+  </q-card>
+</template>
+
+<style scoped lang="scss">
+.treasury-card {
+  flex: 1 1 0;
+  min-width: 220px;
+  border-radius: 12px;
+  box-shadow: 0 0 0 1px #c0c0c0c0 !important;
+  padding: 16px 20px;
+  display: flex;
+  flex-direction: column;
+}
+</style>

+ 2 - 0
src/pages/financial/FinancialPage.vue

@@ -23,6 +23,7 @@
         :percentage="0"
         description="Estável"
       />
+      <TreasuryCard />
     </div>
   </div>
 </template>
@@ -30,4 +31,5 @@
 <script setup>
 import DefaultHeaderPage from "src/components/layout/DefaultHeaderPage.vue";
 import FinancialCard from "src/components/financial/FinancialCard.vue";
+import TreasuryCard from "src/components/financial/TreasuryCard.vue";
 </script>