Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 | <template> <div class="px-3 px-sm-intermediate px-inter-0"> <div class="wrapper"> <p class="title specific-breakpoint pt-lg-5 pt-4">CART</p> <p v-if="!cartItems.length" class="no-products-text specific-breakpoint pb-lg-2 pb-3">Nu aveti produse in cos</p> <div v-else class="d-flex flex-column flex-lg-row products-container specific-breakpoint justify-content-lg-between pt-3 pt-lg-0 pb-lg-5 pb-4"> <div class="d-flex flex-column products mb-5 mb-lg-0 specific-breakpoint"> <p class="top-text">VERIFICA COSUL:</p> <div class="d-flex flex-column gap-3"> <cart-product-edit v-for="(product, index) in cartItems" :class="{'odd': index % 2 !== 0}" :key="index" :product="product /* current cart product */" ></cart-product-edit> </div> </div> <div class="summary d-flex flex-column mb-5 mb-lg-0 specific-breakpoint"> <p class="d-flex top-text align-items-center justify-content-between">NUMAR PRODUSE: <span>{{`${this.cartItems.reduce((total, curr) => total + curr.cantitate, 0)} buc.`}}</span></p> <div class="summary-text p-3 d-flex mb-3 flex-column"> <div class="border-bottom-custom"> <p class="total-text">TOTAL:</p> <p class="tva-text">Include TVA</p> </div> <p class="total-sum align-self-end">{{`${this.cartItems.reduce((total, curr) => total + curr.pret * curr.cantitate, 0)} LEI`}}</p> </div> <p class="extra-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut</p> <simple-arrow-comp class="justify-content-start w-100 py-1 py-lg-2" :arrowSpecs="{ border: true, // if the arrow component will have a border text: 'CHECKOUT', // arrow component text color: 'rgb(0, 21, 44)', // text color bgColor: 'transparent', // background color to: '/cart-checkout', // link arrowColor: 'blue' // arrow color }" ></simple-arrow-comp> </div> </div> </div> </div> </template> <script> import {mapGetters} from "vuex"; import cartProductEdit from '../components/cart/cart-product-edit.vue'; import simpleArrowComp from '../components/utilities/arrow-components/simple-arrow-comp.vue'; export default { auth: false, components: {cartProductEdit, simpleArrowComp}, computed: { ...mapGetters(['cartItems']) } } </script> <style lang="scss" scoped> .border-bottom-custom { border-bottom: 1px solid rgb(154, 117, 63); } .products { width: 70%; } .summary { width: 20%; } .extra-text { font-size: 0.8rem; color: rgb(0, 21, 44); font-family: SoleilLight; margin-bottom: 2.5vw; text-align: justify; } .top-text { color: #a1a1a1; font-size: 1rem; } .top-text span { font-size: 0.8rem; color: rgb(0, 21, 44); } .summary-text { background-color: #f1eae2; } .title { font-size: 1.8rem; color: rgb(154, 117, 63); font-family: SoleilLight; } .total-text { font-size: 1.2rem; color: rgb(154, 117, 63); margin-bottom: 0.2rem; } .total-sum { font-size: 1.4rem; color: rgb(0, 21, 44); } .tva-text { font-size: 0.7rem; color: rgb(0, 21, 44); font-weight: 400; margin-bottom: 0.2rem; } .odd { background-color: #f1eae2; } .no-products-text { font-size: 1.2rem; } @media screen and #{$ipad-pro-portrait-breakpoint}, screen and #{$ipad-pro-landscape-breakpoint}, screen and #{$ipad-landscape-breakpoint} { .extra-text { font-size: 1rem; margin-bottom: 1.8rem; } .total-text { font-size: 1.1rem; margin-bottom: .7rem; } .total-sum { font-size: 1.2rem; } .tva-text { font-size: .9rem; margin-bottom: .7rem; } .option-container { width: 100%; } .no-products-text { font-size: 1.5rem; } .specific-breakpoint.no-products-text { margin-bottom: $spacer !important; } .top-text { font-size: 1.3rem; } .top-text span { font-size: 1.2rem; } .title { font-size: 2.3rem; } .specific-breakpoint.title { padding-top: $spacer * 1.5 !important; } .products, .summary { width: 100%; } .products-container.specific-breakpoint { flex-direction: column !important; padding-top: $spacer !important; padding-bottom: $spacer * 1.5 !important; } .products.specific-breakpoint, .summary.specific-breakpoint { margin-bottom: $spacer * 4.5 !important; } } @include media-breakpoint-down(lg) { .extra-text { font-size: .9rem; margin-bottom: 1.7rem; } .total-text { font-size: 1rem; margin-bottom: .6rem; } .total-sum { font-size: 1.1rem; } .tva-text { font-size: .8rem; margin-bottom: .6rem; } .option-container { width: 100%; } .no-products-text { font-size: 1.4rem; } .top-text { font-size: 1.2rem; } .top-text span { font-size: 1.1rem; } .title { font-size: 2.2rem; } .products, .summary { width: 100%; } } @include media-breakpoint-down(xssm) { .extra-text { font-size: .8rem; margin-bottom: 1.6rem; } .total-text { font-size: .9rem; margin-bottom: .5rem; } .total-sum { font-size: 1rem; } .tva-text { font-size: .7rem; margin-bottom: .5rem; } .no-products-text { font-size: 1.3rem; } .top-text { font-size: 1.1rem; } .top-text span { font-size: 1rem; } .title { font-size: 2.1rem; } } </style> |