-
Notifications
You must be signed in to change notification settings - Fork 2
feat: migrate explorer pages to component #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e49dbb0
feat: enhance UseCaseCard component with dynamic labels and refactor …
Le-Caignec 5a0c238
feat: add FeatureCard and ImageViewer components, refactor iExec Expl…
Le-Caignec e7c01c7
Update src/components/FeatureCard.vue
Le-Caignec f45102f
feat: remove unused FeatureGrid and ImageGrid components
Le-Caignec 0df4603
feat: remove unused logo and fork button images
Le-Caignec ba79172
feat: add .vitepress/.temp to .gitignore
Le-Caignec 85be921
feat: refactor FeatureCard component usage and update layout in iExec…
Le-Caignec dba9701
fix: adjust margin for icon in FeatureCard component
Le-Caignec dc9054c
feat: remove link icon from ImageViewer component and update related …
Le-Caignec 94c62ed
fix: update hover effect for ImageViewer component
ErwanDecoster 1de09f1
fix: simplify ImageViewer component props and update usage in documen…
ErwanDecoster a1d7791
fix: remove fallback values for demo and GitHub labels in UseCaseCard…
Le-Caignec 8310b13
fix: update ImageViewer component to use imageUrlDark prop and adjust…
Le-Caignec 8acd0b8
fix: update Button component to correct background color for primary …
ErwanDecoster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
| **/tailwind-output.css | ||
| .vercel | ||
| **/.vitepress/cache | ||
| **/.vitepress/.temp | ||
| **/.vitepress/dist | ||
|
|
||
| **/.vscode | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <template> | ||
| <a :href="linkUrl" class="block h-full text-inherit no-underline"> | ||
| <div | ||
| class="bg-soft-bg border-border flex h-full cursor-pointer flex-col rounded-lg border p-6 transition-all duration-200 ease-in-out hover:-translate-y-0.5 hover:shadow-md" | ||
| > | ||
| <div class="mb-4 text-3xl">{{ icon }}</div> | ||
| <h3 class="text-text1 m-0 mb-2">{{ title }}</h3> | ||
| <p class="text-text2 m-0 flex-grow leading-relaxed">{{ description }}</p> | ||
| </div> | ||
| </a> | ||
| </template> | ||
|
|
||
| <script setup lang="ts"> | ||
| interface Props { | ||
| icon: string; | ||
| title: string; | ||
| description: string; | ||
| linkUrl: string; | ||
| } | ||
|
|
||
| defineProps<Props>(); | ||
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| <template> | ||
| <div :class="['my-8', { 'text-center': centered }]"> | ||
| <a :href="linkUrl" target="_blank" rel="noreferrer"> | ||
| <img | ||
| :src="imageUrl" | ||
| :alt="imageAlt" | ||
| :style="{ | ||
| width: '100%', | ||
| maxWidth: maxWidth, | ||
| borderRadius: borderRadius, | ||
| border: '1px solid var(--vp-c-border)', | ||
| boxShadow: '0 4px 12px rgba(0, 0, 0, 0.1)', | ||
| }" | ||
| class="transition-transform duration-200 ease-in-out hover:scale-[1.02]" | ||
| /> | ||
| </a> | ||
| <p v-if="caption" class="mt-4 font-medium"> | ||
| <a | ||
| :href="linkUrl" | ||
| target="_blank" | ||
| rel="noreferrer" | ||
| class="text-primary hover:text-primary2 inline-flex items-center gap-2 no-underline transition-colors duration-200" | ||
| > | ||
| <Icon :icon="linkIcon" height="16" /> | ||
| {{ caption }} | ||
| </a> | ||
| </p> | ||
| </div> | ||
| </template> | ||
|
|
||
| <script setup lang="ts"> | ||
| import { Icon } from '@iconify/vue'; | ||
|
|
||
| interface Props { | ||
| imageUrl: string; | ||
| imageAlt: string; | ||
| linkUrl: string; | ||
| caption?: string; | ||
| linkIcon?: string; | ||
| centered?: boolean; | ||
| maxWidth?: string; | ||
| borderRadius?: string; | ||
| } | ||
|
|
||
| withDefaults(defineProps<Props>(), { | ||
| linkIcon: 'mdi:external-link', | ||
| centered: true, | ||
| maxWidth: '800px', | ||
| borderRadius: '8px', | ||
| }); | ||
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.