Skip to content

Commit f884a59

Browse files
committed
feat: enhance FeatureGridCard to support links in features and update RLC overview
1 parent 994f2a8 commit f884a59

File tree

2 files changed

+65
-9
lines changed

2 files changed

+65
-9
lines changed

src/components/FeatureGridCard.vue

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@
66
</div>
77
<ul class="space-y-2 text-sm text-gray-700 dark:text-gray-300">
88
<li
9-
v-for="feature in features"
10-
:key="feature"
9+
v-for="feature in processedFeatures"
10+
:key="feature.key"
1111
class="flex items-start gap-2"
1212
>
1313
<span :class="bulletClasses">•</span>
14-
<span>{{ feature }}</span>
14+
<span v-if="feature.link">
15+
<a
16+
:href="feature.link"
17+
target="_blank"
18+
rel="noopener noreferrer"
19+
class="text-blue-600 underline transition-colors hover:text-blue-800 hover:no-underline dark:text-blue-400 dark:hover:text-blue-300"
20+
>
21+
{{ feature.text }}
22+
</a>
23+
</span>
24+
<span v-else>{{ feature.text }}</span>
1525
</li>
1626
</ul>
1727
</div>
@@ -20,10 +30,15 @@
2030
<script setup lang="ts">
2131
import { computed } from 'vue';
2232
33+
interface FeatureItem {
34+
text: string;
35+
link?: string;
36+
}
37+
2338
interface Props {
2439
title: string;
2540
icon: string;
26-
features: string[];
41+
features: (string | FeatureItem)[];
2742
color?:
2843
| 'blue'
2944
| 'purple'
@@ -42,6 +57,16 @@ const props = withDefaults(defineProps<Props>(), {
4257
size: 'md',
4358
});
4459
60+
const processedFeatures = computed(() => {
61+
return props.features.map((feature, index) => {
62+
if (typeof feature === 'string') {
63+
return { key: index, text: feature };
64+
} else {
65+
return { key: index, text: feature.text, link: feature.link };
66+
}
67+
});
68+
});
69+
4570
const colorClasses = {
4671
blue: {
4772
card: 'bg-gradient-to-br from-blue-50 to-blue-100 dark:from-blue-900/20 dark:to-blue-800/20 border-blue-200 dark:border-blue-700',

src/overview/rlc.md

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ RLC is available on multiple blockchain networks to serve different use cases:
101101
color="blue"
102102
:features="[
103103
'Layer 2 scaling solution',
104+
'DeFi integrations available',
104105
'Reduced transaction costs',
105106
'Ethereum ecosystem access',
106-
'Growing DeFi opportunities'
107107
]"
108108
/>
109109
</div>
@@ -114,13 +114,27 @@ You can acquire RLC tokens through several methods:
114114

115115
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 my-8">
116116
<FeatureGridCard
117-
title="Exchanges"
117+
title="Centralized Exchanges"
118118
icon="🏪"
119119
color="indigo"
120120
:features="[
121-
'Centralized exchanges (CEX)',
122-
'Decentralized exchanges (DEX)',
123-
'High liquidity markets'
121+
{ text: 'Binance: RLC/BTC, RLC/USDT', link: 'https://www.binance.com/en/trade/RLC_BTC' },
122+
{ text: 'Coinbase: RLC/USD', link: 'https://www.coinbase.com/price/rlc' },
123+
{ text: 'Kraken: RLC/USD', link: 'https://pro.kraken.com/app/trade/rlc-usd' },
124+
{ text: 'MEXC: RLC/USDT', link: 'https://www.mexc.com/exchange/RLC_USDT' },
125+
{ text: 'BitGet: RLC/USDT', link: 'https://www.bitget.com/spot/RLCUSDT' },
126+
'...'
127+
]"
128+
/>
129+
130+
<FeatureGridCard
131+
title="Decentralized Exchanges"
132+
icon="🌊"
133+
color="purple"
134+
:features="[
135+
{ text: 'ETH: RLC/ETH on Uniswap', link: 'https://app.uniswap.org/explore/pools/ethereum/0x56Ea002B411FD5887E55329852D5777EcB170713' },
136+
'ARB: RLC/ETH (coming soon)',
137+
'High liquidity DEX trading'
124138
]"
125139
/>
126140

@@ -146,6 +160,23 @@ You can acquire RLC tokens through several methods:
146160
/>
147161
</div>
148162

163+
### 🏪 Centralized Exchanges
164+
165+
- **Binance**: [RLC/BTC](https://www.binance.com/en/trade/RLC_BTC),
166+
[RLC/USDT](https://www.binance.com/en/trade/RLC_USDT)
167+
- **Coinbase**: [RLC/USD](https://www.coinbase.com/price/rlc)
168+
- **Kraken**: [RLC/USD](https://www.kraken.com/prices/rlc)
169+
- **MEXC**: [RLC/USDT](https://www.mexc.com/exchange/RLC_USDT)
170+
- **BitGet**: [RLC/USDT](https://www.bitget.com/spot/RLCUSDT)
171+
- And many others...
172+
173+
### 🌊 Decentralized Exchanges
174+
175+
- **Ethereum**:
176+
[RLC/ETH on Uniswap](https://app.uniswap.org/explore/pools/ethereum/0x56Ea002B411FD5887E55329852D5777EcB170713)
177+
- **Arbitrum**: RLC/ETH (coming soon)
178+
- **Other DEX**: High liquidity trading available
179+
149180
## 🚀 Ready to get started?
150181

151182
Ready to dive into the iExec ecosystem? Here are the next steps:

0 commit comments

Comments
 (0)