Make featured dapps clickable

This commit is contained in:
Andy Tudhope 2019-04-23 11:09:22 +02:00
parent c8ed9d9911
commit 1b3d820ae9
No known key found for this signature in database
GPG Key ID: 02A3DFA93BF26AD2
3 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@ const FeatureDapps = props => {
<>
<div className={styles.grid}>
{props.featured.map((dapp, index) => (
<div className={styles.dapp} key={index}>
<a className={styles.dapp} key={index} href={dapp.url}>
<ReactImageFallback
src={dapp.banner}
className={styles.banner}
@ -30,7 +30,7 @@ const FeatureDapps = props => {
</span>
</div>
</div>
</div>
</a>
))}
</div>
</>

View File

@ -22,6 +22,7 @@
display: flex;
flex-direction: column;
margin: 0 calculateRem(20) calculateRem(20) calculateRem(20);
text-decoration: none;
}
.banner {

View File

@ -9,18 +9,21 @@ const featuredDapps = [
{
name: 'CryptoKittes',
description: 'Collect and breed adorable digital cats',
url: 'https://cryptokitties.co',
banner: CryptoKittiesBanner,
icon: CryptoKittiesLogo,
},
{
name: 'Airswap',
description: 'Meet the future of trading',
url: 'https://instant.airswap.io',
banner: AirswapBanner,
icon: AirswapLogo,
},
{
name: 'Kyber',
description: 'On-chain, instant and liquid exchange and payment',
url: 'https://web3.kyber.network',
banner: KyberBanner,
icon: KyberLogo,
},