Home
diff --git a/src/app/header/header.component.scss b/src/app/components/header/header.component.scss
similarity index 100%
rename from src/app/header/header.component.scss
rename to src/app/components/header/header.component.scss
diff --git a/src/app/header/header.component.spec.ts b/src/app/components/header/header.component.spec.ts
similarity index 100%
rename from src/app/header/header.component.spec.ts
rename to src/app/components/header/header.component.spec.ts
diff --git a/src/app/components/header/header.component.ts b/src/app/components/header/header.component.ts
new file mode 100644
index 0000000..2395b29
--- /dev/null
+++ b/src/app/components/header/header.component.ts
@@ -0,0 +1,18 @@
+import { Component, EventEmitter, OnInit, Output } from '@angular/core';
+
+@Component({
+ selector: 'app-header',
+ templateUrl: './header.component.html',
+ styleUrls: ['./header.component.scss']
+})
+export class HeaderComponent implements OnInit {
+ @Output() SideNavToggle = new EventEmitter();
+
+ constructor() { }
+
+ ngOnInit() { }
+
+ openSidenav() {
+ this.SideNavToggle.emit();
+ }
+}
diff --git a/src/app/header/header.component.ts b/src/app/header/header.component.ts
deleted file mode 100644
index 913b282..0000000
--- a/src/app/header/header.component.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-header',
- templateUrl: './header.component.html',
- styleUrls: ['./header.component.scss']
-})
-export class HeaderComponent {
-
-}
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
index e3f27b3..5e3b4c4 100644
--- a/src/app/pages/home/home.component.html
+++ b/src/app/pages/home/home.component.html
@@ -1,2 +1 @@
-
\ No newline at end of file
diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts
index f038769..72e3d7b 100644
--- a/src/app/pages/home/home.component.ts
+++ b/src/app/pages/home/home.component.ts
@@ -8,13 +8,8 @@ import { Component, OnInit } from '@angular/core';
})
export class HomeComponent implements OnInit {
- data: any;
-
- constructor(private http: HttpClient){}
+ constructor(private http: HttpClient) { }
ngOnInit(): void {
- this.http.get('/assets/data.json').subscribe(data => {
- this.data = data;
- })
}
}
diff --git a/src/styles.scss b/src/styles.scss
index 0b61188..a630a36 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -6,11 +6,11 @@
@tailwind components;
@tailwind utilities;
-body {
- background-color: #f9f3f3;
+html {
+ height: 100%;
+}
- &.dark {
- color: #f9f3f3;
- background-color: #393e46;
- }
+body {
+ height: 100%;
+ margin: 0;
}
\ No newline at end of file