Icon changes + claim address placeholder + image size change.

This commit is contained in:
Minesh Mitha 2018-10-21 22:24:34 +01:00
parent ba9dc3df53
commit 58b52a4e9c
5 changed files with 86 additions and 28 deletions

View file

@ -26,8 +26,7 @@
}
.asset-title {
.asset-title {
margin-top: 40px;
font-weight: normal;
font-size: 26px;
@ -35,11 +34,11 @@
letter-spacing: 0;
text-align: center;
line-height: 32px;
}
}
.asset-image, .asset-video {
margin : 60px 0;
max-width: 100%;
margin: 60px auto;
max-width: 60vh;
max-height: 100%;
object-fit: contain;
object-position: center;
@ -93,3 +92,8 @@
}
}
.asset-footer {
padding-top: 30px;
border-top: 1px solid $grey-alt;
}

View file

@ -21,17 +21,17 @@
max-width: 236px;
letter-spacing: 0;
font-family: monospace;
border-right: 1px solid #9095a54d;
border-right: 1px solid $grey-alt;
}
.icon-wrap {
width: 30px;
height: 30px;
line-height: 30px;
line-height: 34px;
text-align: center;
svg {
stroke: $brand-color;
width: 12px;
height: 12px;
width: 16px;
height: 16px;
}
}
}

View file

@ -29,3 +29,34 @@ a, a:visited {
color: $interactive-color;
border-bottom: 2px solid $interactive-color;
}
.link--icon, .link--icon:visited {
display: flex;
.link-text {
padding-bottom: 2px;
border-bottom: 1px solid transparent;
transition: all 0.2s ease;
}
.icon-wrap {
margin-left: 5px;
padding-top: 3px;
align-items: center;
svg {
width: 16px;
height: 16px;
stroke-width: 1.2px;
stroke: $grey-alt;
transition: all 0.2s ease;
}
}
&:hover {
.link-text {
border-bottom: 1px solid $brand-color;
}
svg {
stroke: $brand-color;
}
}
}

View file

@ -7,6 +7,7 @@ import SpaceBetween from '@components/SpaceBetween';
import AssetShareButtons from '@components/AssetShareButtons';
import HorizontalSplit from '@components/HorizontalSplit';
import ClickToCopy from '@components/ClickToCopy';
import * as Icon from 'react-feather';
class AssetInfo extends React.Component {
render () {
@ -93,33 +94,55 @@ class AssetInfo extends React.Component {
<Row>
<SpaceBetween>
<a
className='link--brand'
className={'link--brand link--icon direct'}
href={`${host}/${claimId}/${name}.${fileExt}`}
>
Direct Link
<div className='link-text'>Direct Link</div>
<div className='icon-wrap'>
<Icon.ArrowRightCircle />
</div>
</a>
<a
className={'link--brand'}
className={'link--brand link--icon download'}
href={`${host}/${claimId}/${name}.${fileExt}`}
download={name}
>
Download
<div className='link-text'>Download</div>
<div className='icon-wrap'>
<Icon.ArrowDownCircle />
</div>
</a>
<a
className={'link--brand'}
className={'link--brand link--icon report'}
target='_blank'
href='https://lbry.io/dmca'
>
Report
<div className='link-text'>Report</div>
<div className='icon-wrap'>
<Icon.AlertCircle />
</div>
</a>
</SpaceBetween>
</Row>
<div className='asset-footer'>
<Row>
<p>
Hosted via the <a className={'link--brand'} href={'https://lbry.io/get'} target={'_blank'}>LBRY</a> blockchain
</p>
</Row>
<div className='claim-address'>
<RowLabeledAlt
label={
<Label value={'Claim Address'} />
}
content={
<a className={'link--brand'} href={'https://lbry.io/get'} target={'_blank'}>Place Claim Address Here</a>
}
/>
</div>
</div>
</div>
}