Skip to content

Commit e49dbb0

Browse files
committed
feat: enhance UseCaseCard component with dynamic labels and refactor blockchain explorer section
1 parent 9df705a commit e49dbb0

File tree

2 files changed

+27
-171
lines changed

2 files changed

+27
-171
lines changed

src/components/UseCaseCard.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
rel="noreferrer"
3939
>
4040
<Icon :icon="demoIcon" height="18" />
41-
Try Live Demo
41+
{{ demoLabel || 'Try Live Demo' }}
4242
</Button>
4343
<Button
4444
v-if="githubUrl"
@@ -49,7 +49,7 @@
4949
variant="secondary"
5050
>
5151
<Icon icon="mdi:github" height="18" />
52-
View Code
52+
{{ githubLabel || 'View Code' }}
5353
</Button>
5454
</div>
5555
</div>
@@ -70,6 +70,8 @@ interface Props {
7070
demoUrl?: string;
7171
githubUrl?: string;
7272
demoIcon: string;
73+
demoLabel?: string;
74+
githubLabel?: string;
7375
}
7476
7577
defineProps<Props>();

src/overview/tooling-and-explorers/blockchain-explorer.md

Lines changed: 23 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -13,58 +13,28 @@ publicly auditable.
1313

1414
## 🌐 Supported Networks
1515

16-
<div class="networks-grid">
17-
<div class="network-card">
18-
<div class="card-image">
19-
<a href="https://arbiscan.io/" target="_blank" rel="noreferrer">
20-
<img src="/assets/tooling-&-explorers/blockchain-explorer/arbitrum-explorer.png" alt="Arbitrum Explorer">
21-
</a>
22-
</div>
23-
<div class="card-content">
24-
<h3>🔷 Arbitrum Mainnet</h3>
25-
<p class="card-description">
26-
Production network for mainnet operations with verified smart contracts and comprehensive transaction tracking.
27-
</p>
28-
<div class="card-features">
29-
<span class="feature-tag">Verified Contracts</span>
30-
<span class="feature-tag">Transaction History</span>
31-
<span class="feature-tag">Token Tracking</span>
32-
<span class="feature-tag">Contract Interactions</span>
33-
</div>
34-
<div class="card-actions">
35-
<a href="https://arbiscan.io/" target="_blank" rel="noreferrer" class="explorer-link">
36-
<Icon icon="mdi:eye" height="18" />
37-
Explore on Arbiscan
38-
</a>
39-
</div>
40-
</div>
41-
</div>
42-
43-
<div class="network-card">
44-
<div class="card-image">
45-
<a href="https://blockscout-bellecour.iex.ec/" target="_blank" rel="noreferrer">
46-
<img src="/assets/tooling-&-explorers/blockchain-explorer/bellecour-explorer.png" alt="Bellecour Explorer">
47-
</a>
48-
</div>
49-
<div class="card-content">
50-
<h3>⚡ Bellecour Network</h3>
51-
<p class="card-description">
52-
iExec's dedicated sidechain for optimized performance with native integration and enhanced protocol analytics.
53-
</p>
54-
<div class="card-features">
55-
<span class="feature-tag">Verified Contracts</span>
56-
<span class="feature-tag">Transaction History</span>
57-
<span class="feature-tag">Token Tracking</span>
58-
<span class="feature-tag">Contract Interactions</span>
59-
</div>
60-
<div class="card-actions">
61-
<a href="https://blockscout-bellecour.iex.ec/" target="_blank" rel="noreferrer" class="explorer-link">
62-
<Icon icon="mdi:eye" height="18" />
63-
Explore on Bellecour Blockscout
64-
</a>
65-
</div>
66-
</div>
67-
</div>
16+
<div class="grid grid-cols-1 gap-8 my-8">
17+
<UseCaseCard
18+
title="🔷 Arbitrum Mainnet"
19+
description="Production network for mainnet operations with verified smart contracts and comprehensive transaction tracking."
20+
image-url="/assets/tooling-&-explorers/blockchain-explorer/arbitrum-explorer.png"
21+
image-alt="Arbitrum Explorer"
22+
:features="['Verified Contracts', 'Transaction History', 'Token Tracking', 'Contract Interactions']"
23+
demo-url="https://arbiscan.io/"
24+
demo-icon="mdi:eye"
25+
demo-label="Visit Arbiscan"
26+
/>
27+
28+
<UseCaseCard
29+
title="⚡ Bellecour Network"
30+
description="iExec's dedicated sidechain for optimized performance with native integration and enhanced protocol analytics."
31+
image-url="/assets/tooling-&-explorers/blockchain-explorer/bellecour-explorer.png"
32+
image-alt="Bellecour Explorer"
33+
:features="['Verified Contracts', 'Transaction History', 'Token Tracking', 'Contract Interactions']"
34+
demo-url="https://blockscout-bellecour.iex.ec/"
35+
demo-icon="mdi:eye"
36+
demo-label="Visit Blockscout"
37+
/>
6838
</div>
6939

7040
::: tip 💡 Dev Tip
@@ -74,122 +44,6 @@ deploy to **Arbitrum** for production workloads.
7444

7545
:::
7646

77-
<style scoped>
78-
.networks-grid {
79-
display: grid;
80-
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
81-
gap: 2rem;
82-
margin: 2rem 0;
83-
}
84-
85-
.network-card {
86-
background: var(--vp-c-bg-soft);
87-
border: 1px solid var(--vp-c-border);
88-
border-radius: 12px;
89-
overflow: hidden;
90-
transition: all 0.3s ease;
91-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
92-
}
93-
94-
.network-card:hover {
95-
transform: translateY(-4px);
96-
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
97-
border-color: var(--vp-c-brand-1);
98-
}
99-
100-
.card-image {
101-
position: relative;
102-
overflow: hidden;
103-
}
104-
105-
.card-image img {
106-
width: 100%;
107-
height: 200px;
108-
object-fit: cover;
109-
transition: transform 0.3s ease;
110-
}
111-
112-
.card-image:hover img {
113-
transform: scale(1.05);
114-
}
115-
116-
.card-content {
117-
padding: 1.5rem;
118-
}
119-
120-
.card-content h3 {
121-
margin: 0 0 1rem 0;
122-
color: var(--vp-c-text-1);
123-
font-size: 1.5rem;
124-
font-weight: 600;
125-
}
126-
127-
.card-description {
128-
color: var(--vp-c-text-2);
129-
line-height: 1.6;
130-
margin-bottom: 1.5rem;
131-
font-size: 0.95rem;
132-
}
133-
134-
.card-features {
135-
display: flex;
136-
flex-wrap: wrap;
137-
gap: 0.5rem;
138-
margin-bottom: 1.5rem;
139-
}
140-
141-
.feature-tag {
142-
background: var(--vp-c-brand-soft);
143-
color: var(--vp-c-brand-1);
144-
padding: 0.25rem 0.75rem;
145-
border-radius: 20px;
146-
font-size: 0.8rem;
147-
font-weight: 500;
148-
border: 1px solid var(--vp-c-brand-2);
149-
}
150-
151-
.card-actions {
152-
display: flex;
153-
gap: 1rem;
154-
flex-wrap: wrap;
155-
}
156-
157-
.explorer-link {
158-
display: inline-flex;
159-
align-items: center;
160-
gap: 0.5rem;
161-
padding: 0.6rem 1.2rem;
162-
border-radius: 8px;
163-
text-decoration: none;
164-
font-weight: 500;
165-
font-size: 0.9rem;
166-
transition: all 0.2s ease;
167-
border: 1px solid transparent;
168-
background: var(--vp-c-brand-1);
169-
color: white;
170-
}
171-
172-
.explorer-link:hover {
173-
background: var(--vp-c-brand-2);
174-
transform: translateY(-1px);
175-
}
176-
177-
@media (max-width: 768px) {
178-
.networks-grid {
179-
grid-template-columns: 1fr;
180-
gap: 1.5rem;
181-
}
182-
183-
.card-actions {
184-
flex-direction: column;
185-
}
186-
187-
.explorer-link {
188-
justify-content: center;
189-
}
190-
}
191-
</style>
192-
19347
<script setup>
194-
import { Icon } from '@iconify/vue';
48+
import UseCaseCard from '../../components/UseCaseCard.vue';
19549
</script>

0 commit comments

Comments
 (0)