From 8edfdfebf3451036d3fd6fb5e2f7ac3ebea20979 Mon Sep 17 00:00:00 2001
From: pnogal <paulina.nogal@wisc.edu>
Date: Tue, 30 Oct 2018 14:35:15 -0500
Subject: [PATCH] Create Favorites Component

---
 .../degree-planner/degree-planner.module.ts   |  4 ++-
 .../favorites-container.component.html        |  3 +++
 .../favorites-container.component.scss        |  5 ++++
 .../favorites-container.component.spec.ts     | 25 +++++++++++++++++++
 .../favorites-container.component.ts          | 15 +++++++++++
 .../sidenav-menu-item.component.html          |  9 ++++++-
 6 files changed, 59 insertions(+), 2 deletions(-)
 create mode 100644 src/app/degree-planner/favorites-container/favorites-container.component.html
 create mode 100644 src/app/degree-planner/favorites-container/favorites-container.component.scss
 create mode 100644 src/app/degree-planner/favorites-container/favorites-container.component.spec.ts
 create mode 100644 src/app/degree-planner/favorites-container/favorites-container.component.ts

diff --git a/src/app/degree-planner/degree-planner.module.ts b/src/app/degree-planner/degree-planner.module.ts
index 53ae730..3339978 100644
--- a/src/app/degree-planner/degree-planner.module.ts
+++ b/src/app/degree-planner/degree-planner.module.ts
@@ -5,6 +5,7 @@ import { SharedModule } from '../shared/shared.module';
 import { DegreePlannerRoutingModule } from './degree-planner.routing.module';
 import { TermContainerComponent } from './term-container/term-container.component';
 import { SidenavMenuItemComponent } from './sidenav-menu-item/sidenav-menu-item.component';
+import { FavoritesContainerComponent } from './favorites-container/favorites-container.component';
 
 @NgModule({
 	imports: [
@@ -15,7 +16,8 @@ import { SidenavMenuItemComponent } from './sidenav-menu-item/sidenav-menu-item.
 	declarations: [
 		DegreePlannerComponent,
 		TermContainerComponent,
-		SidenavMenuItemComponent
+		SidenavMenuItemComponent,
+		FavoritesContainerComponent
 	]
 })
 export class DegreePlannerModule { }
diff --git a/src/app/degree-planner/favorites-container/favorites-container.component.html b/src/app/degree-planner/favorites-container/favorites-container.component.html
new file mode 100644
index 0000000..f4d0423
--- /dev/null
+++ b/src/app/degree-planner/favorites-container/favorites-container.component.html
@@ -0,0 +1,3 @@
+<div id="favorite-container">
+  My favorite courses!
+</div>
\ No newline at end of file
diff --git a/src/app/degree-planner/favorites-container/favorites-container.component.scss b/src/app/degree-planner/favorites-container/favorites-container.component.scss
new file mode 100644
index 0000000..47cc0fe
--- /dev/null
+++ b/src/app/degree-planner/favorites-container/favorites-container.component.scss
@@ -0,0 +1,5 @@
+#favorite-container {
+    padding: 20px 0 0px 0;
+    margin-top: 0px;
+    border-top: 1px solid rgba(0, 0, 0, 0.54);
+}
\ No newline at end of file
diff --git a/src/app/degree-planner/favorites-container/favorites-container.component.spec.ts b/src/app/degree-planner/favorites-container/favorites-container.component.spec.ts
new file mode 100644
index 0000000..541bfaf
--- /dev/null
+++ b/src/app/degree-planner/favorites-container/favorites-container.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { FavoritesContainerComponent } from './favorites-container.component';
+
+describe('FavoritesContainerComponent', () => {
+  let component: FavoritesContainerComponent;
+  let fixture: ComponentFixture<FavoritesContainerComponent>;
+
+  beforeEach(async(() => {
+    TestBed.configureTestingModule({
+      declarations: [ FavoritesContainerComponent ]
+    })
+    .compileComponents();
+  }));
+
+  beforeEach(() => {
+    fixture = TestBed.createComponent(FavoritesContainerComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});
diff --git a/src/app/degree-planner/favorites-container/favorites-container.component.ts b/src/app/degree-planner/favorites-container/favorites-container.component.ts
new file mode 100644
index 0000000..7fcae1e
--- /dev/null
+++ b/src/app/degree-planner/favorites-container/favorites-container.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-favorites-container',
+  templateUrl: './favorites-container.component.html',
+  styleUrls: ['./favorites-container.component.scss']
+})
+export class FavoritesContainerComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit() {
+  }
+
+}
diff --git a/src/app/degree-planner/sidenav-menu-item/sidenav-menu-item.component.html b/src/app/degree-planner/sidenav-menu-item/sidenav-menu-item.component.html
index ddd2f5a..eac09fe 100644
--- a/src/app/degree-planner/sidenav-menu-item/sidenav-menu-item.component.html
+++ b/src/app/degree-planner/sidenav-menu-item/sidenav-menu-item.component.html
@@ -31,5 +31,12 @@
 			<li><i class="material-icons favorite-icon">favorite_border</i> Course is a favorite</li>
 		</ul>
 	</mat-expansion-panel>
-
+	<mat-expansion-panel id="course-keys-container" expanded="true">
+		<mat-expansion-panel-header>
+			<mat-panel-title>
+				<h3>Favorites</h3>
+			</mat-panel-title>
+		</mat-expansion-panel-header>
+		<app-favorites-container></app-favorites-container>
+	</mat-expansion-panel>
 </div>
\ No newline at end of file
-- 
GitLab