This repository has been archived by the owner on Feb 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(examples): add basic menu side navigation
- Loading branch information
1 parent
6043b12
commit 684b7dc
Showing
6 changed files
with
94 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,75 @@ | ||
<md-toolbar class="fixed-toolbar" | ||
md-peekaboo | ||
[break]="190" | ||
<main layout="row" flex> | ||
<nav md-sidenav="menu" class="examples-toc md-sidenav-left md-whiteframe-z2"> | ||
<h1>Components</h1> | ||
<ul> | ||
<li *ngFor="#value of components"><a [routerLink]="['Component', {id: value.id}]">{{value.name}}</a></li> | ||
</ul> | ||
</nav> | ||
<section layout="column" layout-align="start center" flex> | ||
<md-toolbar class="fixed-toolbar" | ||
md-peekaboo | ||
[break]="190" | ||
breakAction="show"> | ||
</md-toolbar> | ||
<md-toolbar class="hero"> | ||
<h1 md-peekaboo | ||
[breakMd]="72" | ||
[breakXs]="20" | ||
breakAction="hide">{{navigation?.currentTitle}}</h1> | ||
</md-toolbar> | ||
<md-toolbar class="fixed-toolbar"> | ||
<div class="md-toolbar-tools"> | ||
<button md-button | ||
class="md-hamburger md-icon-button" | ||
(click)="showMenu($event)" | ||
aria-label="Home"> | ||
<i md-icon class="md-dark">menu</i> | ||
</button> | ||
<h2 md-peekaboo | ||
[breakMd]="72" | ||
[breakXs]="20" | ||
breakAction="show"> | ||
</md-toolbar> | ||
<md-toolbar class="hero"> | ||
<h1 md-peekaboo | ||
[breakMd]="72" | ||
[breakXs]="20" | ||
breakAction="hide">{{navigation?.currentTitle}}</h1> | ||
</md-toolbar> | ||
<md-toolbar class="fixed-toolbar"> | ||
<div class="md-toolbar-tools"> | ||
<button md-button | ||
class="md-hamburger md-icon-button" | ||
[routerLink]="['Index']" | ||
aria-label="Home"> | ||
<i md-icon class="md-dark">{{navigation?.currentTitle == site ? 'menu' : 'arrow_back'}}</i> | ||
</button> | ||
<h2 md-peekaboo | ||
[breakMd]="72" | ||
[breakXs]="20" | ||
breakAction="show"> | ||
<span class="verbose-title" *ngIf="navigation?.currentTitle != site">Components <small>–</small> </span> | ||
<span>{{navigation?.currentTitle}}</span> | ||
</h2> | ||
<span flex></span> | ||
<span class="verbose-title" *ngIf="navigation?.currentTitle != site">Components <small>–</small> </span> | ||
<span>{{navigation?.currentTitle}}</span> | ||
</h2> | ||
<span flex></span> | ||
<span md-peekaboo | ||
[breakMd]="72" | ||
breakAction="show" | ||
*ngIf="version" class="md-caption">v{{version}}</span> | ||
</div> | ||
</md-toolbar> | ||
<md-toolbar class="shadow-toolbar md-whiteframe-z1" md-peekaboo [break]="210" breakAction="show"></md-toolbar> | ||
</div> | ||
</md-toolbar> | ||
<md-toolbar class="shadow-toolbar md-whiteframe-z1" md-peekaboo [break]="210" breakAction="show"></md-toolbar> | ||
|
||
<md-content class="examples" md-scroll-y layout-padding> | ||
<router-outlet></router-outlet> | ||
</md-content> | ||
|
||
|
||
<md-content class="examples" md-scroll-y layout-padding> | ||
<router-outlet></router-outlet> | ||
</md-content> | ||
<footer> | ||
<div class="container" layout="row" layout-align="center center"> | ||
<a class="previous" flex="50" *ngIf="navigation.prevLink" | ||
layout="row" layout-align="start center" | ||
[routerLink]="navigation.prevLink.routeLink"> | ||
<i md-icon>arrow_back</i> | ||
<span layout="column" show-gt-sm hide> | ||
<span class="label">Previous</span> | ||
<span class="name md-title">{{navigation.prevLink.brief}}</span> | ||
</span> | ||
|
||
</a> | ||
<a class="next" flex="50" *ngIf="navigation.nextLink" | ||
layout="row" layout-align="end center" | ||
[routerLink]="navigation.nextLink.routeLink"> | ||
<span layout="column"> | ||
<span class="label">Next</span> | ||
<div class="name md-title">{{navigation.nextLink.brief}}</div> | ||
</span> | ||
<i md-icon>arrow_forward</i> | ||
</a> | ||
</div> | ||
</footer> | ||
|
||
<footer> | ||
<div class="container" layout="row" layout-align="center center"> | ||
<a class="previous" flex="50" *ngIf="navigation.prevLink" | ||
layout="row" layout-align="start center" | ||
[routerLink]="navigation.prevLink.routeLink"> | ||
<i md-icon>arrow_back</i> | ||
<span layout="column" show-gt-sm hide> | ||
<span class="label">Previous</span> | ||
<span class="name md-title">{{navigation.prevLink.brief}}</span> | ||
</span> | ||
</section> | ||
</main> | ||
|
||
</a> | ||
<a class="next" flex="50" *ngIf="navigation.nextLink" | ||
layout="row" layout-align="end center" | ||
[routerLink]="navigation.nextLink.routeLink"> | ||
<span layout="column"> | ||
<span class="label">Next</span> | ||
<div class="name md-title">{{navigation.nextLink.brief}}</div> | ||
</span> | ||
<i md-icon>arrow_forward</i> | ||
</a> | ||
</div> | ||
</footer> |
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
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
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