diff --git a/src/app/app.component.css b/src/app/app.component.css
index dc729fe..fe3361e 100644
--- a/src/app/app.component.css
+++ b/src/app/app.component.css
@@ -6,7 +6,7 @@
margin-top: 10px;
bottom: 0;
opacity: 95%;
- background: rgba(34, 129, 247, 0.8);
+ /* background: rgba(34, 129, 247, 0.8); */
}
.nav a {
diff --git a/src/app/app.component.html b/src/app/app.component.html
index 5a352ce..ffb269f 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -2,35 +2,21 @@
@@ -42,7 +28,7 @@
-
+
-
LIGHT MODE
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 6efd665..a42259e 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -1,12 +1,65 @@
import { Component } from '@angular/core';
+declare interface RouteInfo {
+ path: string;
+ title: string;
+ icon: string;
+ class: string;
+}
+export const ROUTES: RouteInfo[] = [
+ {
+ path: "/dashboard",
+ title: "Dashboard",
+ icon: "icon-chart-pie-36",
+ class: ""
+ },
+ {
+ path: "/backlog",
+ title: "Backlog",
+ icon: "icon-atom",
+ class: ""
+ },
+ {
+ path: "/userstories",
+ title: "Userstories",
+ icon: "icon-pin",
+ class: ""
+ },
+ {
+ path: "/tasks",
+ title: "Tasks",
+ icon: "icon-bell-55",
+ class: ""
+ },
+ {
+ path: "/sprints",
+ title: "Sprints",
+ icon: "icon-single-02",
+ class: ""
+ }
+];
+
+
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
- /*
+
+ menuItems: any[];
+ public sidebarColor: string = "blue";
+
+ ngOnInit() {
+ this.menuItems = ROUTES.filter(menuItem => menuItem);
+ }
+ isMobileMenu() {
+ if (window.innerWidth > 991) {
+ return false;
+ }
+ return true;
+ }
+
changeSidebarColor(color){
var sidebar = document.getElementsByClassName('sidebar')[0];
var mainPanel = document.getElementsByClassName('main-panel')[0];
@@ -20,7 +73,7 @@ export class AppComponent {
mainPanel.setAttribute('data',color);
}
}
- */
+
changeDashboardColor(color){
var body = document.getElementsByTagName('body')[0];
if (body && color === 'white-content') {