Skip to content

Commit

Permalink
feat(theme): Add footer for bottom part of our page (#200)
Browse files Browse the repository at this point in the history
* feat(theme): Use SfFotter component for bottom part of our page
  • Loading branch information
krskibin authored and patzick committed Dec 11, 2019
1 parent 16d8166 commit 64df9ec
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
37 changes: 37 additions & 0 deletions packages/default-theme/components/cms/elements/SwFooter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<template>
<div class="sw-footer">
<slot class="sw-footer__content" name="content" v-bind="column">
<SfFooter :column="column" :multiple="true">
<div class="content sw-footer__signature">from Vue Storefront with ❤️ </div>
</SfFooter>
</slot>
</div>
</template>

<script>
import { SfFooter } from '@storefront-ui/vue'
export default {
components: {
SfFooter
},
name: 'SwFooter',
props: {
column: {
type: Number,
default: 4
}
}
}
</script>

<style lang="scss">
@import "~@storefront-ui/vue/styles.scss";
.sw-footer{
&__signature {
width: 100%;
text-align: center;
}
}
</style>
6 changes: 5 additions & 1 deletion packages/default-theme/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
class="sw-breadcrumbs"/>
<nuxt />
<SwCart :is-open="isCartOpen" @close="isCartOpen=false" />
<SwFooter />
</div>
</template>

<script>
import TopNavigation from "../components/TopNavigation";
import SwCart from "../components/SwCart";
import SwFooter from "../components/cms/elements/SwFooter";
import { SfBreadcrumbs } from "@storefront-ui/vue";
import { useCart } from "@shopware-pwa/composables";
import { ref } from "@vue/composition-api";
Expand All @@ -23,7 +26,8 @@ export default {
components: {
TopNavigation,
SfBreadcrumbs,
SwCart
SwCart,
SwFooter
},
setup() {
const {count} = useCart()
Expand Down

1 comment on commit 64df9ec

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for website ready!

Built with commit a05dfbd

https://shopware-pwa-ppv0mglfl.now.sh

Please sign in to comment.