Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 823b42b

Browse files
author
Marcin Kwiatkowski
committed
chore: release 1.0.0-rc.6
1 parent 04a01b0 commit 823b42b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2912
-1187
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
# Magento 2.x theme
66

77
### Vue Storefront 2 integration with Magento
8-
9-
This theme developed by superheroes from [Caravel](https://github.com/caravelx) ❤️
10-
11-
<div align="center">
12-
<img src="https://user-images.githubusercontent.com/1626923/127100067-98eda368-94e3-47dd-b824-842d38dc8550.png" height="80px"/>
13-
</div>
14-
158
### Requirements:
169

1710
- NodeJS v16 or later

components/AddToWishlist.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
class="add-to-wishlist"
66
@click="$emit('addToWishlist')"
77
>
8-
<SfIcon
8+
<SvgImage
99
:icon="isInWishlist ? isInWishlistIcon : wishlistIcon"
10-
size="lg"
11-
color="green-primary"
12-
viewBox="0 0 24 24"
13-
:coverage="1"
10+
:label="$t('Wishlist')"
11+
width="32"
12+
height="32"
1413
/>
1514
<SfButton class="sf-button--text">
1615
{{ $t(actionText) }}
@@ -20,13 +19,14 @@
2019

2120
<script>
2221
import { defineComponent, computed } from '@nuxtjs/composition-api';
23-
import { SfIcon, SfButton } from '@storefront-ui/vue';
22+
import { SfButton } from '@storefront-ui/vue';
23+
import SvgImage from '~/components/General/SvgImage.vue';
2424
2525
export default defineComponent({
2626
name: 'AddToWishlist',
2727
components: {
28-
SfIcon,
2928
SfButton,
29+
SvgImage,
3030
},
3131
props: {
3232
component: {
@@ -64,6 +64,7 @@ export default defineComponent({
6464
.add-to-wishlist {
6565
display: flex;
6666
align-items: center;
67+
color: var(--c-primary);
6768
cursor: pointer;
6869
margin-top: 1rem;
6970
margin-bottom: 1rem;

components/AppFooter.vue

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<template>
2-
<SfFooter :column="4" multiple class="footer">
2+
<SfFooter
3+
:column="4"
4+
multiple
5+
class="footer"
6+
>
37
<SfFooterColumn :title="$t('About us')">
48
<SfList>
59
<SfListItem
610
v-for="item in aboutUs"
711
:key="item"
8-
>
12+
>
913
<SfMenuItem
1014
:label="$t(item)"
1115
/>
@@ -50,21 +54,37 @@
5054
</SfFooterColumn>
5155
<SfFooterColumn title="Social">
5256
<div class="footer__socials">
53-
<SfImage class="footer__social-image" v-for="item in social" :key="item" :src="'/icons/'+item+'.svg'" :alt="item" width="32" height="32" />
57+
<SfImage
58+
v-for="item in social"
59+
:key="item"
60+
class="footer__social-image"
61+
:src="addBasePath('/icons/'+item+'.svg')"
62+
:alt="item"
63+
width="32"
64+
height="32"
65+
/>
5466
</div>
5567
</SfFooterColumn>
5668
</SfFooter>
5769
</template>
5870

5971
<script>
60-
import { SfFooter, SfList, SfImage, SfMenuItem } from '@storefront-ui/vue';
72+
import {
73+
SfFooter, SfList, SfImage, SfMenuItem,
74+
} from '@storefront-ui/vue';
75+
import { addBasePath } from '@vue-storefront/core';
6176
6277
export default {
6378
components: {
6479
SfFooter,
6580
SfList,
6681
SfImage,
67-
SfMenuItem
82+
SfMenuItem,
83+
},
84+
setup() {
85+
return {
86+
addBasePath,
87+
};
6888
},
6989
data() {
7090
return {
@@ -74,9 +94,9 @@ export default {
7494
paymentsDelivery: ['Purchase terms', 'Guarantee'],
7595
social: ['facebook', 'pinterest', 'google', 'twitter', 'youtube'],
7696
isMobile: false,
77-
desktopMin: 1024
97+
desktopMin: 1024,
7898
};
79-
}
99+
},
80100
};
81101
</script>
82102

@@ -100,6 +120,8 @@ export default {
100120
}
101121
&__social-image {
102122
margin: 0 var(--spacer-2xs) 0 0;
123+
background-color: #fff;
124+
border-radius: 100%;
103125
}
104126
}
105127
.sf-footer {

0 commit comments

Comments
 (0)