Created
July 9, 2020 11:34
-
-
Save thisiszoaib/68b503c6d6dc7d8d32a5fd6b6ec0b3cc to your computer and use it in GitHub Desktop.
Weather 5
This file contains hidden or 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
| <mat-card class="mat-elevation-z5" *ngIf="data$ | async as data"> | |
| <mat-card-header> | |
| <mat-card-title>{{data.name}}'s weather</mat-card-title> | |
| <mat-card-subtitle>Today: {{today | date }}</mat-card-subtitle> | |
| </mat-card-header> | |
| <mat-card-content> | |
| <div class="flex-row"> | |
| <div class="temp"> | |
| <span class="big-text">{{data.main.temp | number:'0.0-0'}} C</span> | |
| <span>Feels like </span> | |
| <span>{{data.main.feels_like | number: '0.0-0'}} C</span> | |
| </div> | |
| <div class="outlook"> | |
| <span>{{data.weather[0].description | titlecase}}</span> | |
| </div> | |
| </div> | |
| </mat-card-content> | |
| <mat-card-actions> | |
| <button mat-button>LIKE</button> | |
| <button mat-button>SHARE</button> | |
| </mat-card-actions> | |
| </mat-card> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment