Created
May 24, 2022 11:26
-
-
Save amine-y/fafa709c9c7817da142abf2c1b8f664a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div | |
| class="d-flex flex-column flex-column-fluid bgi-position-y-bottom position-x-center bgi-no-repeat bgi-size-contain bgi-attachment-fixed" | |
| :style="{ backgroundImage: 'url(' + getIllustrationsPath('14.png') + ')' }" | |
| > | |
| <!--begin::Content--> | |
| <div class="d-flex flex-center flex-column flex-column-fluid p-10 pb-lg-20"> | |
| <!--begin::Logo--> | |
| <a href="#" class="mb-12"> | |
| <img alt="Logo" src="media/logos/logo-1.svg" class="h-45px" /> | |
| </a> | |
| <!--end::Logo--> | |
| <router-view></router-view> | |
| </div> | |
| <!--end::Content--> | |
| <!--begin::Footer--> | |
| <div class="d-flex flex-center flex-column-auto p-10"> | |
| <!--begin::Links--> | |
| <div class="d-flex align-items-center fw-bold fs-6"> | |
| <a href="#" class="text-muted text-hover-primary px-2">About</a> | |
| <a href="#" class="text-muted text-hover-primary px-2">Contact</a> | |
| <a href="#" class="text-muted text-hover-primary px-2">Contact Us</a> | |
| </div> | |
| <!--end::Links--> | |
| </div> | |
| <!--end::Footer--> | |
| </div> | |
| </template> | |
| <script lang="ts"> | |
| import { defineComponent, onMounted, onUnmounted } from "vue"; | |
| import { useStore } from "vuex"; | |
| import { Actions } from "@/store/enums/StoreEnums"; | |
| import { getIllustrationsPath } from "@/core/helpers/assets"; | |
| export default defineComponent({ | |
| name: "auth-layout", | |
| components: {}, | |
| setup() { | |
| const store = useStore(); | |
| onMounted(() => { | |
| store.dispatch(Actions.ADD_BODY_CLASSNAME, "bg-body"); | |
| store.dispatch(Actions.ADD_BODY_ATTRIBUTE, { | |
| qulifiedName: "style", | |
| value: "background-image: url(media/patterns/header-bg.jpg)", | |
| }); | |
| }); | |
| onUnmounted(() => { | |
| store.dispatch(Actions.REMOVE_BODY_CLASSNAME, "bg-body"); | |
| store.dispatch(Actions.REMOVE_BODY_CLASSNAME, { | |
| qulifiedName: "style", | |
| value: "background-image: url(media/patterns/header-bg.jpg)", | |
| }); | |
| }); | |
| return { | |
| getIllustrationsPath, | |
| }; | |
| }, | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment