-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/product/components/product-detail-page/product-images/product-images.component.scss b/src/app/product/components/product-detail-page/product-images/product-images.component.scss
index f37627ac..cea999ce 100644
--- a/src/app/product/components/product-detail-page/product-images/product-images.component.scss
+++ b/src/app/product/components/product-detail-page/product-images/product-images.component.scss
@@ -7,6 +7,13 @@
margin: auto;
height: 67%;
object-fit: scale-down;
+ @media only screen and (min-width: 320px) and (max-width: 767px) {
+ width: auto;
+ margin: auto;
+ height: auto;
+ object-fit: scale-down;
+ mix-blend-mode: darken;
+ }
}
.thumbnails-vertical-container {
width: 60px;
diff --git a/src/app/product/components/product-detail-page/product-images/product-images.component.ts b/src/app/product/components/product-detail-page/product-images/product-images.component.ts
index 1ad63e7a..650c82fa 100644
--- a/src/app/product/components/product-detail-page/product-images/product-images.component.ts
+++ b/src/app/product/components/product-detail-page/product-images/product-images.component.ts
@@ -2,6 +2,7 @@ import { Image } from './../../../../core/models/image';
import { environment } from './../../../../../environments/environment';
import { Product } from './../../../../core/models/product';
import { Component, OnInit, Input, ChangeDetectionStrategy } from '@angular/core';
+import { NguCarousel } from '@ngu/carousel';
const img1 = require('../../../../../assets/thumbnail.jpg');
const img2 = require('../../../../../assets/thumbnail2.jpg');
@@ -26,12 +27,58 @@ export class ProductImagesComponent implements OnInit {
},
settings: {
zoom: 4,
- gap: -250
}
};
+ @Input() isMobile;
+ public carouselOne: NguCarousel;
constructor() { }
- ngOnInit() { }
+ ngOnInit() {
+ this.carouselOne = {
+ grid: { xs: 1, sm: 1, md: 1, lg: 1, all: 0 },
+ slide: 1,
+ speed: 400,
+ interval: 4000,
+ point: {
+ visible: true,
+ pointStyles: `
+ .ngucarouselPoint {
+ list-style-type: none;
+ padding: 3px;
+ white-space: nowrap;
+ overflow: auto;
+ position: relative;
+ bottom: 27px;
+ left: 0;
+ box-sizing: border-box;
+ background-color: white;
+ margin: 0 auto -28px;
+ align-self: center;
+ width: fit-content;
+ border-radius: 5px 5px 0 0;
+ }
+ .ngucarouselPoint li {
+ display: inline-block;
+ border-radius: 999px;
+ background-color: rgba(0, 0, 255, 0.55);
+ padding: 5px;
+ margin: 0 3px;
+ transition: .4s ease all;
+ }
+ .ngucarouselPoint li.active {
+ background-color: white;
+ border: 1px solid rgba(0, 0, 255, 0.55);
+ width: 10px;
+ }
+ `
+ },
+ load: 2,
+ touch: true,
+ loop: true,
+ custom: 'banner'
+ }
+ }
+
getProductImageUrl(url) {
return url;
diff --git a/src/app/product/components/product-detail-page/product-price-info/product-count/product-count.component.scss b/src/app/product/components/product-detail-page/product-price-info/product-count/product-count.component.scss
index c568b963..bebf36ec 100644
--- a/src/app/product/components/product-detail-page/product-price-info/product-count/product-count.component.scss
+++ b/src/app/product/components/product-detail-page/product-price-info/product-count/product-count.component.scss
@@ -1,17 +1,19 @@
@import "../../../../../shared/scss/selected_theme_variables";
-
#buybox {
float: left;
width: 40%;
@media only screen and (min-width: 320px) and (max-width: 767px) {
width:100%
}
-
.bordered {
background-color: $gray-100;
border: 1px solid $gray-10;
-webkit-border-radius: 5px;
border-radius: 5px;
+ @media only screen and (min-width: 320px) and (max-width: 767px) {
+ -webkit-border-radius:0;
+ border-radius: 0;
+ }
.buybox__favorite {
cursor: pointer;
font-size: 1.1rem;
@@ -87,4 +89,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/src/app/product/components/product-detail-page/product-price-info/product-count/product-count.component.ts b/src/app/product/components/product-detail-page/product-price-info/product-count/product-count.component.ts
index d751e677..99d30e35 100644
--- a/src/app/product/components/product-detail-page/product-price-info/product-count/product-count.component.ts
+++ b/src/app/product/components/product-detail-page/product-price-info/product-count/product-count.component.ts
@@ -46,7 +46,7 @@ export class ProductCountComponent implements OnInit {
this.onAddToCart.emit(count);
}
- buyNow(count: number){
+ buyNow(count: number) {
this.onAddToCart.emit(count);
this.router.navigate(['checkout', 'cart']);
}
diff --git a/src/app/product/components/product-detail-page/product-price-info/product-price-info.component.html b/src/app/product/components/product-detail-page/product-price-info/product-price-info.component.html
index d1a9824c..903948c3 100644
--- a/src/app/product/components/product-detail-page/product-price-info/product-price-info.component.html
+++ b/src/app/product/components/product-detail-page/product-price-info/product-price-info.component.html
@@ -1,63 +1,102 @@
-
-
{{product.name}}
-
-
-
-