-
Notifications
You must be signed in to change notification settings - Fork 810
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Product Page UI
- Loading branch information
Showing
39 changed files
with
1,561 additions
and
433 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,4 +89,4 @@ | |
"main": "index.js", | ||
"repository": "[email protected]:aviabird/angularspree.git", | ||
"author": "Pankaj Rawat <[email protected]>" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ | |
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 21 additions & 12 deletions
33
...app/product/components/product-detail-page/product-details/product-details.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,39 @@ | ||
<div itemscope itemtype="https://schema.org/Product" *ngIf="product != null" class="row padding-top mt-5 pt-5"> | ||
<div itemscope itemtype="https://schema.org/Product" *ngIf="product != null" class="row pt-5"> | ||
|
||
<div class="col-12 col-md-6"> | ||
<div class="fav-icon-sontainer"> | ||
<div class="col-12 col-md-5"> | ||
<!-- <div class="fav-icon-sontainer"> | ||
<a (click)="markAsFavorite()" class="favorite"> | ||
<i class="fa fa-heart"></i> | ||
</a> | ||
</div> | ||
</div> --> | ||
<app-image-container [images]="images" class="col-12" [selectedImage]="images[0]"> | ||
</app-image-container> | ||
</div> | ||
<div class="col-md-6 col-12"> | ||
<div class="col-md-7 col-12"> | ||
|
||
<app-product-price-info [product]="product" class="row"> | ||
</app-product-price-info> | ||
|
||
<app-product-variants [customOptionTypesHash]="customOptionTypesHash" [currentSelectedOptions]="currentSelectedOptions" (onOptionClickEvent)="onOptionClick($event)" | ||
[correspondingOptions]="correspondingOptions" [mainOptions]="mainOptions" class="row"></app-product-variants> | ||
<app-product-variants [customOptionTypesHash]="customOptionTypesHash" [currentSelectedOptions]="currentSelectedOptions" (onOptionClickEvent)="onOptionClick($event)" | ||
[correspondingOptions]="correspondingOptions" [mainOptions]="mainOptions" class="row"></app-product-variants> | ||
|
||
<div class="row col-12"> | ||
<!-- <div class="row col-12"> | ||
<button (click)="addToCart()" class="pdp-add-to-bag pdp-button">ADD TO BAG</button> | ||
</div> | ||
</div> --> | ||
|
||
|
||
|
||
<app-product-description [description]="product.description" class="row"> | ||
</app-product-description> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-12"> | ||
<h1> | ||
Description | ||
</h1> | ||
<app-product-description [description]="product.description" class="row"> | ||
</app-product-description> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ponents/product-detail-page/product-price-info/product-count/product-count.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<div class="bordered"> | ||
<div class="buybox__purchase"> | ||
<form> | ||
<div> | ||
<div class="buy-quantity"> | ||
<a class="cw-btn quantity-minus" (click)="decreaseCount()">-</a> | ||
<span class="quantity-input"> | ||
<span class="quantity-number">{{count}}</span> | ||
<span>Quantity</span> | ||
</span> | ||
<a class="cw-btn quantity-plus" (click)="increseCount()">+</a> | ||
</div> | ||
</div> | ||
<div class="buttons"> | ||
<input type="submit" class="cw-btn cw-btn--action cw-btn--full js-add-cart" value="Add to Cart"> | ||
</div> | ||
</form> | ||
</div> | ||
<a href="#" class="buybox__favorite"> | ||
<span class=""> | ||
<i class="fa fa-heart"></i> Add to Favorites</span> | ||
</a> | ||
</div> |
125 changes: 125 additions & 0 deletions
125
...ponents/product-detail-page/product-price-info/product-count/product-count.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
@import "../../../../../shared/scss/selected_theme_variables"; | ||
.cw-btn { | ||
position: relative; | ||
display: inline-block; | ||
vertical-align: middle; | ||
-ms-touch-action: manipulation; | ||
touch-action: manipulation; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
-webkit-appearance: none; | ||
cursor: pointer; | ||
background: none; | ||
font-family: Roboto, Arial, sans-serif; | ||
font-size: 18px; | ||
-webkit-font-smoothing: antialiased; | ||
line-height: 1; | ||
font-weight: 400; | ||
text-align: center; | ||
text-decoration: none; | ||
white-space: nowrap; | ||
padding: 13px 35px 15px; | ||
margin-right: 15px; | ||
outline: none; | ||
border: 1px solid transparent; | ||
-webkit-border-radius: 4px; | ||
border-radius: 4px; | ||
-webkit-transition: all, .4s, ease-out; | ||
transition: all, .4s, ease-out; | ||
-webkit-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
|
||
#buybox { | ||
float: left; | ||
width: 40%; | ||
.cw-btn--action { | ||
background-color: $theme-action-sub-color3; | ||
background: -webkit-gradient(linear, left top, left bottom, from($theme-action-sub-color3), color-stop(45%, $theme-action-sub-color3), to($theme-action-sub-color1)); | ||
background: linear-gradient(180deg, $theme-action-sub-color3 0, ef$theme-action-sub-color3 45%, $theme-action-sub-color1); | ||
color: #fff; | ||
font-weight: 500; | ||
border: 1px solid rgba(0, 0, 0, .3); | ||
-webkit-box-shadow: 0 1px 0 0 $gray-12; | ||
box-shadow: 0 1px 0 0 $gray-12; | ||
width: 100%; | ||
} | ||
.bordered { | ||
background-color: $gray-100; | ||
border: 1px solid $gray-10; | ||
-webkit-border-radius: 5px; | ||
border-radius: 5px; | ||
.buybox__favorite { | ||
font-size: 1.1rem; | ||
display: block; | ||
text-align: center; | ||
padding: 16px 20px; | ||
background: $white; | ||
border-top: 1px solid $gray-10; | ||
-webkit-border-radius: 0 0 5px 5px; | ||
border-radius: 0 0 5px 5px; | ||
} | ||
.buybox__purchase { | ||
padding: 20px; | ||
.buy-quantity { | ||
display: block; | ||
margin-bottom: 15px; | ||
border: 1px solid $gray-10; | ||
-webkit-box-shadow: 0 1px 0 $gray-10; | ||
box-shadow: 0 1px 0 $gray-10; | ||
-webkit-border-radius: 4px; | ||
border-radius: 4px; | ||
overflow: hidden; | ||
.quantity-input { | ||
width: 33.33333%; | ||
float: left; | ||
border: 1px solid; | ||
border-color: $white; | ||
background-color: $white; | ||
position: relative; | ||
.quantity-number { | ||
top: 0; | ||
bottom: auto; | ||
font-size: 1.2em; | ||
} | ||
span { | ||
display: block; | ||
text-align: center; | ||
font-size: .8em; | ||
color: $gray-800; | ||
} | ||
} | ||
a.quantity-minus { | ||
font-size: 2.4em; | ||
line-height: 1.3em; | ||
} | ||
a.disabled { | ||
cursor: default; | ||
background: #f2f2f2; | ||
color: #ddd; | ||
} | ||
a { | ||
width: 33.33333%; | ||
float: left; | ||
height: 50px; | ||
padding: 0; | ||
margin: 0; | ||
line-height: 50px; | ||
font-weight: 400; | ||
font-size: 1.7em; | ||
border: none; | ||
-webkit-box-shadow: none; | ||
box-shadow: none; | ||
-webkit-border-radius: 0; | ||
border-radius: 0; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.