|
@@ -1,18 +1,22 @@
|
|
|
<template lang="pug">
|
|
|
.pos
|
|
|
- <product-searcher />
|
|
|
- <products-grid />
|
|
|
- <cart />
|
|
|
+ .products-container
|
|
|
+ <products-searcher />
|
|
|
+ <products-grid />
|
|
|
+ .cart-container
|
|
|
+ <cart />
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import ProductSearcher from '@/components/ProductSearcher'
|
|
|
+ import ProductsSearcher from '@/components/ProductsSearcher'
|
|
|
import ProductsGrid from '@/components/ProductsGrid'
|
|
|
import Cart from '@/components/Cart'
|
|
|
|
|
|
+ console.log(this)
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
- 'product-searcher': ProductSearcher,
|
|
|
+ 'products-searcher': ProductsSearcher,
|
|
|
'products-grid': ProductsGrid,
|
|
|
'cart': Cart
|
|
|
}
|
|
@@ -20,9 +24,21 @@
|
|
|
</script>
|
|
|
|
|
|
<style lang="sass">
|
|
|
+ $cart-container-width: 350px
|
|
|
+ $products-container-width: calc(100% - #{$cart-container-width})
|
|
|
+
|
|
|
.pos
|
|
|
width: 100%
|
|
|
- heigth: 100%
|
|
|
+ height: 100%
|
|
|
display: flex
|
|
|
background: #fff
|
|
|
+
|
|
|
+ .products-container
|
|
|
+ width: $products-container-width
|
|
|
+ height: 100%
|
|
|
+ padding: 15px
|
|
|
+
|
|
|
+ .cart-container
|
|
|
+ width: $cart-container-width
|
|
|
+ height: 100%
|
|
|
</style>
|