Navigation Menu

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

Commit

Permalink
merging angular, adding .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nfriedly committed Aug 26, 2015
2 parents 1897f82 + 9643317 commit d5ff707
Show file tree
Hide file tree
Showing 27 changed files with 170 additions and 119 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
@@ -0,0 +1,7 @@
# http://editorconfig.org/
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
charset = utf-8
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,3 +6,4 @@ bower_components/
dist/
.DS_Store
.env
*.log
3 changes: 0 additions & 3 deletions app.js
Expand Up @@ -56,6 +56,3 @@ app.get('/news/:id', function(req, res) {
var server = app.listen(config.port, function() {
console.log("%s v%s listening on port %s", packageJson.name, packageJson.version, server.address().port);
});



11 changes: 6 additions & 5 deletions bower.json
Expand Up @@ -2,16 +2,17 @@
"name": "company-insights",
"version": "0.0.0",
"dependencies": {
"angular": "~1.4.0",
"angular-animate": "~1.4.0",
"angular-chart.js": "~0.7.6",
"angular-cookies": "~1.4.0",
"angular-touch": "~1.4.0",
"angular-material": "~0.9.7",
"angular-sanitize": "~1.4.0",
"restangular": "~1.5.1",
"angular-touch": "~1.4.0",
"angular-ui-router": "~0.2.15",
"angular-material": "~0.9.7",
"animate.css": "~3.3.0",
"angular": "~1.4.0",
"angular-chart.js": "~0.7.6"
"d3": "~3.5.6",
"restangular": "~1.5.1"
},
"devDependencies": {
"angular-mocks": "~1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion config.js
Expand Up @@ -31,7 +31,7 @@ var services = {
function getBluemixServiceConfig(name) {
var services = JSON.parse(process.env.VCAP_SERVICES);
for (var service_name in services) {
if (service_name.indexOf(name) === 0 ) {
if (service_name.indexOf(name) === 0) {
var service = services[service_name][0];
return {
url: service.credentials.url,
Expand Down
27 changes: 0 additions & 27 deletions src/app/components/navbar/navbar.directive.js

This file was deleted.

5 changes: 3 additions & 2 deletions src/app/components/navbar/navbar.html
Expand Up @@ -2,9 +2,10 @@

<section flex layout="row" layout-align="left center">
<div class="row" flex="100">
<md-button ui-sref="root.home" class="md-raised">circle</md-button>
<img ui-sref="root.home" src="assets/images/watson-world.png" width="80px" />
<md-button ui-sref="root.watson" class="md-raised">IBM Watson</md-button>
<span flex-offset="33">IBM.com</span>
<div flex layout-align="end">IBM.com</div>
</div>

</section>

Expand Down
Empty file.
8 changes: 3 additions & 5 deletions src/app/home/home.controller.js
Expand Up @@ -5,11 +5,9 @@
.module('company-insights')
.controller('HomeController', HomeController);

/** @ngInject */
function HomeController($state, $log) {

this.goWatsonAPI = function(){
$state.go('root.watson');
};
/** @ngInject */
function HomeController($log) {
this.data = [10,20,30,40,60, 80, 20, 50];
}
})();
138 changes: 103 additions & 35 deletions src/app/home/home.html
@@ -1,71 +1,139 @@
<div layout="vertical" layout-fill>
<md-content layout-fill>
<navbar>



<!--
<div layout="row">
<div flex>
[flex]
</div>
<div flex>
[flex]
</div>
<div flex hide-sm>
[flex]
</div>
</div>
-->



<navbar class="md-padding" style="background: white;">


<div flex="100" >
<img ui-sref="root.home" src="assets/images/watson-world.png" width="70px" />
<img ui-sref="root.home" src="assets/images/watson.png" width="200px" />
<!--
<md-button ui-sref="root.watson" class="md-raised" ng-click="homeCtrl.goWatsonAPI()">IBM Watson</md-button>
-->
<!-- <div flex="10" layout="column" layout-align="end">IBM.com</div>
-->
</div>




</navbar>
<div class="row" flex layout="row" layout-align="center end">
<md-button ui-sref="root.home" class="md-raised">Fork on Github</md-button>
<md-button ui-sref="root.watson" class="md-raised">Join the Ecosystem</md-button>
</div>
<div>



<md-content class="md-padding hero">
<div class="container">
<div class="row" flex layout="row" layout-align="end">
<md-button ui-sref="root.home" class="md-flat">Fork on Github</md-button>
<md-button ui-sref="root.watson" class="md-flat">Join the Ecosystem</md-button>
</div>

<h1>What's your brand's personality?</h1>
<h4>Test drive the Watson APIs using the Brand Personality App.</h4>
<md-button ng-click="homeCtrl.goWatsonAPI()">Watson API</md-button>
</div>
<md-content md-theme="docs-dark" layout-padding layout="row" layout-sm="column">
<h3>Enter your Twitter handle</h3>
<md-input-container>
</div>

</md-content>


<section layout-padding>
<div class="container">
<h3 layout-padding>Enter your Twitter handle</h3>

<md-content md-theme="docs-dark" layout-padding layout-sm="column">


<div flex layout="row" class="inputs">
<md-input-container flex>
<label>@Dropbox</label>
<input ng-model="user.title">
</md-input-container>
<md-input-container>
<md-button >Analyze</md-button>
</div>

<div flex layout="row" class="inputs">
<md-input-container flex>
<label>Enter and add handle to compare</label>
<input ng-model="user.email" type="email">
</md-input-container>
<md-button >Add</md-button>
</div>

</md-content>
<section>
<h3>Personality Insights</h3>
<md-content class="md-padding">

</div>
</section>
<md-content class="md-padding">
<div class="container">
<h3 >Personality Insights</h3>

<md-content>

<md-card>

<bars-chart chart-data="homeCtrl.data"></bars-chart>


</md-card>
</md-content>
</section>
<section>
</div>
</md-content>



<md-content class="md-padding" flex layout="vertical">
<div class="container">
<h3>News</h3>
<md-content class="md-padding">
<md-card>
<img ng-src="{{imagePath}}" class="md-card-image" alt="Washed Out">

<div flex layout-md="vertical" layout-lg="vertical" >
<md-card flex="32">
<img ng-src="{{imagePath}}" class="md-card-image" >
<md-card-content>
<h2 class="md-title">Paracosm</h2>
<p>
The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...
</p>
</md-card-content>
<div class="md-actions" layout="row" layout-align="end center">
<md-button>Action 1</md-button>
<md-button>Action 2</md-button>
</div>

</md-card>
<br/>
<md-card>
<img ng-src="{{imagePath}}" class="md-card-image" alt="Washed Out">

<md-card flex="32">
<img ng-src="{{imagePath}}" class="md-card-image" >
<md-card-content>
<h2 class="md-title">Paracosm</h2>
<p>
The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...
</p>
</md-card-content>
</md-card>
<br/>
<md-card>
<img ng-src="{{imagePath}}" class="md-card-image" alt="Washed Out">

<md-card flex="32">
<img ng-src="{{imagePath}}" class="md-card-image" >
<md-card-content>
<h2 class="md-title">Paracosm</h2>
<p>
The titles of Washed Out's breakthrough song and the first single from Paracosm share the two most important words in Ernest Greene's musical language: feel it. It's a simple request, as well...
</p>
</md-card-content>
</md-card>
</md-content>
</section>
</md-content>
</div>
</div>
</md-content>

</div>
2 changes: 1 addition & 1 deletion src/app/index.module.js
Expand Up @@ -2,6 +2,6 @@
'use strict';

angular
.module('company-insights', ['ngAnimate', 'ngCookies', 'ngTouch', 'ngSanitize', 'restangular', 'ui.router', 'ngMaterial']);
.module('company-insights', ['ngAnimate', 'ngCookies', 'ngTouch', 'ngSanitize', 'restangular', 'ui.router', 'ngMaterial', 'chart.js']);

})();
6 changes: 0 additions & 6 deletions src/app/index.route.js
Expand Up @@ -19,12 +19,6 @@
templateUrl: 'app/home/home.html',
controller: 'HomeController',
controllerAs: 'homeCtrl'
})
.state('root.watson', {
url: '/watson',
templateUrl: 'app/watson/watson.html',
controller: 'WatsonController',
controllerAs: 'watsonCtrl'
});

$urlRouterProvider.otherwise('/root/home');
Expand Down
1 change: 0 additions & 1 deletion src/app/index.run.js
Expand Up @@ -8,7 +8,6 @@
/** @ngInject */
function runBlock($log) {

$log.debug('runBlock end');
}

})();
51 changes: 44 additions & 7 deletions src/app/index.scss
Expand Up @@ -8,9 +8,11 @@
@import url(http://fonts.googleapis.com/css?family=Roboto+Slab:400,700|Roboto:400,700,700italic,400italic);

html {
font-family: 'Roboto Slab', serif;
font-family: 'Helvetica Neue', sans-serif;

}


[layout=row] {
flex-direction: row;
}
Expand All @@ -31,17 +33,12 @@ html {
}

md-toolbar.md-default-theme {
background-color: black;
background-color: white;
}

section.jumbotron {
margin-bottom: 30px;
padding: 1px 30px;
background-color: #5aadbb;
text-align: center;

color: white;

h1 {
font-size: 3em;
}
Expand All @@ -61,6 +58,46 @@ section.jumbotron {
}
}

navbar {
background: white;
}

.flat {
box-shadow: none;
}

h1, h2, h3, h4, h5, h6 {
font-weight: normal;
}

.chart {
div {
box-shadow: 0;
}
}


.md-padding {
background: #eeeeee;
}

.container {
max-width: 900px;
margin: 0 auto;
}

.hero {
background: #27c4f3;
color: white;
background-image: url(../assets/images/globe.png);
background-size: 50% auto;
background-repeat: no-repeat;
background-position: top right;


}


/**
* Do not remove this comments bellow. It's the markers used by gulp-inject to inject
* all your sass files automatically
Expand Down

0 comments on commit d5ff707

Please sign in to comment.