summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-12-06 15:32:20 -0500
committerTucker Evans <tuckerevans24@gmail.com>2019-12-10 14:14:41 -0500
commit58043492cf8a12d3b73dbb8760e26ffce0e2dc41 (patch)
tree5ac3417ca6cf37f013fe88547e35d335e0406865 /recipeBuddy/src/app
parent0f8d2ab5d57334320f8c60b626c5af455eddae4f (diff)
Add toolbar to main app template
Diffstat (limited to 'recipeBuddy/src/app')
-rw-r--r--recipeBuddy/src/app/app.component.html18
-rw-r--r--recipeBuddy/src/app/app.module.ts4
2 files changed, 20 insertions, 2 deletions
diff --git a/recipeBuddy/src/app/app.component.html b/recipeBuddy/src/app/app.component.html
index 014c6b0..830c5cb 100644
--- a/recipeBuddy/src/app/app.component.html
+++ b/recipeBuddy/src/app/app.component.html
@@ -1,2 +1,18 @@
-<h1>{{title}}</h1>
+<mat-toolbar color="primary">
+ <span style="margin-left: 15px">
+ <button mat-button routerLink="/" routerLinkActive="active"><h1>{{title}}</h1></button>
+ </span>
+ <span style="flex: 1 1 auto"></span>
+ <div style="margin-right: 15px">
+ <button mat-icon-button routerLink="/add" routerLinkActive="active">
+ <mat-icon style="padding-left: 8px; padding-right: 8px">add</mat-icon>
+ </button>
+ <button mat-icon-button routerLink="/cart" routerLinkActive="active">
+ <mat-icon style="padding-left: 8px; padding-right: 8px">shopping_cart</mat-icon>
+ </button>
+ <button mat-icon-button routerLink="/search" routerLinkActive="active">
+ <mat-icon style="padding-left: 8px; padding-right: 8px">search</mat-icon>
+ </button>
+ </div>
+</mat-toolbar>
<router-outlet></router-outlet>
diff --git a/recipeBuddy/src/app/app.module.ts b/recipeBuddy/src/app/app.module.ts
index 359254e..e6c3a27 100644
--- a/recipeBuddy/src/app/app.module.ts
+++ b/recipeBuddy/src/app/app.module.ts
@@ -19,6 +19,7 @@ import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
+import { MatToolbarModule } from '@angular/material/toolbar';
@NgModule({
declarations: [
@@ -37,7 +38,8 @@ import { MatButtonModule } from '@angular/material/button';
MatInputModule,
MatFormFieldModule,
MatIconModule,
- MatButtonModule
+ MatButtonModule,
+ MatToolbarModule
],
providers: [],
bootstrap: [AppComponent]