Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
getme
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
amal
getme
Commits
def7acba
Commit
def7acba
authored
5 years ago
by
Arjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
product details style fix
parent
3c2f6b03
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
64 deletions
+26
-64
app.component.scss
src/app/app.component.scss
+1
-1
productdetail.page.html
src/app/productdetail/productdetail.page.html
+15
-55
productdetail.page.scss
src/app/productdetail/productdetail.page.scss
+10
-8
No files found.
src/app/app.component.scss
View file @
def7acba
...
...
@@ -8,7 +8,7 @@
.side_menu_wrapper
{
background
:
rgba
(
41
,
40
,
91
,
1
);
width
:
100%
;
height
:
100vh
;
height
:
auto
;
padding-left
:
20px
;
padding-top
:
20px
;
padding-right
:
10px
;
...
...
This diff is collapsed.
Click to expand it.
src/app/productdetail/productdetail.page.html
View file @
def7acba
...
...
@@ -13,10 +13,7 @@
<ion-content>
<div
class=
"product_detail_wrapper"
*
ngIf=
"product"
>
<div
class=
"product_banner"
>
<div
[
ngClass
]="
checkFavStatus
(
product
.
prodId
)"
(
click
)="
changeFav
(
product
.
prodId
)"
></div>
<div
[
ngClass
]="
checkFavStatus
(
product
.
prodId
)"
(
click
)="
changeFav
(
product
.
prodId
)"
></div>
<div
class=
"featured_badge"
*
ngIf=
"product.featured"
>
Featured
</div>
<ion-slides
pager=
"true"
[
options
]="
bannerOptions
"
*
ngIf=
"slideData"
>
<ion-slide
*
ngFor=
"let prodImg of slideData"
>
...
...
@@ -41,22 +38,15 @@
<ion-col
size=
"8"
>
<h3>
{{product.prodName}}
</h3>
<p>
<strong
><span><img
src=
"../assets/Path61_2.png"
/></span
>
{{product.rating}}
</strong
>
{{product.category}}, {{product.subCate}}
<strong><span><img
src=
"../assets/Path61_2.png"
/></span>
{{product.rating}}
</strong>
{{product.category}}, {{product.subCate}}
<br
/>
<span
*
ngFor=
"let tag of product.tag"
><span
*
ngIf=
"tag !=='No-Tag'"
>
#{{tag}}
</span></span
>
<span
*
ngFor=
"let tag of product.tag"
><span
*
ngIf=
"tag !=='No-Tag'"
>
#{{tag}}
</span></span>
</p>
</ion-col>
<ion-col
size=
"4"
>
<h5>
A$ {{product.price}}
</h5>
<p>
<span
class=
"offer"
*
ngIf=
"product.discount > 0"
>
-{{product.discount}}%
</span
>
<span
class=
"offer"
*
ngIf=
"product.discount > 0"
>
-{{product.discount}}%
</span>
</p>
</ion-col>
</ion-row>
...
...
@@ -71,14 +61,8 @@
<li
*
ngIf=
"color !=='No-Color'"
>
<button
id=
"custom_check_button"
>
<label>
<input
id=
"{{color}}"
type=
"radio"
name=
"color"
value=
"{{color}}"
(
click
)="
cartService
.
choose_color
(
color
)"
[
checked
]="
i=
=0"
/>
<input
id=
"{{color}}"
type=
"radio"
name=
"color"
value=
"{{color}}"
(
click
)="
cartService
.
choose_color
(
color
)"
[
checked
]="
i=
=0"
/>
<p>
{{color}}
</p>
</label>
</button>
...
...
@@ -95,14 +79,8 @@
<li
*
ngIf=
"size !=='Any-Size'"
>
<button
id=
"custom_check_button"
>
<label>
<input
id=
"{{size}}"
type=
"radio"
name=
"services"
value=
"{{size}}"
(
click
)="
cartService
.
choose_size
(
size
)"
[
checked
]="
i=
=0"
/>
<input
id=
"{{size}}"
type=
"radio"
name=
"services"
value=
"{{size}}"
(
click
)="
cartService
.
choose_size
(
size
)"
[
checked
]="
i=
=0"
/>
<p>
{{size}}
</p>
</label>
</button>
...
...
@@ -235,10 +213,7 @@
</ul>
</div> -->
<h5
*
ngIf=
"product.similar && product.similar.length > 0"
>
<span
class=
"floatLeft"
>
Related Products
</span
><span
class=
"floatRight"
(
click
)="
goToPage
('
productlist
',
data
)"
>
MORE
</span
>
<span
class=
"floatLeft"
>
Related Products
</span><span
class=
"floatRight"
(
click
)="
goToPage
('
productlist
',
data
)"
>
MORE
</span>
<div
class=
"clear"
></div>
</h5>
<div
class=
"related_product_slider"
>
...
...
@@ -247,14 +222,9 @@
<ion-slide
*
ngFor=
"let similar of product.similar"
>
<li
(
click
)="
viewProd
(
similar
)"
>
<div
class=
"product_image"
>
<img
[
src
]="
similar
.
image
"
onerror=
"this.src='../assets/model1@3x.png'"
/>
<div
[
ngClass
]="
checkFavStatus
(
similar
.
prodId
)"
(
click
)="
changeFav
(
similar
.
prodId
)"
></div>
<img
[
src
]="
similar
.
image
"
onerror=
"this.src='../assets/model1@3x.png'"
/>
<div
[
ngClass
]="
checkFavStatus
(
similar
.
prodId
)"
(
click
)="
changeFav
(
similar
.
prodId
)"
>
</div>
</div>
<h5>
{{similar.prodName}}
</h5>
<p>
{{similar.price}}
</p>
...
...
@@ -275,19 +245,9 @@
<ion-footer
*
ngIf=
"product"
>
<div
class=
"footer_div"
>
<div
class=
"footer_options"
>
<button
class=
"share"
(
click
)="
socialShare
(
product
.
prodName
,
product
.
category
,
product
.
subCate
,
product
.
price
,
product
.
image
)"
></button>
<button
[
ngClass
]="
checkFavStatus
(
product
.
prodId
)"
(
click
)="
changeFav
(
product
.
prodId
)"
></button>
<button
class=
"cart"
[
disabled
]="!
disCart
"
(
click
)="
buyNow
(
product
,
0
)"
></button>
<button
class=
"share"
(
click
)="
socialShare
(
product
.
prodName
,
product
.
category
,
product
.
subCate
,
product
.
price
,
product
.
image
)"
></button>
<button
[
ngClass
]="
checkFavStatus
(
product
.
prodId
)"
(
click
)="
changeFav
(
product
.
prodId
)"
></button>
<button
class=
"cart"
[
disabled
]="!
disCart
"
(
click
)="
buyNow
(
product
,
0
)"
></button>
</div>
<div
class=
"footer_btn"
(
click
)="
buyNow
(
product
,
1
)"
>
BUY NOW
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/app/productdetail/productdetail.page.scss
View file @
def7acba
...
...
@@ -43,7 +43,7 @@
z-index
:
2
;
}
img
{
width
:
100%
;
//
width: 100%;
height
:
100%
;
object-position
:
center
;
object-fit
:
cover
;
...
...
@@ -55,10 +55,10 @@
margin
:
0px
;
padding
:
0px
;
color
:
rgba
(
41
,
40
,
91
,
1
);
font-size
:
26
px
;
font-size
:
20
px
;
font-weight
:
900
;
padding-bottom
:
5px
;
white-space
:
nowrap
;
//
white-space: nowrap;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
...
...
@@ -66,7 +66,7 @@
margin
:
0px
;
padding
:
0px
;
color
:
rgba
(
121
,
119
,
139
,
1
);
white-space
:
nowrap
;
//
white-space: nowrap;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
strong
{
...
...
@@ -122,7 +122,7 @@
height
:
100%
;
outline
:
none
;
font-size
:
17px
;
white-space
:
nowrap
;
//
white-space: nowrap;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
...
...
@@ -137,6 +137,9 @@
padding-top
:
35px
;
padding-bottom
:
35px
;
text-align
:
center
;
display
:
flex
;
align-items
:
center
;
font-size
:
14px
;
}
#custom_check_button
label
{
width
:
100%
;
...
...
@@ -150,7 +153,7 @@
top
:
0px
;
opacity
:
0
;
}
#custom_check_button
input
:checked
+
p
{
#custom_check_button
input
:checked
+
p
{
background-color
:
rgba
(
41
,
40
,
91
,
1
);
color
:
#fff
;
border-radius
:
10px
!
important
;
...
...
@@ -213,7 +216,7 @@
top
:
0px
;
opacity
:
0
;
}
#custom_check_button
input
:checked
+
p
{
#custom_check_button
input
:checked
+
p
{
border
:
3px
dashed
#29285b
;
color
:
transparent
;
border-radius
:
10px
!
important
;
...
...
@@ -411,7 +414,6 @@
.fav_active
{
background-image
:
url('../../assets/heart.png')
;
}
.share
{
background-image
:
url('../../assets/Group57_2.png')
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment