Skip to content

Commit

Permalink
feat(support pop up): create basic component layout
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Oct 2, 2020
1 parent fc6c47d commit 0a811d5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
7 changes: 7 additions & 0 deletions components/utils/SupportPopUp.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template>
<div class="text-default-text">LETS GOOOOOOOOOOOOOOOOOOOOOOO</div>
</template>

<script>
export default {}
</script>
17 changes: 17 additions & 0 deletions components/utils/SupportPopUpManager.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
<template>
<transition name="search">
<div v-if="isSupportPopUpActive" class="fixed z-40 w-full h-screen">
<SupportPopUp
class="h-full bg-black bg-opacity-25"
@toggleSupportPopUp="toggleSupportPopUp()"
/>
</div>
</transition>
</template>

<script>
import { mapGetters, mapMutations } from 'vuex'
const SupportPopUp = () => import('./SupportPopUp.vue')
export default {
components: {
SupportPopUp,
},
data() {
return {
isSupportPopUpActive: false,
Expand Down
5 changes: 4 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
</div>
</transition>

<SupportPopUpManager />

<!-- Layout content -->
<div class="px-4 mx-auto overflow-auto max-w-7xl sm:px-6 lg:px-8">
<nuxt class="max-w-4xl mx-auto" />
Expand All @@ -37,6 +39,7 @@ import { Touch } from 'vuetify/lib/directives/touch'
import NavToggler from '~/components/layout/navigation/sidenav/Toggler.vue'
import SideNav from '~/components/layout/navigation/sidenav/SideNav.vue'
import Search from '~/components/pages/posts/navigation/search/Search.vue'
import SupportPopUpManager from '~/components/utils/SupportPopUpManager.vue'
import GlobalStartUpMixin from '~/components/utils/GlobalStartUpMixin.js'
import NavigationMixin from '~/components/layout/navigation/NavigationMixin.js'
Expand All @@ -45,7 +48,7 @@ import TouchHandlerMixin from '~/components/layout/navigation/sidenav/TouchHandl
export default {
name: 'DefaultLayout',
components: { SideNav, NavToggler, Search },
components: { SideNav, NavToggler, Search, SupportPopUpManager },
directives: { Touch },
Expand Down

0 comments on commit 0a811d5

Please sign in to comment.