diff options
Diffstat (limited to 'recipeBuddy/src/app/main-page')
-rw-r--r-- | recipeBuddy/src/app/main-page/main-page.component.html | 106 | ||||
-rw-r--r-- | recipeBuddy/src/app/main-page/main-page.component.ts | 23 |
2 files changed, 116 insertions, 13 deletions
diff --git a/recipeBuddy/src/app/main-page/main-page.component.html b/recipeBuddy/src/app/main-page/main-page.component.html index 7a25409..9f2b69a 100644 --- a/recipeBuddy/src/app/main-page/main-page.component.html +++ b/recipeBuddy/src/app/main-page/main-page.component.html @@ -2,9 +2,107 @@ Recipe Buddy </h1> <div id="container"> - <div id="left"><button type="button">Add Recipe</button></div> + <div id="left"> + <div id="add"> + <input (click)="addPage()" type="image" src="https://image.flaticon.com/icons/png/512/61/61183.png" + alt="add" width="60" height="60"> + </div> + </div> <div id="right">Search: <input type = "text"> - <input type = "submit"></div> - <div id="center"><button type="button">Shopping Cart</button> </div> + <input (click)="submitSearch()" type = "submit"></div> + <div id="center"> + <div id="cart"> + <input (click)="shoppingCart()" type="image" src="https://image.flaticon.com/icons/png/512/126/126083.png" alt="cart" width="60" height ="60"> + </div> + </div> </div> -<hr>
\ No newline at end of file +<hr> +<!-- +<div id="previous"> + <input (click)="previous()" type="image" src="https://www.pngfind.com/pngs/m/9-95287_double-left-chevron-svg-png-icon-free-download.png" + alt="previous" width="45" height="45"> +</div> + + +<div id="cardContainer"> + <mat-card class="example-card"> + <mat-card-header> + <div id="card-title"> + <mat-card-title (click)="cookPage1()">{{recipeName1}}</mat-card-title> + </div> + <div id="edit"> + <input (click)="edit1()" type="image" src="https://image.freepik.com/free-icon/scissors_318-9061.jpg" + alt="edit" width="24" height="32"> + </div> + <div id="cart"> + <input (click)="shoppingCart1()" type="image" src="https://image.flaticon.com/icons/png/512/126/126083.png" alt="cart" width="24" height ="32"> + </div> + <div id="delete"> + <input (click)="delete1()" type="image" src="https://image.flaticon.com/icons/svg/61/61391.svg" alt="delete" width="24" height="32"> + </div> + </mat-card-header> + <img mat-card-image src={{recipeImage1}} alt="Photo of recipe" width="150" height="220"> + <img src={{likeRatingImg1}} alt="like rating" width="50" height="50"> + <mat-card-content> + </mat-card-content> + <mat-card-actions> + </mat-card-actions> + </mat-card> + <mat-card class="example-card"> + <mat-card-header> + <div id="card-title"> + <mat-card-title (click)="cookPage2()">{{recipeName2}}</mat-card-title> + </div> + <div id="edit"> + <input (click)="edit2()" type="image" src="https://image.freepik.com/free-icon/scissors_318-9061.jpg" + alt="edit" width="24" height="32"> + </div> + <div id="cart"> + <input (click)="shopoingCart2()" type="image" src="https://image.flaticon.com/icons/png/512/126/126083.png" alt="cart" width="24" height ="32"> + </div> + <div id="delete"> + <input (click)="delete2()" type="image" src="https://image.flaticon.com/icons/svg/61/61391.svg" alt="delete" width="24" height="32"> + </div> + </mat-card-header> + <img mat-card-image src={{recipeImage2}} alt="Photo of recipe" width="150" height="220"> + <img src={{likeRatingImg2}} alt="like rating" width="50" height="50"> + <mat-card-content> + </mat-card-content> + <mat-card-actions> + </mat-card-actions> + </mat-card> + <mat-card class="example-card"> + <mat-card-header> + <div id="card-title"> + <mat-card-title (click)="clickPage3()">{{recipeName3}}</mat-card-title> + </div> + <div id="edit"> + <input (click)="edit3()" type="image" src="https://image.freepik.com/free-icon/scissors_318-9061.jpg" + alt="edit" width="24" height="32"> + </div> + <div id="cart"> + <input (click)="shoppingCart3()" type="image" src="https://image.flaticon.com/icons/png/512/126/126083.png" alt="cart" width="24" height ="32"> + </div> + <div id="delete"> + <input (click)="delete3()" type="image" src="https://image.flaticon.com/icons/svg/61/61391.svg" alt="delete" width="24" height="32"> + </div> + </mat-card-header> + <img mat-card-image src={{recipeImage3}} alt="Photo of recipe" width="150" height="220"> + <img src={{likeRatingImg3}} alt="like rating" width="50" height="50"> + <mat-card-content> + </mat-card-content> + <mat-card-actions> + </mat-card-actions> + </mat-card> +</div> +<div id="next"> + <input (click)="next()" type="image" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAflBMVEX///8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fhLe0td8z+F3x+Yh6xKKFrXfcyjOqoc3b+lUfvWaHCaqVDRambbPSPaeKzSN+iacfcpzFw3f87DUsPo2o0NKskSsTCtS8hmTXytaoOs9VhDjPXul21Ka7/XjSdHEec9jT45NP8zQRyFJw+Z7yyh8xvQyrYSDNE2893xQKVff0FhOb9eNScwN217rqHpiehX5Xzfitj/0/n7G5DelVrPNRsWWw9t3d5RBlFVs8lGCrOVmI6Uty0Nksvf8exO6UN8ggnBdb7xfmL5+gDjIi2o0z+MRNxKJRCKRSCQSiUQikUj8i/wH5DKNgyDx6ggAAAAASUVORK5CYII=" + alt="next" width="45" height="45"> +</div> + --> +<!-- Copyright 2019 Google LLC. All Rights Reserved. + Use of this source code is governed by an MIT-style license that + can be found in the LICENSE file at http://angular.io/license --> + + +<!--No image found web address: https://www.azfinesthomes.com/assets/images/image-not-available.jpg -->
\ No newline at end of file diff --git a/recipeBuddy/src/app/main-page/main-page.component.ts b/recipeBuddy/src/app/main-page/main-page.component.ts index 7fadd1c..60e3acc 100644 --- a/recipeBuddy/src/app/main-page/main-page.component.ts +++ b/recipeBuddy/src/app/main-page/main-page.component.ts @@ -1,15 +1,20 @@ -import { Component, OnInit } from '@angular/core'; +import { Component } from '@angular/core'; @Component({ - selector: 'app-main-page', - templateUrl: './main-page.component.html', - styleUrls: ['./main-page.component.css'] + selector: 'my-app', + templateUrl: './app.component.html', + styleUrls: [ './app.component.css' ] }) -export class MainPageComponent implements OnInit { +export class AppComponent { + name = 'Angular'; - constructor() { } - - ngOnInit() { + addPage() { + //Code here to move to add page + } + submitSearch() { + //Code here to submit search + } + shoppingCart() { + //Code here to move to shopping cart } - } |