1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

more asset tile styling

This commit is contained in:
Matthias Kretschmann 2019-02-15 14:43:15 +01:00
parent 0a5289be20
commit 8a707eaba5
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 10 additions and 3 deletions

View File

@ -34,4 +34,5 @@
padding-top: $spacer / 2;
margin-top: $spacer / 2;
font-size: $font-size-small;
color: $brand-grey-light;
}

View File

@ -4,15 +4,20 @@ import styles from './Asset.module.scss'
const AssetLink = ({ asset }: { asset: any }) => {
const { metadata } = asset.findServiceByType('Metadata')
const { base } = metadata
return (
<article className={styles.asset}>
<Link to={`/asset/${asset.id}`}>
<h1>{metadata.base.name}</h1>
<p>{metadata.base.description.substring(0, 90)}</p>
<h1>{base.name}</h1>
<p>{base.description.substring(0, 90)}</p>
<footer className={styles.assetFooter}>
<div>{metadata.base.category}</div>
{base.categories ? (
<div>{base.category}</div>
) : (
<div>Fake Category</div>
)}
</footer>
</Link>
</article>

View File

@ -14,6 +14,7 @@
.metaPrimaryData {
font-size: $font-size-small;
color: $brand-grey-light;
> * {
display: block;