-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
478 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/app/page-layouts/carded/fullwidth2/fullwidth2.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="page-layout"> | ||
<div class="top-bg"></div> | ||
|
||
<div class="wrapper"> | ||
<div class="header" fxLayout="row" fxLayoutAlign="start center"></div> | ||
<div class="card"> | ||
<div class="toolbar" fxLayout="row" fxLayoutAlign="start center"></div> | ||
<div class="content"> | ||
<app-demo-content></app-demo-content> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
69 changes: 69 additions & 0 deletions
69
src/app/page-layouts/carded/fullwidth2/fullwidth2.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
:host { | ||
display: flex; | ||
flex: 1; | ||
width: 100%; | ||
min-width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.page-layout { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1 0 auto; | ||
width: 100%; | ||
min-width: 100%; | ||
position: relative; | ||
} | ||
|
||
.top-bg { | ||
position: absolute; | ||
z-index: 1; | ||
top: 0; | ||
right: 0; | ||
left: 0; | ||
height: 200px; | ||
background: #c471f3; | ||
background-size: cover; | ||
} | ||
|
||
.wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; | ||
position: relative; | ||
z-index: 2; | ||
padding: 0 32px; | ||
width: 100%; | ||
min-width: 100%; | ||
max-width: 100%; | ||
max-height: 100%; | ||
box-sizing: border-box; | ||
>.header { | ||
height: 136px; | ||
min-height: 136px; | ||
max-height: 136px; | ||
} | ||
>.card { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; | ||
overflow: hidden; | ||
background: #fff; | ||
box-shadow: 0 4px 5px -2px rgba(0, 0, 0, .2), 0 7px 10px 1px rgba(0, 0, 0, .14), 0 2px 16px 1px rgba(0, 0, 0, .12); | ||
} | ||
} | ||
|
||
.toolbar { | ||
border-bottom: 1px solid rgba(0, 0, 0, .12); | ||
height: 64px; | ||
min-height: 64px; | ||
max-height: 64px; | ||
padding: 0 24px; | ||
} | ||
|
||
.content { | ||
display: flex; | ||
flex: 1; | ||
padding: 24px; | ||
overflow: auto | ||
} |
25 changes: 25 additions & 0 deletions
25
src/app/page-layouts/carded/fullwidth2/fullwidth2.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { Fullwidth2Component } from './fullwidth2.component'; | ||
|
||
describe('Fullwidth2Component', () => { | ||
let component: Fullwidth2Component; | ||
let fixture: ComponentFixture<Fullwidth2Component>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ Fullwidth2Component ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(Fullwidth2Component); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
src/app/page-layouts/carded/fullwidth2/fullwidth2.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-fullwidth2', | ||
templateUrl: './fullwidth2.component.html', | ||
styleUrls: ['./fullwidth2.component.scss'] | ||
}) | ||
export class Fullwidth2Component implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
126 changes: 126 additions & 0 deletions
126
src/app/page-layouts/carded/left-sidenav/left-sidenav.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<div class="page-layout"> | ||
<div class="top-bg"></div> | ||
|
||
<mat-sidenav-container> | ||
<mat-sidenav class="sidenav" position="start" opened="true" mode="side" #sidenav> | ||
<div class="content"> | ||
<mat-list> | ||
<h3 matSubheader>Sidenav Demo</h3> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 1</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 2</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 3</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 4</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 5</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 6</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 7</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 8</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 9</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 10</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 11</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 12</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 13</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 14</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 15</span> | ||
</mat-list-item> | ||
|
||
<mat-divider></mat-divider> | ||
|
||
<mat-list-item> | ||
<span>Sidenav Item 16</span> | ||
</mat-list-item> | ||
|
||
</mat-list> | ||
</div> | ||
</mat-sidenav> | ||
|
||
|
||
<div class="wrapper"> | ||
<div class="header" fxLayout="row" fxLayoutAlign="start center"></div> | ||
<div class="card"> | ||
<div class="toolbar" fxLayout="row" fxLayoutAlign="start center"> | ||
<button mat-icon-button (click)="sidenav.toggle()"> | ||
<mat-icon>menu</mat-icon> | ||
</button> | ||
</div> | ||
<div class="content"> | ||
<app-demo-content></app-demo-content> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</mat-sidenav-container> | ||
|
||
|
||
</div> |
Oops, something went wrong.