fixed infra map

This commit is contained in:
snoop 2018-01-30 17:37:38 +09:00
parent 5fd4f8b889
commit abd35226bd
4 changed files with 57 additions and 4 deletions

View File

@ -0,0 +1,19 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MapComponent } from './components/map/map.component';
import { MaterialModule } from 'app/commons/ui/material/material.module';
@NgModule({
imports: [
CommonModule,
MaterialModule
],
declarations: [
MapComponent,
],
exports: [
MapComponent,
]
})
export class InfraModule { }

View File

@ -1,3 +1,23 @@
<p>
infra-page works!
</p>
<mat-tab-group>
<mat-tab label="Zone">
<mat-card class="example-card">
<mat-card-header>
<mat-card-title>Zone - 192.168.1.0/24</mat-card-title>
<mat-card-subtitle>Windows / Probe</mat-card-subtitle>
</mat-card-header>
<mat-card-content>
<p>
The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan.
A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally
bred for hunting.
</p>
</mat-card-content>
<mat-card-actions>
<button mat-button>LIKE</button>
<button mat-button>SHARE</button>
</mat-card-actions>
</mat-card>
</mat-tab>
<mat-tab label="Host">Content 2</mat-tab>
</mat-tab-group>

View File

@ -0,0 +1,8 @@
.example-card {
width: 400px;
}
.example-header-image {
background-image: url('https://material.angular.io/assets/img/examples/shiba1.jpg');
background-size: cover;
}

View File

@ -4,10 +4,16 @@ import { CommonModule } from '@angular/common';
import { InfraPageComponent } from './infra-page.component';
import { InfraPageRoutingModule } from './infra-page-routing.module';
import { MaterialModule } from 'app/commons/ui/material/material.module';
import { InfraModule } from '../../packages/infra/infra.module';
@NgModule({
imports: [
CommonModule,
InfraPageRoutingModule
InfraPageRoutingModule,
MaterialModule,
InfraModule
],
declarations: [InfraPageComponent]
})