-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yasin Calli
committed
Sep 9, 2022
1 parent
6a9c416
commit 674e6e4
Showing
24 changed files
with
236 additions
and
207 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
42 changes: 0 additions & 42 deletions
42
src/app/components/film-details/film-details.component.html
This file was deleted.
Oops, something went wrong.
65 changes: 0 additions & 65 deletions
65
src/app/components/people-details/people-details.component.html
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<img | ||
src="assets/pato-duck.gif" | ||
width="227" | ||
height="276" | ||
priority | ||
*ngIf="isLoading$ | async" | ||
/> | ||
<span *ngIf="film$ | async as film"> | ||
<div [hidden]="isLoading$ | async"> | ||
<ul class="character-list"> | ||
<div>Characters:</div> | ||
<span class="character-list-container" | ||
><li *ngFor="let character of film?.characters$ | async"> | ||
<a href="{{ character | toRouteUrl }}">{{ character.name }}</a> | ||
</li></span | ||
> | ||
</ul> | ||
<div>Created: {{ film?.created }}</div> | ||
<div>Created: {{ film?.director }}</div> | ||
<div>Created: {{ film?.edited }}</div> | ||
<div>Created: {{ film?.episode_id }}</div> | ||
<div>Created: {{ film?.opening_crawl }}</div> | ||
<ul> | ||
<span>Planets: </span> | ||
<li *ngFor="let planet of film?.planets ?? []">{{ planet }}</li> | ||
</ul> | ||
<div>Producer: {{ film?.producer }}</div> | ||
<div>Release date: {{ film?.release_date }}</div> | ||
<ul> | ||
<span>Planets: </span> | ||
<li *ngFor="let species of film?.species ?? []">{{ species }}</li> | ||
</ul> | ||
<ul> | ||
<span>Planets: </span> | ||
<li *ngFor="let starship of film?.starships ?? []">{{ starship }}</li> | ||
</ul> | ||
<div>Title: {{ film?.title }}</div> | ||
<div>URL: {{ film?.url }}</div> | ||
<ul> | ||
<span>Vehicles: </span> | ||
<li *ngFor="let vehicle of film?.vehicles ?? []">{{ vehicle }}</li> | ||
</ul> | ||
</div></span | ||
> |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
67 changes: 67 additions & 0 deletions
67
src/app/pages/people-details/people-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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<img | ||
src="assets/pato-duck.gif" | ||
width="227" | ||
height="276" | ||
priority | ||
*ngIf="isLoading$ | async" | ||
/> | ||
<span [hidden]="isLoading$ | async"> | ||
<div *ngIf="details$ | async as details" class="flex-container"> | ||
<div class="row"><span class="title"> Name: </span> {{ details.name }}</div> | ||
<div class="row"> | ||
<span class="title">Height: </span> {{ details.height }} | ||
</div> | ||
<div class="row"><span class="title">Mass: </span> {{ details.mass }}</div> | ||
<div class="row"> | ||
<span class="title">Hair color: </span> {{ details.hair_color }} | ||
</div> | ||
<div class="row"> | ||
<span class="title">Skin color: </span> {{ details.skin_color }} | ||
</div> | ||
<div class="row"> | ||
<span class="title">Eye color: </span> {{ details.eye_color }} | ||
</div> | ||
<div class="row"> | ||
<span class="title">Birth year: </span> {{ details.birth_year }} | ||
</div> | ||
<div class="row"> | ||
<span class="title">Gender: </span> {{ details.gender }} | ||
</div> | ||
<div class="row"> | ||
<span class="title">Homeworld: </span> {{ details.homeworld }} | ||
</div> | ||
<div class="row"> | ||
<span class="title">Films: </span> | ||
<ul> | ||
<li *ngFor="let film of details.films | mapToRouterLink: 'films'"> | ||
<a class="link-button" href="{{ film.page }}">{{ film.label }}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="row"> | ||
<span class="title">Species: </span> | ||
<ul> | ||
<li *ngFor="let species of details.species">{{ species }}</li> | ||
</ul> | ||
</div> | ||
<div class="row"> | ||
<span class="title">Vehicles:</span> | ||
<ul> | ||
<li *ngFor="let vehicle of details.vehicles">{{ vehicle }}</li> | ||
</ul> | ||
</div> | ||
<div class="row"> | ||
<span class="title">Starships: </span> | ||
<ul> | ||
<li *ngFor="let starship of details.starships">{{ starship }}</li> | ||
</ul> | ||
</div> | ||
<div class="row"> | ||
<span class="title">Created: </span> {{ details.created }} | ||
</div> | ||
<div class="row"> | ||
<span class="title">Edited: </span> {{ details.edited }} | ||
</div> | ||
<div class="row"><span class="title">URL: </span> {{ details.url }}</div> | ||
</div> | ||
</span> |
File renamed without changes.
File renamed without changes.
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,30 @@ | ||
<div class="people-content"> | ||
<img | ||
src="assets/pato-duck.gif" | ||
width="227" | ||
height="276" | ||
priority | ||
*ngIf="isLoading$ | async" | ||
/> | ||
<span [hidden]="isLoading$ | async"> | ||
<span *ngIf="people$ | async as people"> | ||
<ul class="people-list"> | ||
<li *ngFor="let person of people.results ?? []"> | ||
<a href="{{ person | toRouteUrl }}" class="person-entry" | ||
>Name: {{ person.name }}</a | ||
> | ||
</li> | ||
</ul> | ||
<nav *ngIf="!(isLoading$ | async)"> | ||
<span | ||
><a | ||
[ngClass]="people.previous ? 'link-button' : 'link-button-disabled'" | ||
href="{{ previousUrl }}" | ||
>Previous</a | ||
></span | ||
> | ||
<a class="link-button" href="{{ nextUrl }}">Next</a> | ||
</nav></span | ||
></span | ||
> | ||
</div> |
Oops, something went wrong.