-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance search box design Add font icons Brand page design changes adding more contact information
- Loading branch information
Showing
53 changed files
with
398 additions
and
132 deletions.
There are no files selected for viewing
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.directive('brandCard', function() { | ||
return { | ||
replace: true, | ||
scope: { | ||
item: '=item' | ||
}, | ||
templateUrl: '../partials/brand-card.html' | ||
}; | ||
}) | ||
.directive('brandCardRow', function() { | ||
return { | ||
replace: true, | ||
scope: { | ||
items: '=items' | ||
}, | ||
templateUrl: 'partials/brand-card-row.html' | ||
}; | ||
}) |
This file was deleted.
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
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,6 +1,18 @@ | ||
.directive('productCard', function() { | ||
return { | ||
replace: true, | ||
scope: { | ||
item: '=item' | ||
}, | ||
templateUrl: '../partials/product-card.html' | ||
}; | ||
}) | ||
.directive('productCardRow', function() { | ||
return { | ||
replace: true, | ||
scope: { | ||
items: '=items' | ||
}, | ||
templateUrl: 'partials/product-card-row.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,3 +1,3 @@ | ||
.row{ng-show:"done"} | ||
.row | ||
.column.large-12 | ||
%h4 {{ 'page_not_found_title' | translate }} |
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,8 @@ | ||
%div | ||
.card-row{ng-repeat: "item in items", ng-show: "$index % 3 == 0"} | ||
.small-12.large-4.medium-6.column.card{ng-class: "{'card-empty': !items[$index]}"} | ||
%brand-card{item: "items[$index]"} | ||
.small-12.large-4.medium-6.column.card{ng-class: "{'card-empty': !items[$index + 1]}"} | ||
%brand-card{item: "items[$index + 1]"} | ||
.small-12.large-4.medium-6.column.card{ng-class: "{'card-empty': !items[$index + 2]}"} | ||
%brand-card{item: "items[$index + 2]"} |
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,7 +1,7 @@ | ||
%div | ||
%a{ng-href: "#/brands/{{brand.name}}", class: "block"} | ||
%div{ng-show: "item"} | ||
%a{ng-href: "#/brands/{{item.name}}", class: "block"} | ||
.flex-embed.flex-embed--4by3 | ||
%img.product-card-img.flex-embed__object{ng-src: "{{ brand.logo }}"} | ||
%img.card-img.flex-embed__object{ng-src: "{{ item.logo }}"} | ||
|
||
%a{ng-href: "#/brands/{{brand.name}}", class: "block text-center grey"} | ||
{{ brand.name }} | ||
%a{ng-href: "#/brands/{{item.name}}", class: "block text-center grey"} | ||
{{ item.name }} |
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 |
---|---|---|
|
@@ -2,21 +2,40 @@ | |
|
||
%loading-status{loading: "loading", status: "status"} | ||
|
||
.border-bottom{ng-show:"done"} | ||
.row | ||
.large-8.column.column--center.text-center | ||
.row | ||
.small-4.medium-4.large-4.column.column--center.text-center | ||
.flex-embed.flex-embed--16by9 | ||
%img.flex-embed__object{ng-src: "{{ brand.logo }}"} | ||
|
||
%h4 | ||
{{ brand.name }} | ||
|
||
%p.text-center | ||
.row{ng-show:"done"} | ||
.large-8.column.column--center.text-center | ||
.row | ||
.small-4.medium-4.large-4.column.column--center.text-center | ||
%img.brand-logo{ng-src: "{{ brand.logo }}"} | ||
|
||
%h3.brand-name | ||
{{ brand.name }} | ||
|
||
.text-center | ||
%p.brand-info | ||
{{ brand.description }} | ||
|
||
%ul.brand-contact-info | ||
%li{class: "margin-{{opposite_float}}-one"} | ||
%i{class: "demo-icon icon-location padding-{{opposite_float}}-half"} | ||
Cairo - Egypt | ||
%li{class: "margin-{{opposite_float}}-one"} | ||
%i{class: "demo-icon icon-globe padding-{{opposite_float}}-half"} | ||
www.pepsico.com.eg | ||
%li{class: "margin-{{opposite_float}}-one"} | ||
%i{class: "demo-icon icon-mail padding-{{opposite_float}}-half"} | ||
[email protected] | ||
%li{class: "margin-{{opposite_float}}-one"} | ||
%i{class: "demo-icon icon-mobile padding-{{opposite_float}}-half"} | ||
%bdi | ||
012 4440 9991 | ||
.hide | ||
{{ brand.contact_info }} | ||
.row{ng-show:"done"} | ||
.grid-container.clearfix | ||
.small-12.large-4.medium-6.column.product-card{ng-repeat: "product in products"} | ||
%product-card | ||
%product-card-row{items: "products"} |
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,8 @@ | ||
%div | ||
.card-row{ng-repeat: "item in items", ng-show: "$index % 3 == 0"} | ||
.small-12.large-4.medium-6.column.card{ng-class: "{'card-empty': !items[$index]}"} | ||
%category-card{item: "items[$index]"} | ||
.small-12.large-4.medium-6.column.card{ng-class: "{'card-empty': !items[$index + 1]}"} | ||
%category-card{item: "items[$index + 1]"} | ||
.small-12.large-4.medium-6.column.card{ng-class: "{'card-empty': !items[$index + 2]}"} | ||
%category-card{item: "items[$index + 2]"} |
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,3 +1,3 @@ | ||
%div | ||
%div{ng-show: "item"} | ||
%a{ng-href: "#/category/{{category.name}}", class: "block text-center grey"} | ||
{{ category.name }} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-# Why $index % 3 == 0 | ||
-# This will output 3 columns in every row | ||
-# if for example we have only 4 products, first row will have 3, | ||
-# the second row will have 1, but we want to add more empty 2 columns so the layout border could be done | ||
%div | ||
.card-row{ng-repeat: "item in items", ng-show: "$index % 3 == 0"} | ||
.small-12.large-4.medium-6.column.card{ng-class: "{'card-empty': !items[$index]}"} | ||
%product-card{item: "items[$index]"} | ||
.small-12.large-4.medium-6.column.card{ng-class: "{'card-empty': !items[$index + 1]}"} | ||
%product-card{item: "items[$index + 1]"} | ||
.small-12.large-4.medium-6.column.card{ng-class: "{'card-empty': !items[$index + 2]}"} | ||
%product-card{item: "items[$index + 2]"} |
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,14 +1,14 @@ | ||
%div | ||
%a{ng-href: "#/product/{{product.gtin}}", class: "block"} | ||
%div{ng-show: "item"} | ||
%a{ng-href: "#/product/{{item.gtin}}", class: "block"} | ||
.flex-embed.flex-embed--4by3 | ||
%img.product-card-img.flex-embed__object{ng-src: "{{ product.photos.value[0] }}"} | ||
%img.card-img.flex-embed__object{ng-src: "{{ item.photos.value[0] }}"} | ||
|
||
%a{ng-href: "#/brands/{{product.brand.value}}", class: "block text-center product-card-brand grey"} | ||
{{ product.brand.value }} | ||
%a{ng-href: "#/brands/{{item.brand.value}}", class: "block text-center grey"} | ||
{{ item.brand.value }} | ||
|
||
%a{ng-href: "#/product/{{product.gtin}}", class: "block grey"} | ||
%h4.product-card-title.text-center.truncate | ||
{{ product.productname.value }} | ||
%h4.card-title.text-center.truncate | ||
%a{ng-href: "#/product/{{item.gtin}}", class: "block"} | ||
{{ item.productname.value }} | ||
|
||
.grey.text-center | ||
GTIN {{ product.gtin }} | ||
GTIN {{ item.gtin }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
%div{ng-controller: "SearchController"} | ||
|
||
%form{name: "SearchForm", ng-submit: "doSearch(query)", novalidate: "true"} | ||
%form{name: "SearchForm", ng-submit: "doSearch(query)", novalidate: "true", class: "search-form"} | ||
|
||
%input{type: "text", ng-model: "query", required: "true", placeholder: "", class: "input-field"} | ||
%input{type: "text", placeholder: "{{'search_button' | translate}}", ng-model: "query", required: "true", class: "input-field search-input"} | ||
|
||
%button{type: "submit", class: "button button-small button-primary", ng-disabled: "SearchForm.$invalid"} | ||
{{ 'search_button' | translate }} | ||
%i{class: "demo-icon icon-search"} |
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
Oops, something went wrong.