Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Angular material implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelo committed Aug 30, 2017
1 parent 1cfc527 commit e0067dc
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 612 deletions.
5 changes: 2 additions & 3 deletions app/js/insights.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ let requires = [
'ngSanitize',
'ui.gravatar',
'datePicker',
'infinite-scroll'
'infinite-scroll',
'ngMaterial'
];

if (isPortal) {
Expand Down Expand Up @@ -91,8 +92,6 @@ if (isPortal) {
angular.module('insights').config(require('./base_routes'));
}

angular.module('insights').run(require('./boot'));

// Common routes
angular.module('insights').config(require('./routes'));
angular.module('insights').config(require('./config'));
Expand Down
37 changes: 33 additions & 4 deletions app/js/states/hidden/components/components.jade
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
.components
.page-header
h1.page-title Components Library
h1.page-title Material Demo
.content-wrap(ng-cloak)
md-content
section(layout='row', layout-sm='column', layout-align='center center', layout-wrap='')
button.md-button.md-raised Click
md-content(layout='row', flex='')
md-tabs(flex='')

// --- BUTTON DEMO ---
md-tab(label='Buttons', flex='')
.row
.text-center.h3 Flat Buttons
section(layout='row', layout-sm='column', layout-align='center center', layout-wrap='')
md-button Button
md-button.md-primary(md-no-ink='') Primary (md-noink)
md-button.md-primary(ng-disabled='true') Disabled
md-button.md-warn Button
.row
.text-center.h3 Raised Buttons
section(layout='row', layout-sm='column', layout-align='center center', layout-wrap='')
md-button.md-raised Button
md-button.md-raised.md-primary Primary
md-button.md-raised.md-primary(ng-disabled='true') Disabled
md-button.md-raised.md-warn Warn

// --- DEMO ---
md-tab(label='Section 2')
md-content(layout-padding='')
md-input-container.md-block
label First Name
input(ng-model="user.firstName")

// --- DEMO ---
md-tab(label='Section 3')
md-content(layout-padding='')
div
| Section 3 Content
Loading

0 comments on commit e0067dc

Please sign in to comment.