Make featured dapps clickable
This commit is contained in:
parent
c8ed9d9911
commit
1b3d820ae9
|
@ -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>
|
||||||
</>
|
</>
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue