-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from mihaiborbea/40-avatar-is-not-taken-from-s…
…ocial-login 40 avatar is not taken from social login
- Loading branch information
Showing
4 changed files
with
48 additions
and
23 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
33 changes: 21 additions & 12 deletions
33
src/app/recipes/recipe-list/recipe-item/recipe-item.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,15 +1,24 @@ | ||
<a [routerLink]="[recipe.id]" routerLinkActive="active" class="no-underline"> | ||
<mat-card class="flex flex-col h-[100%] p-3"> | ||
<mat-card-header class="p-0"> | ||
<mat-card-title class="p-0"> | ||
<span class="font-semibold text-lg m-0">{{ recipe.name }}</span> | ||
</mat-card-title> | ||
</mat-card-header> | ||
<mat-card-content class="flex flex-row content-start justify-start grow p-0 w-full h-[120px]"> | ||
<div class="w-[70%] h-32 overflow-hidden p-0"> | ||
<span>{{ recipe.description }}</span> | ||
</div> | ||
<img class="w-[30%] h-[90%]" mat-card-image [src]="recipe?.image?.url" [alt]="recipe.name" /> | ||
</mat-card-content> | ||
<mat-card class="flex flex-row h-[100%]"> | ||
<div class="flex flex-col w-[60%] py-3 pl-3"> | ||
<mat-card-header class="p-0"> | ||
<mat-card-title class="p-0"> | ||
<span class="font-semibold text-lg m-0">{{ recipe.name }}</span> | ||
</mat-card-title> | ||
</mat-card-header> | ||
<mat-card-content class="flex flex-row content-start justify-start grow p-0 w-full h-[120px]"> | ||
<div class="w-[70%] h-32 overflow-hidden p-0"> | ||
<span>{{ recipe.description }}</span> | ||
</div> | ||
</mat-card-content> | ||
<mat-card-actions align="start"> | ||
<button mat-flat-button color="primary" type=" button" (click)="onAddToShoppingList()"> | ||
<span>Add to shopping list</span> | ||
</button> | ||
</mat-card-actions> | ||
</div> | ||
<div class="h-[225px] w-[40%] "> | ||
<img class="h-full w-full rounded-r-md" mat-card-image [src]="recipe?.image?.url" [alt]="recipe.name" /> | ||
</div> | ||
</mat-card> | ||
</a> |
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