-
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.
feature/character-list — Following the withdrawal of native transitio…
…ns, I made a few optimisations : - no more box shadows : replaced by a subtil border - removed one useless composite layer inside scroll area - replaced img tags by a div with a background image - replaced model functions by properties in order to not recalculate the same value every time I also replaced Marvel default image for images not found by a custom nicer one.
- Loading branch information
Showing
9 changed files
with
59 additions
and
45 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
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
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,20 +1,20 @@ | ||
ion-view.characters(view-title='Characters') | ||
ion-content | ||
.bar.item-input-inset | ||
form.characters__form(name='crtSearchForm', novalidate, ng-submit='vm.search()', autocomplete="off") | ||
.bar.item-input-inset.characters__search-bar | ||
form.characters__form(name='crtSearchForm' novalidate ng-submit='vm.search()' autocomplete="off") | ||
label.item-input-wrapper | ||
i.icon.ion-ios-search.placeholder-icon | ||
input(type='search', placeholder='Name starts with…', name='name', | ||
ng-model='vm.filter', spellcheck="false") | ||
input(type='search' placeholder='Name starts with…' name='name' ng-model='vm.filter' | ||
spellcheck="false") | ||
.list | ||
.card(ng-repeat="character in vm.characters track by character.id") | ||
.card.characters__card(ng-repeat="character in vm.characters track by character.id") | ||
.item.item-image(ui-sref='app.character-detail({character:character})') | ||
img.characters__item-cover(img-cache ic-src="{{::character.getThumbnailUrl()}}", width="100%", | ||
height="250px") | ||
.item.item-icon-right.assertive | ||
i.icon.ion-android-favorite-outline(ng-click='::vm.keep()') | ||
div.characters-card__cover(ng-if="character.thumbnailUrl" img-cache ic-bg="{{::character.thumbnailUrl}}") | ||
div.characters-card__cover.characters-card__cover--not-found(ng-if="!character.thumbnailUrl") | ||
.item.item-icon-right.assertive.characters-card__footer | ||
i.icon.ion-android-favorite-outline(ng-click='vm.keep()') | ||
| {{::character.name}} | ||
.characters__footer | ||
ion-spinner.spinner-assertive(ng-if='vm.searching') | ||
button.button.button-block.button-assertive(ng-click='vm.loadMore()', | ||
ng-show='vm.hasMoreData()') Show more | ||
button.button.button-block.button-assertive(ng-click='vm.loadMore()' ng-show='vm.hasMoreData') | ||
| Show more |
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
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.