diff --git a/app/scripts/app.jsx b/app/scripts/app.jsx index def184f..6b0d327 100644 --- a/app/scripts/app.jsx +++ b/app/scripts/app.jsx @@ -14,7 +14,7 @@ var App = React.createClass({ }); var Menu = React.createClass({ - mixins: [Router.Navigation, Router.State], + mixins: [Router.State], api_url: "/api/teams?org=", getInitialState: function() { @@ -65,7 +65,7 @@ var Org = React.createClass({ }); var OrgStats = React.createClass({ - mixins: [Router.Navigation, Router.State], + mixins: [Router.State], render: function(){ return (
@@ -77,11 +77,15 @@ var OrgStats = React.createClass({ }); var TeamStats = React.createClass({ - mixins: [Router.Navigation, Router.State], + mixins: [Router.State], render: function(){ return (
- +
); @@ -89,7 +93,7 @@ var TeamStats = React.createClass({ }); var UserStats = React.createClass({ - mixins: [Router.Navigation, Router.State], + mixins: [Router.State], render: function(){ return (
@@ -101,7 +105,7 @@ var UserStats = React.createClass({ }); var RepoStats = React.createClass({ - mixins: [Router.Navigation, Router.State], + mixins: [Router.State], render: function(){ return (
@@ -120,6 +124,19 @@ var NotFound = React.createClass({ } }); +var InfoBlock = React.createClass({ + render: function() { + var img =
; + return ( +
+ { this.props.image ? img : null } +

{this.props.title}

+

{this.props.text}

+
+ ) + } +}); + var routes = [ diff --git a/app/styles/app.css b/app/styles/app.css index 880a899..d30a8ea 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -35,3 +35,30 @@ li.nav { float: left; width: 50%; } + +.info-block { + width: 100%; + height: 100px; + margin-bottom: 20px; +} +.info-block .img { + float: left; + width: 100px; + height: 100px; + background-position: center; + background-size: 100% auto; + margin-right: 20px; + border-radius: 3px; +} + +.info-block h1 { + font-weight: 400; +} + +.info-block p { + max-width: 100%; + margin-right: 20px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +}