From e3c115897f1d054291f9363363211e59e56a76d7 Mon Sep 17 00:00:00 2001 From: ddejongh Date: Tue, 26 May 2015 15:31:28 +0200 Subject: [PATCH] refactored edition properties --- css/main.css | 4 ++ js/components/edition.js | 83 ++++++++++++---------------------------- 2 files changed, 29 insertions(+), 58 deletions(-) diff --git a/css/main.css b/css/main.css index 1676fc84..4ecb7e62 100644 --- a/css/main.css +++ b/css/main.css @@ -70,6 +70,10 @@ margin-bottom: -0.2em; } +.ascribe-detail-property > .row-same-height > .col-xs-2 { + text-transform: uppercase; +} + /* columns of same height styles */ /* http://www.minimit.com/articles/solutions-tutorials/bootstrap-3-responsive-columns-of-same-height */ .row-full-height { diff --git a/js/components/edition.js b/js/components/edition.js index 336bacff..a0f1dd76 100644 --- a/js/components/edition.js +++ b/js/components/edition.js @@ -25,39 +25,13 @@ let Edition = React.createClass({ }); let EditionHeader = React.createClass({ - //propTypes: { - // title: React.PropTypes.string.isRequired - //}, - render() { + var title_html =
{this.props.edition.title}
; return (
-
-
-
-
TITLE:
-
-
-
{this.props.edition.title}
-
-
-
-
-
-
BY:
-
-
-
{this.props.edition.artist_name}
-
-
-
-
-
DATE:
-
-
-
{ this.props.edition.date_created.slice(0,4) }
-
-
+ + +
); @@ -65,42 +39,35 @@ let EditionHeader = React.createClass({ }); let EditionDetails = React.createClass({ - //propTypes: { - // title: React.PropTypes.string.isRequired - //}, - render() { return (
-
-
-
EDITION:
-
-
-
{ this.props.edition.edition_number } of {this.props.edition.num_editions}
-
-
-
-
-
ID:
-
-
-
{ this.props.edition.bitcoin_id }
-
-
-
-
-
OWNER:
-
-
-
{ this.props.edition.owner }
-
-
+ + +
); } }); +let EditionDetailProperty = React.createClass({ + render() { + return ( +
+
+
+
{ this.props.label }:
+
+
+
{ this.props.value }
+
+
+
+ ); + } +}); + export default Edition; \ No newline at end of file