Skip to content

Commit 5ac4fd4

Browse files
committed
feat: rename QuickStart components to CardGrid and ProjectCard
1 parent 41fc472 commit 5ac4fd4

File tree

3 files changed

+45
-16
lines changed

3 files changed

+45
-16
lines changed
Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,38 @@
3131
</div>
3232
<!-- Actions -->
3333
<div class="mt-auto">
34+
<div v-if="githubUrl" class="grid gap-3">
35+
<Button
36+
as="a"
37+
:href="buttonHref"
38+
:disabled="buttonDisabled"
39+
:target="buttonTarget"
40+
:rel="buttonRel"
41+
class="flex-1"
42+
>
43+
<Icon :icon="buttonIcon" :height="16" />
44+
{{ buttonLabel }}
45+
</Button>
46+
<Button
47+
as="a"
48+
:href="githubUrl"
49+
target="_blank"
50+
rel="noreferrer"
51+
variant="secondary"
52+
class="flex-1"
53+
>
54+
<Icon icon="mdi:github" :height="16" />
55+
{{ githubLabel || 'View Code' }}
56+
</Button>
57+
</div>
3458
<Button
59+
v-else
60+
:as="buttonHref ? 'a' : 'button'"
61+
:href="buttonHref"
3562
:disabled="buttonDisabled"
63+
:target="buttonTarget"
64+
:rel="buttonRel"
3665
class="w-full"
37-
buttonTarget="_blank"
38-
buttonRel="noreferrer"
3966
>
4067
<Icon :icon="buttonIcon" :height="16" />
4168
{{ buttonLabel }}
@@ -63,6 +90,8 @@ interface Props {
6390
buttonTarget?: string;
6491
buttonRel?: string;
6592
buttonDisabled?: boolean;
93+
githubUrl?: string;
94+
githubLabel?: string;
6695
}
6796
6897
const props = withDefaults(defineProps<Props>(), {});

src/overview/quick-start.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ features.
99
Bootstrap your project with our framework-specific templates and start building
1010
privacy-first applications.
1111

12-
<QuickStartGrid>
13-
<QuickStartCard
12+
<CardGrid>
13+
<ProjectCard
1414
title="Next.js Starter"
1515
description="Full-featured Next.js template with iExec integration, TypeScript support, and example implementations."
1616
icon="logos:nextjs-icon"
@@ -21,7 +21,7 @@ privacy-first applications.
2121
buttonHref="https://github.com/iExecBlockchainComputing/iexec-nextjs-starter"
2222
/>
2323

24-
<QuickStartCard
24+
<ProjectCard
2525
title="React Starter"
2626
description="React application template with hooks, components, and utilities for seamless iExec integration."
2727
icon="logos:react"
@@ -32,7 +32,7 @@ privacy-first applications.
3232
buttonDisabled
3333
/>
3434

35-
<QuickStartCard
35+
<ProjectCard
3636
title="Vue.js Starter"
3737
description="Vue 3 Composition API template with TypeScript and optimized build configuration for iExec apps."
3838
icon="logos:vue"
@@ -42,15 +42,15 @@ privacy-first applications.
4242
buttonIcon="mdi:github"
4343
buttonDisabled
4444
/>
45-
</QuickStartGrid>
45+
</CardGrid>
4646

4747
## Interactive Sandboxes
4848

4949
Explore and experiment with iExec features directly in your browser. Perfect for
5050
learning and prototyping.
5151

52-
<QuickStartGrid>
53-
<QuickStartCard
52+
<CardGrid>
53+
<ProjectCard
5454
title="DataProtector Core"
5555
description="Essential data protection features including encryption, access control, and secure storage."
5656
icon="mdi:shield-lock"
@@ -61,7 +61,7 @@ learning and prototyping.
6161
buttonHref="https://codesandbox.io/p/github/iExecBlockchainComputing/dataprotector-sandbox/main"
6262
/>
6363

64-
<QuickStartCard
64+
<ProjectCard
6565
title="DataProtector Sharing"
6666
description="Advanced data sharing capabilities with granular permissions and monetization features."
6767
icon="mdi:share-variant"
@@ -72,7 +72,7 @@ learning and prototyping.
7272
buttonHref="https://codesandbox.io/p/github/iExecBlockchainComputing/dataprotector-sharing-sandbox/main"
7373
/>
7474

75-
<QuickStartCard
75+
<ProjectCard
7676
title="Web3 Telegram"
7777
description="Privacy-preserving Telegram messaging integration with user consent management."
7878
icon="mdi:message-lock"
@@ -83,7 +83,7 @@ learning and prototyping.
8383
buttonHref="https://codesandbox.io/p/github/iExecBlockchainComputing/web3-telegram-sandbox/main"
8484
/>
8585

86-
<QuickStartCard
86+
<ProjectCard
8787
title="Web3 Mail"
8888
description="Secure email communication for Web3 users without revealing personal email addresses."
8989
icon="mdi:email-lock"
@@ -94,7 +94,7 @@ learning and prototyping.
9494
buttonHref="https://codesandbox.io/p/github/iExecBlockchainComputing/web3mail-sandbox/main"
9595
/>
9696

97-
<QuickStartCard
97+
<ProjectCard
9898
title="Oracle Factory"
9999
description="Create and deploy custom oracles for bringing off-chain data into your Web3 applications."
100100
icon="mdi:database-cog"
@@ -104,7 +104,7 @@ learning and prototyping.
104104
buttonIcon="mdi:code-braces"
105105
buttonHref="https://codesandbox.io/p/github/iExecBlockchainComputing/oracle-factory-sandbox/"
106106
/>
107-
</QuickStartGrid>
107+
</CardGrid>
108108

109109
## Next Steps
110110

@@ -117,6 +117,6 @@ After exploring our starters and sandboxes:
117117
4. **Deploy**: Use our deployment guides for production-ready applications
118118

119119
<script setup>
120-
import QuickStartGrid from '../components/QuickStartGrid.vue';
121-
import QuickStartCard from '../components/QuickStartCard.vue';
120+
import CardGrid from '../components/CardGrid.vue';
121+
import ProjectCard from '../components/ProjectCard.vue';
122122
</script>

0 commit comments

Comments
 (0)