Skip to content

Commit ad3748c

Browse files
committed
fix: update UseCaseCard component to conditionally render buttons and adjust feature list formatting
1 parent 9092ac4 commit ad3748c

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

src/components/UseCaseCard.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,19 @@
2929
</div>
3030

3131
<!-- Actions -->
32-
<div class="flex flex-wrap gap-4">
33-
<Button as="a" :href="demoUrl" target="_blank" rel="noreferrer">
32+
<div v-if="githubUrl || demoUrl" class="flex flex-wrap gap-4">
33+
<Button
34+
v-if="demoUrl"
35+
as="a"
36+
:href="demoUrl"
37+
target="_blank"
38+
rel="noreferrer"
39+
>
3440
<Icon :icon="demoIcon" height="18" />
3541
Try Live Demo
3642
</Button>
3743
<Button
44+
v-if="githubUrl"
3845
as="a"
3946
:href="githubUrl"
4047
target="_blank"
@@ -60,8 +67,8 @@ interface Props {
6067
imageUrl: string;
6168
imageAlt: string;
6269
features: string[];
63-
demoUrl: string;
64-
githubUrl: string;
70+
demoUrl?: string;
71+
githubUrl?: string;
6572
demoIcon: string;
6673
}
6774

src/overview/use-cases.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ computing and decentralized data protection.
2121
description="Secure communication platform for Web3 users enabling privacy-preserving messaging through Web3Mail and Web3Telegram. Users maintain control over their data while enabling targeted communication and monetizing their engagement."
2222
imageUrl="/assets/use-cases/web3-messaging.png"
2323
imageAlt="Web3Messaging Demo Screenshot"
24-
:features="['DataProtector Core', 'Web3Mail', 'Web3Telegram', ]"
24+
:features="['DataProtector Core', 'Web3Mail', 'Web3Telegram']"
2525
demoUrl="https://demo.iex.ec/web3messaging"
2626
githubUrl="https://github.com/iExecBlockchainComputing/web3-messaging-usecase-demo"
2727
demoIcon="mdi:message-processing"
@@ -34,17 +34,15 @@ computing and decentralized data protection.
3434
imageAlt="OracleFactory Demo Screenshot"
3535
:features="['Oracle Factory']"
3636
demoUrl="https://oracle-factory.iex.ec/gallery"
37-
githubUrl=""
3837
demoIcon="mdi:database-search"
3938
/>
4039

4140
<UseCaseCard
42-
title="AI Applications"
41+
title="AI Agent"
4342
description="Showcase of artificial intelligence applications running on iExec's confidential computing infrastructure. Experience privacy-preserving AI inference, machine learning model execution, and secure data analysis with TEE protection."
4443
imageUrl="/assets/use-cases/elizaos.png"
4544
imageAlt="AI Applications Demo Screenshot"
4645
:features="['AI', 'TEE', 'Confidential Computing']"
47-
demoUrl=""
4846
githubUrl="https://github.com/iExecBlockchainComputing/iexec-elizaos-agent"
4947
demoIcon="mdi:brain"
5048
/>

0 commit comments

Comments
 (0)