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;
|
padding-top: $spacer / 2;
|
||||||
margin-top: $spacer / 2;
|
margin-top: $spacer / 2;
|
||||||
font-size: $font-size-small;
|
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 AssetLink = ({ asset }: { asset: any }) => {
|
||||||
const { metadata } = asset.findServiceByType('Metadata')
|
const { metadata } = asset.findServiceByType('Metadata')
|
||||||
|
const { base } = metadata
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<article className={styles.asset}>
|
<article className={styles.asset}>
|
||||||
<Link to={`/asset/${asset.id}`}>
|
<Link to={`/asset/${asset.id}`}>
|
||||||
<h1>{metadata.base.name}</h1>
|
<h1>{base.name}</h1>
|
||||||
<p>{metadata.base.description.substring(0, 90)}</p>
|
<p>{base.description.substring(0, 90)}</p>
|
||||||
|
|
||||||
<footer className={styles.assetFooter}>
|
<footer className={styles.assetFooter}>
|
||||||
<div>{metadata.base.category}</div>
|
{base.categories ? (
|
||||||
|
<div>{base.category}</div>
|
||||||
|
) : (
|
||||||
|
<div>Fake Category</div>
|
||||||
|
)}
|
||||||
</footer>
|
</footer>
|
||||||
</Link>
|
</Link>
|
||||||
</article>
|
</article>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
.metaPrimaryData {
|
.metaPrimaryData {
|
||||||
font-size: $font-size-small;
|
font-size: $font-size-small;
|
||||||
|
color: $brand-grey-light;
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
display: block;
|
display: block;
|
||||||
|
Loading…
Reference in New Issue
Block a user