Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
chore(default-theme): added links to footer elements (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malwurf authored Jul 6, 2020
1 parent c90f28d commit ab5375c
Showing 1 changed file with 34 additions and 15 deletions.
49 changes: 34 additions & 15 deletions packages/default-theme/components/SwFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,35 @@
<slot class="sw-footer__content" name="content" v-bind="column">
<div class="content sw-footer__signature">
<SwPluginSlot name="footer-content">
{{
$t("footer.description", {
creator: "shopware AG & Vue Storefront",
})
}}
<i18n path="footer.description" :tag="false">
<template #creator>
<a
href="https://www.shopware.com/en/products/shopware-pwa/"
class="sw-footer__link"
>shopware AG</a
>
&
<a
href="https://www.vuestorefront.io/shopware"
class="sw-footer__link"
>Vue Storefront</a
>
</template>
</i18n>
</SwPluginSlot>
</div>
</slot>
</div>
</template>

<script>
import { SfCheckbox } from "@storefront-ui/vue"
import SwPluginSlot from "sw-plugins/SwPluginSlot"
export default {
name: "SwFooter",
components: {
SfCheckbox,
SwPluginSlot,
},
name: "SwFooter",
props: {
column: {
type: Number,
Expand All @@ -37,22 +45,33 @@ export default {
@import "@/assets/scss/variables";
.sw-footer {
width: 100%;
height: auto;
align-items: flex-end;
display: flex;
flex-shrink: 0;
height: auto;
justify-content: center;
margin-top: 1em;
width: 100%;
@include for-desktop {
margin-top: 2em;
margin-bottom: 0;
margin-top: 2em;
}
justify-content: center;
align-items: flex-end;
flex-shrink: 0;
&__link {
font-weight: 500;
&:hover {
color: var(--_c-green-primary);
text-decoration: underline;
}
}
&__signature {
padding: 2em;
width: 100%;
text-align: center;
width: 100%;
@include for-desktop {
margin-bottom: 0;
}
Expand Down

1 comment on commit ab5375c

@vercel
Copy link

@vercel vercel bot commented on ab5375c Jul 6, 2020

Choose a reason for hiding this comment

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

Please sign in to comment.