Commit b0bde269 by Adarsh K

design fix

parents 5ef7866a c56c1ad8
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
.side_menu_wrapper { .side_menu_wrapper {
background: rgba(41, 40, 91, 1); background: rgba(41, 40, 91, 1);
width: 100%; width: 100%;
height: 100vh; height: auto;
padding-left: 20px; padding-left: 20px;
padding-top: 20px; padding-top: 20px;
padding-right: 10px; padding-right: 10px;
......
...@@ -500,13 +500,14 @@ ...@@ -500,13 +500,14 @@
bottom: 0px; bottom: 0px;
left: 0px; left: 0px;
right: 0px; right: 0px;
padding: 20px; overflow: scroll;
top: 40%;
padding: 20px 20px 50px 20px;
border-top-left-radius: 15px; border-top-left-radius: 15px;
border-top-right-radius: 15px; border-top-right-radius: 15px;
background: #fff; background: #fff;
-webkit-box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.2);
box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.2); box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.2);
}
h5 { h5 {
color: rgba(41, 40, 91, 1); color: rgba(41, 40, 91, 1);
margin: 0px; margin: 0px;
...@@ -576,5 +577,4 @@ ...@@ -576,5 +577,4 @@
} }
} }
} }
}
} }
\ No newline at end of file
...@@ -117,17 +117,19 @@ ...@@ -117,17 +117,19 @@
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker> <agm-marker [latitude]="lat" [longitude]="lng"></agm-marker>
</agm-map> </agm-map>
<div class="add_address_wrapper"> <div class="add_address_wrapper">
<h5> <div class="add-address-c">
<span class="floatLeft">NEW ADDRESS</span> <span>NEW ADDRESS</span>
<span class="floatRight" (click)="istoggle(); goToPage('nearby')">ADD NEW</span> <span (click)="istoggle(); goToPage('nearby')">ADD NEW</span>
<div class="clear"></div> </div>
</h5> <div>
<ul class="address-ul" *ngIf="addressService.addressList && addressService.addressList.length > 0"> <ul class="address-ul" *ngIf="addressService.addressList && addressService.addressList.length > 0">
<li *ngFor="let address of addressService.addressList; let i = index"> <li *ngFor="let address of addressService.addressList; let i = index">
<div class="floatLeft"> <div class="floatLeft">
{{address.default}} {{address.default}}
<input class="styled-checkbox" name="addressId" id="styled-checkbox-{{i}}" type="radio" (click)="setDefault(address.addressId)" [value]="address.addressId" #addressType [checked]="address.defaultVal == 1" /> <input class="styled-checkbox" name="addressId" id="styled-checkbox-{{i}}" type="radio" (click)="setDefault(address.addressId)" [value]="address.addressId" #addressType [checked]="address.defaultVal == 1" />
<label for="styled-checkbox-{{i}}"> {{address.addressType}} </label> <label for="styled-checkbox-{{i}}">
{{address.addressType}}
</label>
</div> </div>
<div class="floatLeft"> <div class="floatLeft">
<p> <p>
...@@ -138,5 +140,6 @@ ...@@ -138,5 +140,6 @@
</li> </li>
</ul> </ul>
</div> </div>
</div>
</ion-content> </ion-content>
</div> </div>
\ No newline at end of file
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
p { p {
margin: 0px; margin: 0px;
text-align: right; text-align: right;
background-image: url("../../assets/Path 55_2.png"); background-image: url('../../assets/Path 55_2.png');
background-position: left; background-position: left;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 12px; background-size: 12px;
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
.nearby_icon { .nearby_icon {
width: 25px; width: 25px;
height: 25px; height: 25px;
background-image: url("../../assets/location.png"); background-image: url('../../assets/location.png');
background-position: center; background-position: center;
background-size: contain; background-size: contain;
} }
...@@ -284,15 +284,15 @@ ...@@ -284,15 +284,15 @@
.styled-checkbox { .styled-checkbox {
position: absolute; // take it out of document flow position: absolute; // take it out of document flow
opacity: 0; // hide it opacity: 0; // hide it
& + label { &+label {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
padding: 0; padding: 0;
width: 100%; width: 100%;
} }
// Box. // Box.
& + label:before { &+label:before {
content: ""; content: '';
margin-right: 10px; margin-right: 10px;
display: inline-block; display: inline-block;
vertical-align: text-top; vertical-align: text-top;
...@@ -302,30 +302,29 @@ ...@@ -302,30 +302,29 @@
background: white; background: white;
border: 1px solid rgba(215, 213, 228, 1); border: 1px solid rgba(215, 213, 228, 1);
} }
&:checked + label:before { &:checked+label:before {
background: #29285b; background: #29285b;
} }
// Disabled state label. // Disabled state label.
&:disabled + label { &:disabled+label {
color: #b8b8b8; color: #b8b8b8;
cursor: auto; cursor: auto;
} }
// Disabled box. // Disabled box.
&:disabled + label:before { &:disabled+label:before {
box-shadow: none; box-shadow: none;
background: #ddd; background: #ddd;
} }
// Checkmark. Could be replaced with an image // Checkmark. Could be replaced with an image
&:checked + label:after { &:checked+label:after {
content: ""; content: '';
position: absolute; position: absolute;
left: 6px; left: 6px;
top: 10px; top: 10px;
background: white; background: white;
width: 2px; width: 2px;
height: 2px; height: 2px;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
transform: rotate(45deg); transform: rotate(45deg);
} }
} }
......
.nearby_map { .nearby_map {
width: 100%; width: 100%;
height: 100%; height: 100%;
.overlay { .overlay {
...@@ -11,6 +11,17 @@ ...@@ -11,6 +11,17 @@
} }
agm-map { agm-map {
width: 100%; width: 100%;
height: 100vh;
.overlay {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background: rgba(29, 27, 130, 0.2);
}
agm-map {
width: 100%;
height: 100%; height: 100%;
position: relative; position: relative;
} }
...@@ -26,9 +37,8 @@ ...@@ -26,9 +37,8 @@
padding: 0px; padding: 0px;
} }
} }
} }
.add_address_wrapper {
.add_address_wrapper {
position: fixed; position: fixed;
bottom: 0px; bottom: 0px;
left: 0px; left: 0px;
...@@ -71,18 +81,17 @@ ...@@ -71,18 +81,17 @@
color: #fff; color: #fff;
border-radius: 4px; border-radius: 4px;
} }
} }
.styled-checkbox {
.styled-checkbox {
position: absolute; // take it out of document flow position: absolute; // take it out of document flow
opacity: 0; // hide it opacity: 0; // hide it
& + label { &+label {
position: relative; position: relative;
cursor: pointer; cursor: pointer;
padding: 0; padding: 0;
} }
// Box. // Box.
& + label:before { &+label:before {
content: ''; content: '';
margin-right: 10px; margin-right: 10px;
display: inline-block; display: inline-block;
...@@ -95,21 +104,21 @@ ...@@ -95,21 +104,21 @@
} }
// Box hover // Box hover
// Box checked // Box checked
&:checked + label:before { &:checked+label:before {
background: #29285b; background: #29285b;
} }
// Disabled state label. // Disabled state label.
&:disabled + label { &:disabled+label {
color: #b8b8b8; color: #b8b8b8;
cursor: auto; cursor: auto;
} }
// Disabled box. // Disabled box.
&:disabled + label:before { &:disabled+label:before {
box-shadow: none; box-shadow: none;
background: #ddd; background: #ddd;
} }
// Checkmark. Could be replaced with an image // Checkmark. Could be replaced with an image
&:checked + label:after { &:checked+label:after {
content: ''; content: '';
position: absolute; position: absolute;
left: 6px; left: 6px;
...@@ -117,8 +126,8 @@ ...@@ -117,8 +126,8 @@
background: white; background: white;
width: 2px; width: 2px;
height: 2px; height: 2px;
box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
4px -6px 0 white, 4px -8px 0 white;
transform: rotate(45deg); transform: rotate(45deg);
} }
} }
}
\ No newline at end of file
...@@ -13,10 +13,7 @@ ...@@ -13,10 +13,7 @@
<ion-content> <ion-content>
<div class="product_detail_wrapper" *ngIf="product"> <div class="product_detail_wrapper" *ngIf="product">
<div class="product_banner"> <div class="product_banner">
<div <div [ngClass]="checkFavStatus(product.prodId)" (click)="changeFav(product.prodId)"></div>
[ngClass]="checkFavStatus(product.prodId)"
(click)="changeFav(product.prodId)"
></div>
<div class="featured_badge" *ngIf="product.featured">Featured</div> <div class="featured_badge" *ngIf="product.featured">Featured</div>
<ion-slides pager="true" [options]="bannerOptions" *ngIf="slideData"> <ion-slides pager="true" [options]="bannerOptions" *ngIf="slideData">
<ion-slide *ngFor="let prodImg of slideData"> <ion-slide *ngFor="let prodImg of slideData">
...@@ -39,24 +36,18 @@ ...@@ -39,24 +36,18 @@
<div class="product_header"> <div class="product_header">
<ion-row> <ion-row>
<ion-col size="8"> <ion-col size="8">
<h3 [innerHTML]="product.prodName"></h3> <h3>{{product.prodName}}</h3>
<p> <p>
<strong <strong><span><img src="../assets/Path61_2.png" /></span>{{product.rating}}</strong>&nbsp;
><span><img src="../assets/Path61_2.png"/></span {{product.category}}, {{product.subCate}}
>{{product.rating}}</strong
>&nbsp; {{product.category}}, {{product.subCate}}
<br /> <br />
<span *ngFor="let tag of product.tag" <span *ngFor="let tag of product.tag"><span *ngIf="tag !=='No-Tag'">#{{tag}}&nbsp;</span></span>
><span *ngIf="tag !=='No-Tag'">#{{tag}}&nbsp;</span></span
>
</p> </p>
</ion-col> </ion-col>
<ion-col size="4"> <ion-col size="4">
<h5>A$ {{product.price}}</h5> <h5>A$ {{product.price}}</h5>
<p> <p>
<span class="offer" *ngIf="product.discount > 0" <span class="offer" *ngIf="product.discount > 0">-{{product.discount}}%</span>
>-{{product.discount}}%</span
>
</p> </p>
</ion-col> </ion-col>
</ion-row> </ion-row>
...@@ -71,14 +62,8 @@ ...@@ -71,14 +62,8 @@
<li *ngIf="color !=='No-Color'"> <li *ngIf="color !=='No-Color'">
<button id="custom_check_button"> <button id="custom_check_button">
<label> <label>
<input <input id="{{color}}" type="radio" name="color" value="{{color}}"
id="{{color}}" (click)="cartService.choose_color(color)" [checked]="i==0" />
type="radio"
name="color"
value="{{color}}"
(click)="cartService.choose_color(color)"
[checked]="i==0"
/>
<p>{{color}}</p> <p>{{color}}</p>
</label> </label>
</button> </button>
...@@ -95,14 +80,8 @@ ...@@ -95,14 +80,8 @@
<li *ngIf="size !=='Any-Size'"> <li *ngIf="size !=='Any-Size'">
<button id="custom_check_button"> <button id="custom_check_button">
<label> <label>
<input <input id="{{size}}" type="radio" name="services" value="{{size}}"
id="{{size}}" (click)="cartService.choose_size(size)" [checked]="i==0" />
type="radio"
name="services"
value="{{size}}"
(click)="cartService.choose_size(size)"
[checked]="i==0"
/>
<p>{{size}}</p> <p>{{size}}</p>
</label> </label>
</button> </button>
...@@ -169,7 +148,7 @@ ...@@ -169,7 +148,7 @@
</ul> </ul>
</div> --> </div> -->
<h5>Description</h5> <h5>Description</h5>
<p [innerHTML]="product.prodDesc"></p> <p>{{product.prodDesc}}</p>
<!--<h5> <!--<h5>
<span class="floatLeft">Reviews</span><span class="floatRight" (click)="goToPage('reviewlist')">MORE</span> <span class="floatLeft">Reviews</span><span class="floatRight" (click)="goToPage('reviewlist')">MORE</span>
<div class="clear"></div> <div class="clear"></div>
...@@ -235,10 +214,8 @@ ...@@ -235,10 +214,8 @@
</ul> </ul>
</div> --> </div> -->
<h5 *ngIf="product.similar && product.similar.length > 0"> <h5 *ngIf="product.similar && product.similar.length > 0">
<span class="floatLeft">Related Products</span <span class="floatLeft">Related Products</span><span class="floatRight"
><span class="floatRight" (click)="goToPage('productlist', data)" (click)="goToPage('productlist', data)">MORE</span>
>MORE</span
>
<div class="clear"></div> <div class="clear"></div>
</h5> </h5>
<div class="related_product_slider"> <div class="related_product_slider">
...@@ -247,16 +224,11 @@ ...@@ -247,16 +224,11 @@
<ion-slide *ngFor="let similar of product.similar"> <ion-slide *ngFor="let similar of product.similar">
<li (click)="viewProd(similar)"> <li (click)="viewProd(similar)">
<div class="product_image"> <div class="product_image">
<img <img [src]="similar.image" onerror="this.src='../assets/[email protected]'" />
[src]="similar.image" <div [ngClass]="checkFavStatus(similar.prodId)" (click)="changeFav(similar.prodId)">
onerror="this.src='../assets/[email protected]'" </div>
/>
<div
[ngClass]="checkFavStatus(similar.prodId)"
(click)="changeFav(similar.prodId)"
></div>
</div> </div>
<h5 [innerHTML]="similar.prodName"></h5> <h5>{{similar.prodName}}</h5>
<p>{{similar.price}}</p> <p>{{similar.price}}</p>
</li> </li>
</ion-slide> </ion-slide>
...@@ -275,19 +247,10 @@ ...@@ -275,19 +247,10 @@
<ion-footer *ngIf="product"> <ion-footer *ngIf="product">
<div class="footer_div"> <div class="footer_div">
<div class="footer_options"> <div class="footer_options">
<button <button class="share"
class="share" (click)="socialShare(product.prodName, product.category, product.subCate, product.price, product.image)"></button>
(click)="socialShare(product.prodName, product.category, product.subCate, product.price, product.image)" <button [ngClass]="checkFavStatus(product.prodId)" (click)="changeFav(product.prodId)"></button>
></button> <button class="cart" [disabled]="!disCart" (click)="buyNow(product,0)"></button>
<button
[ngClass]="checkFavStatus(product.prodId)"
(click)="changeFav(product.prodId)"
></button>
<button
class="cart"
[disabled]="!disCart"
(click)="buyNow(product,0)"
></button>
</div> </div>
<div class="footer_btn" (click)="buyNow(product,1)">BUY NOW</div> <div class="footer_btn" (click)="buyNow(product,1)">BUY NOW</div>
</div> </div>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
z-index: 2; z-index: 2;
} }
img { img {
width: 100%; // width: 100%;
height: 100%; height: 100%;
object-position: center; object-position: center;
object-fit: cover; object-fit: cover;
...@@ -55,10 +55,10 @@ ...@@ -55,10 +55,10 @@
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
color: rgba(41, 40, 91, 1); color: rgba(41, 40, 91, 1);
font-size: 26px; font-size: 20px;
font-weight: 900; font-weight: 900;
padding-bottom: 5px; padding-bottom: 5px;
white-space: nowrap; // white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
color: rgba(121, 119, 139, 1); color: rgba(121, 119, 139, 1);
white-space: nowrap; // white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
strong { strong {
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
height: 100%; height: 100%;
outline: none; outline: none;
font-size: 17px; font-size: 17px;
white-space: nowrap; // white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
...@@ -137,6 +137,9 @@ ...@@ -137,6 +137,9 @@
padding-top: 35px; padding-top: 35px;
padding-bottom: 35px; padding-bottom: 35px;
text-align: center; text-align: center;
display: flex;
align-items: center;
font-size: 14px;
} }
#custom_check_button label { #custom_check_button label {
width: 100%; width: 100%;
...@@ -150,7 +153,7 @@ ...@@ -150,7 +153,7 @@
top: 0px; top: 0px;
opacity: 0; opacity: 0;
} }
#custom_check_button input:checked + p { #custom_check_button input:checked+p {
background-color: rgba(41, 40, 91, 1); background-color: rgba(41, 40, 91, 1);
color: #fff; color: #fff;
border-radius: 10px !important; border-radius: 10px !important;
...@@ -213,7 +216,7 @@ ...@@ -213,7 +216,7 @@
top: 0px; top: 0px;
opacity: 0; opacity: 0;
} }
#custom_check_button input:checked + p { #custom_check_button input:checked+p {
border: 3px dashed #29285b; border: 3px dashed #29285b;
color: transparent; color: transparent;
border-radius: 10px !important; border-radius: 10px !important;
...@@ -411,7 +414,6 @@ ...@@ -411,7 +414,6 @@
.fav_active { .fav_active {
background-image: url('../../assets/heart.png'); background-image: url('../../assets/heart.png');
} }
.share { .share {
background-image: url('../../assets/Group57_2.png'); background-image: url('../../assets/Group57_2.png');
} }
......
.home_wrapper { .home_wrapper {
width: 100%; width: 100%;
padding-bottom: 50px;
.home_banner { .home_banner {
width: 100%; width: 100%;
height: 300px; height: 300px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment