mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-22 02:34:26 +08:00
add background img for dark theme
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<svg width="750" height="300" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<g class="layer">
|
||||||
|
<title>Layer 1</title>
|
||||||
|
<path d="m2.38122,215.61524l748.61878,-113.11523l0,197.99999l-750,0l1.38122,-84.88476z" fill="#111111" id="svg_3" stroke="#000000" stroke-dasharray="null" stroke-linecap="null" stroke-linejoin="null" stroke-opacity="0" stroke-width="null"/>
|
||||||
|
<g id="BACKGROUND"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 449 B |
@@ -6,9 +6,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<v-row no-gutters class="auth-wrapper">
|
<v-row no-gutters class="auth-wrapper">
|
||||||
<v-col cols="12" md="8" class="d-none d-md-flex align-center justify-center position-relative">
|
<v-col cols="12" md="8" class="d-none d-md-flex align-center justify-center position-relative">
|
||||||
<div class="d-flex auth-img-footer">
|
<div class="d-flex auth-img-footer" v-if="currentTheme !== 'dark'">
|
||||||
<v-img src="/img/desktop/background.svg"/>
|
<v-img src="/img/desktop/background.svg"/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="d-flex auth-img-footer" v-if="currentTheme === 'dark'">
|
||||||
|
<v-img src="/img/desktop/background-dark.svg"/>
|
||||||
|
</div>
|
||||||
<div class="d-flex align-center justify-center w-100 pt-10">
|
<div class="d-flex align-center justify-center w-100 pt-10">
|
||||||
<v-img max-width="600px" src="/img/desktop/people1.svg"/>
|
<v-img max-width="600px" src="/img/desktop/people1.svg"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -145,6 +148,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { useTheme } from 'vuetify';
|
||||||
|
|
||||||
import { mapStores } from 'pinia';
|
import { mapStores } from 'pinia';
|
||||||
import { useRootStore } from '@/stores/index.js';
|
import { useRootStore } from '@/stores/index.js';
|
||||||
import { useSettingsStore } from '@/stores/setting.js';
|
import { useSettingsStore } from '@/stores/setting.js';
|
||||||
@@ -180,7 +185,6 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapStores(useRootStore, useSettingsStore, useExchangeRatesStore),
|
...mapStores(useRootStore, useSettingsStore, useExchangeRatesStore),
|
||||||
version() {
|
version() {
|
||||||
@@ -202,6 +206,11 @@ export default {
|
|||||||
return !this.passcode;
|
return !this.passcode;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
currentTheme: {
|
||||||
|
get: function () {
|
||||||
|
return this.globalTheme.global.name.value;
|
||||||
|
}
|
||||||
|
},
|
||||||
currentLanguageName() {
|
currentLanguageName() {
|
||||||
const currentLocale = this.$i18n.locale;
|
const currentLocale = this.$i18n.locale;
|
||||||
let lang = this.$locale.getLanguageInfo(currentLocale);
|
let lang = this.$locale.getLanguageInfo(currentLocale);
|
||||||
@@ -213,6 +222,13 @@ export default {
|
|||||||
return lang.displayName;
|
return lang.displayName;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
setup() {
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
|
return {
|
||||||
|
globalTheme: theme
|
||||||
|
};
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
login() {
|
login() {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|||||||
@@ -6,9 +6,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<v-row no-gutters class="auth-wrapper">
|
<v-row no-gutters class="auth-wrapper">
|
||||||
<v-col cols="12" md="8" class="d-none d-md-flex align-center justify-center position-relative">
|
<v-col cols="12" md="8" class="d-none d-md-flex align-center justify-center position-relative">
|
||||||
<div class="d-flex auth-img-footer">
|
<div class="d-flex auth-img-footer" v-if="currentTheme !== 'dark'">
|
||||||
<v-img src="/img/desktop/background.svg"/>
|
<v-img src="/img/desktop/background.svg"/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="d-flex auth-img-footer" v-if="currentTheme === 'dark'">
|
||||||
|
<v-img src="/img/desktop/background-dark.svg"/>
|
||||||
|
</div>
|
||||||
<div class="d-flex align-center justify-center w-100 pt-10">
|
<div class="d-flex align-center justify-center w-100 pt-10">
|
||||||
<v-img max-width="600px" src="/img/desktop/people3.svg"/>
|
<v-img max-width="600px" src="/img/desktop/people3.svg"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -92,6 +95,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { useTheme } from 'vuetify';
|
||||||
|
|
||||||
import { mapStores } from 'pinia';
|
import { mapStores } from 'pinia';
|
||||||
import { useRootStore } from '@/stores/index.js';
|
import { useRootStore } from '@/stores/index.js';
|
||||||
import { useSettingsStore } from '@/stores/setting.js';
|
import { useSettingsStore } from '@/stores/setting.js';
|
||||||
@@ -122,6 +127,11 @@ export default {
|
|||||||
&& this.$user.getWebAuthnCredentialId()
|
&& this.$user.getWebAuthnCredentialId()
|
||||||
&& webauthn.isSupported();
|
&& webauthn.isSupported();
|
||||||
},
|
},
|
||||||
|
currentTheme: {
|
||||||
|
get: function () {
|
||||||
|
return this.globalTheme.global.name.value;
|
||||||
|
}
|
||||||
|
},
|
||||||
currentLanguageName() {
|
currentLanguageName() {
|
||||||
const currentLocale = this.$i18n.locale;
|
const currentLocale = this.$i18n.locale;
|
||||||
let lang = this.$locale.getLanguageInfo(currentLocale);
|
let lang = this.$locale.getLanguageInfo(currentLocale);
|
||||||
@@ -133,6 +143,13 @@ export default {
|
|||||||
return lang.displayName;
|
return lang.displayName;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
setup() {
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
|
return {
|
||||||
|
globalTheme: theme
|
||||||
|
};
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
unlockByWebAuthn() {
|
unlockByWebAuthn() {
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user