-
+
+
+
+
+
+
+
Activities
+
+
+
+
+
+
+ {{message.content}}
+ {{message.date}} {{message.from}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/overview/overview-page.component.scss b/src/app/pages/overview/overview-page.component.scss
index e69de29..46d3587 100644
--- a/src/app/pages/overview/overview-page.component.scss
+++ b/src/app/pages/overview/overview-page.component.scss
@@ -0,0 +1,50 @@
+.full {
+ width: 100%;
+}
+.activity-list-container {
+ background-color: white;
+ padding: 10px;
+
+ .activity-list {
+ height: 400px;
+ overflow: auto;
+ div {
+ margin: 0;
+ }
+ h3 {
+ margin: 0;
+ }
+ p {
+ margin: 0;
+ }
+ .avatar {
+ width: 40px;
+ height: 40px;
+ border-radius: 50%;
+ }
+ }
+
+ .activity-list-header {
+ background-color: #eee;
+ padding: 10px;
+ div {
+ margin: auto;
+ }
+
+ }
+}
+.activity-add {
+ padding: 10px;
+ background: white;
+ .avatar {
+ width: 120px;
+ height: 120px;
+ border-radius: 50%;
+ }
+ h3 {
+ margin: auto;
+ }
+ }
+
+
+
\ No newline at end of file
diff --git a/src/app/pages/overview/overview-page.component.ts b/src/app/pages/overview/overview-page.component.ts
index 7aaac1c..450a93a 100644
--- a/src/app/pages/overview/overview-page.component.ts
+++ b/src/app/pages/overview/overview-page.component.ts
@@ -1,4 +1,6 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, Inject } from '@angular/core';
+import {MatDialog, MatDialogRef, MAT_DIALOG_DATA} from '@angular/material';
+import { AddDashboardDialogComponent } from 'app/pages/overview/add-dashboard-dialog/add-dashboard-dialog.component';
@Component({
selector: 'of-page-overview',
@@ -14,9 +16,46 @@ export class OverviewPageComponent implements OnInit {
// { colorDark: '#66BB6A', colorLight: '#81C784', number: 1221, title: 'BANKING', icon: 'account_balance' }
];
- constructor() { }
+ public messages = [
+ {
+ from: '존버왕김단타',
+ content: 'pac코인 여태 안 탄 혹우 있냐',
+ date: '2017-01-01'
+ },
+ {
+ from: '코인왕박손절',
+ content: '큉텀이 낳냐 아다가 낳냐',
+ date: '2017-01-01'
+ },
+ {
+ from: '존버왕김단타',
+ content: 'pac코인 여태 안 탄 혹우 있냐',
+ date: '2017-01-01'
+ },
+ {
+ from: '코인왕박손절',
+ content: '큉텀이 낳냐 아다가 낳냐',
+ date: '2017-01-01'
+ },
+ ];
+
+ constructor(public dialog: MatDialog) { }
ngOnInit() {
}
+ handleActivityClick(message: any) {
+ alert(message.content);
+ }
+
+ openDialog() {
+ const dialogRef = this.dialog.open(AddDashboardDialogComponent, {
+ width: '350px',
+ data: { }
+ });
+
+ dialogRef.afterClosed().subscribe(result => {
+ console.log('The dialog was closed');
+ });
+ }
}
diff --git a/src/app/pages/overview/overview-page.module.ts b/src/app/pages/overview/overview-page.module.ts
index 670fa6b..5107da3 100644
--- a/src/app/pages/overview/overview-page.module.ts
+++ b/src/app/pages/overview/overview-page.module.ts
@@ -5,6 +5,7 @@ import { OverviewPageComponent } from 'app/pages/overview/overview-page.componen
import { DashboardCardComponent } from 'app/commons/component/dashboard-card/dashboard-card.component';
import { DashboardCardModule } from 'app/commons/component/dashboard-card/dashboard-card.module';
import { MaterialModule } from 'app/commons/ui/material/material.module';
+import { AddDashboardDialogComponent } from './add-dashboard-dialog/add-dashboard-dialog.component';
@NgModule({
imports: [
@@ -14,7 +15,11 @@ import { MaterialModule } from 'app/commons/ui/material/material.module';
MaterialModule
],
declarations: [
- OverviewPageComponent
+ OverviewPageComponent,
+ AddDashboardDialogComponent
+ ],
+ entryComponents: [
+ AddDashboardDialogComponent
]
})
export class OverviewPageModule { }