Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2ca5954
refactor: version upgrade
aniamusial Apr 15, 2020
40aab3a
chore: renamed spacing variables
aniamusial Apr 15, 2020
2292605
chore: renamed typography variables
aniamusial Apr 15, 2020
b6d558b
refactor: adjusted AppFooter
aniamusial Apr 15, 2020
f957c0d
chore: replaced issue number
aniamusial Apr 16, 2020
55915d0
chore: adjusted TopBar styles
aniamusial Apr 16, 2020
c4c8e72
chore: adjusted topbar, awaiting sfui component
aniamusial Apr 16, 2020
9d0a91f
refactor: fixed issues with bottom navigation overflowing the content
aniamusial Apr 17, 2020
0396f80
refactor: adjusted sidebar heading
aniamusial Apr 17, 2020
2581b39
refactor: adjusted collected product cards in sidebar
aniamusial Apr 17, 2020
083f27b
chore: adjusted font sizes in sidebar
aniamusial Apr 17, 2020
cf6b67b
fix: fixed spacings
aniamusial Apr 20, 2020
c5dafc7
fix: adjusted spacers on category
aniamusial Apr 20, 2020
aa1161e
refactor: adjusted category page
aniamusial Apr 20, 2020
61f9436
refactor: adjusted pdp on desktop
aniamusial Apr 20, 2020
4737045
refcator: fixed spacings and content on mobile pdp
aniamusial Apr 21, 2020
3280a6c
fix: adjusted login modal
aniamusial Apr 21, 2020
cbe0d12
chore: adjusted margins on CAtegory page
aniamusial Apr 21, 2020
058595e
Replaced headings on category view
aniamusial Apr 21, 2020
e2a0731
refactor: adjusted checkout personal details
aniamusial Apr 21, 2020
c717dc3
refactor: adjusted checkout titles
aniamusial Apr 21, 2020
55ee933
fix: adjusted headings
aniamusial Apr 22, 2020
f41bac4
feat: adjusted order details
aniamusial Apr 24, 2020
78e8cfa
fix: small spacing and alingment fixes
aniamusial Apr 24, 2020
eb413c3
refactor: refactored filters on mobile
aniamusial Apr 24, 2020
c521e40
fix: spacer adjustments
aniamusial Apr 24, 2020
0817e39
fix: self cr fix
aniamusial Apr 24, 2020
2d40211
fix: heading level
aniamusial Apr 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/commercetools/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "jest"
},
"dependencies": {
"@storefront-ui/vue": "^0.6.4",
"@storefront-ui/vue": "^0.7.4",
"@vue-storefront/commercetools": "^0.0.3",
"@vue-storefront/commercetools-api": "^0.0.3",
"@vue-storefront/nuxt": "^0.0.3",
Expand Down
22 changes: 11 additions & 11 deletions packages/core/theme-module/theme/assets/css/reset.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
// Reset CSS
html {
width: auto;
overflow-x: hidden;
}
body {
overflow-x: hidden;
color: var(--c-text);
font-size: var(--font-size-regular);
font-family: var(--body-font-family-primary);
font-weight: var(--body-font-weight-primary);
font-size: var(--font-base);
font-family: var(--font-family-primary);
margin: 0;
padding: 0;
}
Expand All @@ -15,30 +19,26 @@ a {
}
}
h1 {
font-family: var(--body-font-family-secondary);
font-family: var(--font-family-secondary);
font-size: var(--h1-font-size);
font-weight: var(--h1-font-weight);
line-height: 1.6;
margin: 0;
}
h2 {
font-family: var(--body-font-family-secondary);
font-family: var(--font-family-secondary);
font-size: var(--h2-font-size);
font-weight: var(--h2-font-weight);
line-height: 1.6;
margin: 0;
}
h3 {
font-family: var(--body-font-family-secondary);
font-family: var(--font-family-secondary);
font-size: var(--h3-font-size);
font-weight: var(--h3-font-weight);
line-height: 1.6;
margin: 0;
}
h4 {
font-family: var(--body-font-family-secondary);
font-family: var(--font-family-secondary);
font-size: var(--h4-font-size);
font-weight: var(--h4-font-weight);
line-height: 1.6;
margin: 0;
}
48 changes: 14 additions & 34 deletions packages/core/theme-module/theme/components/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
:key="item"
>
<SfMenuItem
class="sf-footer__menu-item"
:label="item"
/>
</SfListItem>
Expand All @@ -20,7 +19,6 @@
:key="item"
>
<SfMenuItem
class="sf-footer__menu-item"
:label="item"
/>
</SfListItem>
Expand All @@ -33,7 +31,6 @@
:key="item"
>
<SfMenuItem
class="sf-footer__menu-item"
:label="item"
/>
</SfListItem>
Expand All @@ -46,15 +43,14 @@
:key="item"
>
<SfMenuItem
class="sf-footer__menu-item"
:label="item"
/>
</SfListItem>
</SfList>
</SfFooterColumn>
<SfFooterColumn title="Social" style="margin-left: auto">
<div :style="style">
<img v-for="item in social" :key="item" :src="'/icons/'+item+'.svg'" style="height: 0.75rem; margin-right: 1.25rem" />
<SfFooterColumn title="Social">
<div class="footer__socials">
<SfImage class="footer__social-image" v-for="item in social" :key="item" :src="'/icons/'+item+'.svg'" width="12" height="12" />
</div>
</SfFooterColumn>
</SfFooter>
Expand All @@ -80,29 +76,6 @@ export default {
isMobile: false,
desktopMin: 1024
};
},
computed: {
style() {
return this.isMobile ? { padding: '20px 40px' } : { padding: '6px 0' };
}
},
methods: {
isMobileHandler(e) {
this.isMobile = e.matches;
}
},
mounted() {
this.isMobile =
Math.max(document.documentElement.clientWidth, window.innerWidth) <
this.desktopMin;
window
.matchMedia('(max-width: 1024px)')
.addListener(this.isMobileHandler);
},
beforeDestroy() {
window
.matchMedia('(max-width: 1024px)')
.removeListener(this.isMobileHandler);
}
};
</script>
Expand All @@ -115,10 +88,17 @@ export default {
@content;
}
}
#footer {
/* temporary */
@include for-desktop {
padding: 0 2.5rem;

.footer {
&__socials {
padding: var(--spacer-base) var(--spacer-xl);

@media screen and (min-width: $desktop-min) {
padding: var(--spacer-sm) 0;
}
}
&__social-image {
margin: 0 var(--spacer-base) 0 0;
}
}
</style>
3 changes: 2 additions & 1 deletion packages/core/theme-module/theme/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@click:account="onAccountClicked"
:cartItemsQty="cartTotalItems"
>
<!-- TODO: add mobile view buttons after SFUI team PR -->
<template #logo>
<nuxt-link to="/" class="sf-header__logo">
<SfImage src="/icons/logo.svg" alt="Vue Storefront Next" class="sf-header__logo-image"/>
Expand Down Expand Up @@ -50,7 +51,7 @@ export default {
const { cart } = useCart();
const cartTotalItems = computed(() => {
const count = cartGetters.getTotalItems(cart.value);
// TODO: remove once resolved by UI team: https://github.com/DivanteLtd/storefront-ui/issues/922
// TODO: remove once resolved by UI team: https://github.com/DivanteLtd/storefront-ui/issues/1061
return count ? count.toString() : null;
});
return {
Expand Down
38 changes: 21 additions & 17 deletions packages/core/theme-module/theme/components/BottomNavigation.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
<template>
<!-- TODO: create logic with isActive prop for BottomNavigationItems -->
<SfBottomNavigation class="mobile-only">
<nuxt-link to="/">
<SfBottomNavigationItem :class="$route.path == '/' ? 'sf-bottom-navigation__item--active' : ''">
<SfIcon icon="home" size="20px" />
</SfBottomNavigationItem>
<SfBottomNavigationItem :class="$route.path == '/' ? 'sf-bottom-navigation__item--active' : ''" icon="home" size="20px" label="Home"/>
</nuxt-link>
<SfBottomNavigationItem>
<SfIcon icon="menu" size="20px" style="width: 25px" />
</SfBottomNavigationItem>
<SfBottomNavigationItem>
<SfIcon icon="heart" size="20px" />
</SfBottomNavigationItem>
<SfBottomNavigationItem>
<SfIcon icon="profile" size="20px" />
</SfBottomNavigationItem>
<SfBottomNavigationItem class="bottom-navigation-circle">
<SfCircleIcon class="sf-bottom-navigation__floating-icon sf-circle-icon--big">
<SfIcon icon="add_to_cart" size="20px" color="white" style="margin-right: 4px;" />
</SfCircleIcon>
</SfBottomNavigationItem>
<SfBottomNavigationItem icon="menu" size="20px" label="Menu"/>
<SfBottomNavigationItem icon="heart" size="20px" label="Wishlist"/>
<SfBottomNavigationItem icon="profile" size="20px" label="Account"/>
<!-- TODO: add logic for label - if on Home then Basket, if on PDC then AddToCart etc. -->
<SfBottomNavigationItem
label="Basket"
icon="add_to_cart"
>
<template #icon>
<SfCircleIcon aria-label="Add to cart">
<SfIcon
icon="add_to_cart"
color="white"
size="25px"
:style="{margin: '0 0 0 -2px'}"
/>
</SfCircleIcon>
</template>
</SfBottomNavigationItem>
</SfBottomNavigation>
</template>

Expand Down
Loading