Open source personal finance application
Refactor welcome pages and create wallet, category forms
Ilya Komichev31b2a928183d
diff --git a/src/components/categories/form/CategoryForm.vue b/src/components/categories/form/CategoryForm.vueindex 9319e88b..71f280fd 100644--- a/src/components/categories/form/CategoryForm.vue+++ b/src/components/categories/form/CategoryForm.vue@@ -157,11 +157,11 @@ export default {<template lang="pug">.component- h1.component__title- template(v-if="!categoryId") Create new category- template(v-else) Edit category-.form+ h1.component__title+ template(v-if="!categoryId") Create new category+ template(v-else) Edit category+.form-line._text.inputTextinput(@@ -308,12 +308,9 @@ export default {&__titlepadding-bottom $m10- @media $media-phone- text-align center-.form@media $media-laptop- max-width 320px+ max-width 380px.form__actions@media $media-phone@@ -326,6 +323,11 @@ export default {grid-row-gap $m9padding-bottom $m9+ @media $media-laptop+ grid-column-gap $m10+ grid-row-gap $m10+ padding-bottom $m10+&__i._fullgrid-column 1 / -1diff --git a/src/components/layout/LayoutMobile.vue b/src/components/layout/LayoutMobile.vueindex 580985bd..49a9d9cb 100644--- a/src/components/layout/LayoutMobile.vue+++ b/src/components/layout/LayoutMobile.vue@@ -136,29 +136,22 @@ export default {padding-top $m5.tabs+ overflow hiddenposition relativewidth 100%- display flex- flex-flow column- min-height 100vh+ height 100%background var(--c-bg-2).tab+ overflow-x hidden+ overflow-y scroll+ scrollbar()position absoluteleft 0top 0width 100%- overflow-y scroll- scrollbar()height calc(100vh - 120px)&._padding-toppadding-top $m7-- &__scroll- position relative- flex-flow column wrap- flex-grow 1- padding-bottom $m8- min-height 50vh</style>diff --git a/src/components/layout/styles/component.styl b/src/components/layout/styles/component.stylindex d44eff73..ad60d326 100644--- a/src/components/layout/styles/component.styl+++ b/src/components/layout/styles/component.styl@@ -10,6 +10,9 @@padding 0border 0+ @media $media-laptop+ margin-bottom $m10+&._p0padding 0margin 0diff --git a/src/components/login/Login.vue b/src/components/login/Login.vueindex 2c703b78..1512774b 100644--- a/src/components/login/Login.vue+++ b/src/components/login/Login.vue@@ -129,6 +129,7 @@ export default {width 100%padding $m7 50pxfont-size 12px+ border-left 2px solid var(-c-expenses)&__buttonposition relativediff --git a/src/components/shared/inputs/Checkbox.vue b/src/components/shared/inputs/Checkbox.vueindex 8a8bc2ca..41e9163c 100644--- a/src/components/shared/inputs/Checkbox.vue+++ b/src/components/shared/inputs/Checkbox.vue@@ -32,6 +32,7 @@ $left = 1.8em$color-rail = var(--c-font-2).checkbox+ z-index -1position relativedisplay flexalign-items centerdiff --git a/src/components/wallets/form/WalletForm.vue b/src/components/wallets/form/WalletForm.vueindex 87ec7005..3e9b9928 100644--- a/src/components/wallets/form/WalletForm.vue+++ b/src/components/wallets/form/WalletForm.vue@@ -146,11 +146,11 @@ export default {<template lang="pug">.component- h1.component__title- template(v-if="!walletId") Create new wallet- template(v-else) Edit wallet-.form+ h1.component__title+ template(v-if="!walletId") Create new wallet+ template(v-else) Edit wallet+.form-line._text.inputTextinput(@@ -268,12 +268,9 @@ export default {&__titlepadding-bottom $m10- @media $media-phone- text-align center-.form@media $media-laptop- max-width 320px+ max-width 380px.form__actions@media $media-phone@@ -286,6 +283,11 @@ export default {grid-row-gap $m9padding-bottom $m9+ @media $media-laptop+ grid-column-gap $m10+ grid-row-gap $m10+ padding-bottom $m10+&__i._fullgrid-column 1 / -1diff --git a/src/components/welcome/Welcome.vue b/src/components/welcome/Welcome.vueindex c7c35f31..0a2d6f2f 100644--- a/src/components/welcome/Welcome.vue+++ b/src/components/welcome/Welcome.vue@@ -20,44 +20,44 @@ export default {</script><template lang="pug">-.welcome- .login__themeChanger(v-if="!showWalletForm && !showCategoryForm")- .themeChanger(@click="$store.dispatch('changeTheme')")- .themeChanger__icon: .mdi.mdi-palette- .themeChanger__text Change theme-- .welcome__content- //- wallet+.tabs+ //- wallet+ transition(name="fadeInSlow")template(v-if="!showWalletForm && !$store.getters.hasWallets")- .welcome__header- .welcome__header__title Welcome to Finapp- .welcome__header__desc Powerfull personal finance application- .welcome__text Let's start with create first Wallet- .welcome__btn- Button._blue(- title="Create wallet"- v-on:onClick="showWalletForm = true")-- //- category- template(v-else-if="!showWalletForm && !showCategoryForm && !$store.getters.hasCategories")- .welcome__header- .welcome__header__title Welcome to Finapp- .welcome__header__desc Powerfull personal finance application- .welcome__text Great! Now Let's create first category- .welcome__btn- Button._blue(- title="Create category"- v-on:onClick="showCategoryForm = true")-- transition(name="animation-tab")- WalletForm(- v-if="showWalletForm"- v-on:callback="showWalletForm = false")-- transition(name="animation-tab")- CategoryForm(- v-if="showCategoryForm"- v-on:callback="showCategoryForm = false")+ .tab+ .tab__content+ .welcome__header+ .welcome__header__title Welcome to Finapp+ .welcome__header__desc Powerfull personal finance application+ .welcome__text Let's start with create first Wallet+ .welcome__btn+ Button._blue(+ title="Create wallet"+ v-on:onClick="showWalletForm = true")++ //- category+ transition(name="fadeInSlow")+ template(v-if="!showWalletForm && !showCategoryForm && $store.getters.hasWallets && !$store.getters.hasCategories")+ .tab+ .tab__content+ .welcome__icon: .mdi.mdi-chart-bubble+ .welcome__text Great! Now Let's create first category+ .welcome__btn+ Button._blue(+ title="Create category"+ v-on:onClick="showCategoryForm = true")++ transition(name="fadeInSlow")+ .tab(v-if="showWalletForm")+ .tab__content+ WalletForm(+ v-on:callback="showWalletForm = false")++ transition(name="fadeInSlow")+ .tab(v-if="showCategoryForm")+ .tab__content+ CategoryForm(+ v-on:callback="showCategoryForm = false")a(href="https://ilko.me").welcome__copy.login__copy| Made with@@ -67,18 +67,40 @@ export default {<style lang="stylus" scoped>@import "~@/stylus/variables/margins"+@import "~@/stylus/variables/flex"@import "~@/stylus/variables/media"@import "~@/stylus/variables/fonts"+@import "~@/stylus/variables/scrollbar"++.tabs+ overflow hidden+ position absolute+ width 100%+ height 100%++.tab+ display grid+ overflow-x hidden+ overflow-y scroll+ scrollbar()+ position absolute+ left 0+ top 0+ width 100%+ height 100%+ padding-bottom $m10++ &__content+ display-flex(column, grow)+ align-self center+ margin 0 auto+ padding $m9+ padding-bottom 100px++ .component+ padding 0.welcome- display flex- flex-flow column nowrap- flex-grow 1- align-items center- justify-content center- margin 0 auto- max-width 460px- min-height 100%.login__copycolor var(--c-font-4)@@ -86,29 +108,25 @@ export default {.login__heartopacity .8- &__content- display flex- flex-flow column- justify-content center- flex-grow 1- width 100%- min-height 100%- text-align center- padding $m7 $m9+ &__themeChanger+ padding-top $m9&__copy- position relative+ margin 0+ padding $m9 0+ bottom 0+ background var(--c-bg-1)&__headerpadding-bottom $mb2&__title- font-size 26px+ font-size 28pxfont-weight 500letter-spacing 1px@media $media-laptop- font-size 36px+ font-size 28pxletter-spacing 3px&__desc@@ -120,6 +138,15 @@ export default {padding-top $m7font-size 14px+ &__icon+ padding-bottom $m5+ text-align center+ color var(--c-font-4)+ font-size 96px++ @media $media-laptop+ padding-bottom $m7+&__textpadding-bottom $m9diff --git a/src/stylus/index.styl b/src/stylus/index.stylindex c61846bc..9caecf88 100644--- a/src/stylus/index.styl+++ b/src/stylus/index.styl@@ -1,6 +1,5 @@-// Finapp// Created by Ilya Komichev-// github.com/ilkome/finapp+// github.com/ilkome@import "variables/*"@import "mixins/*"