Issue #533 - Lighter version of the show page #654

Merged
saniaio merged 50 commits from master into master 2018-11-12 18:40:49 +01:00
saniaio commented 2018-10-24 00:34:11 +02:00 (Migrated from github.com)

New designs for the show page that allows the metadata and description to be tucked away. New layout means the published item takes up much more space, with all of the details stowed away underneath.
533_speech_revamp

New designs for the show page that allows the metadata and description to be tucked away. New layout means the published item takes up much more space, with all of the details stowed away underneath. ![533_speech_revamp](https://user-images.githubusercontent.com/38168355/47394738-e328f080-d71b-11e8-9145-896de913547d.png)
skhameneh (Migrated from github.com) reviewed 2018-10-25 03:05:33 +02:00
skhameneh (Migrated from github.com) left a comment

Looks good so far, I'll need to test tomorrow, mostly minor comments, thanks!

Looks good so far, I'll need to test tomorrow, mostly minor comments, thanks!
@ -1,22 +1,184 @@
.asset-display {
background: #F6F6F6;
skhameneh (Migrated from github.com) commented 2018-10-25 02:52:34 +02:00

Use rgba(169, 173, 186, 0.2) as a SASS variable

Use ```rgba(169, 173, 186, 0.2)``` as a SASS variable
@ -6,0 +10,4 @@
&:after {
background: transparent;
bottom: 0;
box-shadow: inset 0 1px 2px 2px $shadow-color;
skhameneh (Migrated from github.com) commented 2018-10-25 02:49:46 +02:00

line break before

line break before
@ -6,0 +14,4 @@
content: '';
height: 1px;
left: 0;
position: absolute;
skhameneh (Migrated from github.com) commented 2018-10-25 02:50:13 +02:00

please order new style attributes alphabetically

please order new style attributes alphabetically
@ -22,0 +76,4 @@
z-index: 100;
}
&:after {
skhameneh (Migrated from github.com) commented 2018-10-25 02:51:11 +02:00

add line breaks before all selectors please

add line breaks before all selectors please
@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="14px" height="8px" viewBox="0 0 14 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 52.2 (67145) - http://www.bohemiancoding.com/sketch -->
<title>chevron-down</title>
skhameneh (Migrated from github.com) commented 2018-10-25 02:58:53 +02:00
Please remove extraneous code, you might want to check: https://medium.com/sketch-app-sources/the-best-way-to-export-an-svg-from-sketch-dd8c66bb6ef2
skhameneh (Migrated from github.com) commented 2018-10-25 02:59:58 +02:00

Fix indentation, we use 2 spaces for an indent.
Most editors should be able to autocorrect this for you

Fix indentation, we use 2 spaces for an indent. Most editors should be able to autocorrect this for you
@ -0,0 +19,4 @@
state,
} = this;
return (
skhameneh (Migrated from github.com) commented 2018-10-25 03:02:59 +02:00

you can use this before your return to clear up your references, it also has faster faster lookup when they're local vars:

let {
  props,
  state
} = this;
you can use this before your ```return``` to clear up your references, it also has faster faster lookup when they're local vars: ``` let { props, state } = this; ```
skhameneh (Migrated from github.com) commented 2018-10-25 03:04:20 +02:00

Remove

Remove
@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
skhameneh (Migrated from github.com) commented 2018-10-25 03:04:46 +02:00

Clean up, see the other comment on SVG files

Clean up, see the other comment on SVG files
minesh93 (Migrated from github.com) reviewed 2018-10-25 21:18:15 +02:00
@ -0,0 +19,4 @@
state,
} = this;
return (
minesh93 (Migrated from github.com) commented 2018-10-25 21:18:15 +02:00

Hi,
Could you elaborate on this?
I've just implemented this but this is throwing an es-lint warning as its stating that those variables are unused?

Hi, Could you elaborate on this? I've just implemented this but this is throwing an es-lint warning as its stating that those variables are unused?
skhameneh (Migrated from github.com) reviewed 2018-10-26 17:15:19 +02:00
@ -0,0 +19,4 @@
state,
} = this;
return (
skhameneh (Migrated from github.com) commented 2018-10-26 17:15:19 +02:00
  render () {
    let {
      props,
      state,
    } = this;

    return (
      <div className={'vertical-split'}>
        <div className='visible-content' data-name={props.name}>
          {props.top}
          <button className='collapse-button' onClick={this.collapse}>
            {state.closed ? <Icon.PlusCircle className='plus-icon' />  : <Icon.MinusCircle /> }
          </button>
        </div>
        <div className='collapse-content' data-name={props.name}>
          {props.bottom}
        </div>
      </div>
    );
  }
``` render () { let { props, state, } = this; return ( <div className={'vertical-split'}> <div className='visible-content' data-name={props.name}> {props.top} <button className='collapse-button' onClick={this.collapse}> {state.closed ? <Icon.PlusCircle className='plus-icon' /> : <Icon.MinusCircle /> } </button> </div> <div className='collapse-content' data-name={props.name}> {props.bottom} </div> </div> ); } ```
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/spee.ch#654
No description provided.