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

View File

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

View File

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