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:
parent
0a5289be20
commit
8a707eaba5
@ -34,4 +34,5 @@
|
||||
padding-top: $spacer / 2;
|
||||
margin-top: $spacer / 2;
|
||||
font-size: $font-size-small;
|
||||
color: $brand-grey-light;
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -14,6 +14,7 @@
|
||||
|
||||
.metaPrimaryData {
|
||||
font-size: $font-size-small;
|
||||
color: $brand-grey-light;
|
||||
|
||||
> * {
|
||||
display: block;
|
||||
|
Loading…
Reference in New Issue
Block a user