feat(showcase): add more items

This commit is contained in:
HugoRCD
2025-04-03 12:11:27 +02:00
parent 52a97e2df7
commit 70d0de432e
3 changed files with 21 additions and 6 deletions

View File

@@ -53,14 +53,27 @@ useSeoMeta({
:alt="`Screenshot of ${item.name}`" :alt="`Screenshot of ${item.name}`"
width="311" width="311"
height="194" height="194"
class="rounded-[calc(var(--ui-radius)*1.5)] group-hover:scale-103 duration-200 transition-transform pointer-events-none" class="rounded-[calc(var(--ui-radius)*1.5)] group-hover:scale-103 duration-200 object-cover w-full transition-transform pointer-events-none"
/> />
<div class="flex items-center gap-1 px-1"> <div class="flex items-center justify-between">
<span class="font-medium text-(--ui-text-highlighted)"> <div class="flex items-center gap-1 px-1 flex-1 min-w-0">
{{ item.name }} <span class="font-medium text-(--ui-text-highlighted) truncate">
</span> {{ item.name }}
<UIcon name="i-lucide-arrow-right" class="size-4 flex-shrink-0 opacity-0 group-hover:opacity-100 transition-all duration-200 -translate-x-1 group-hover:translate-x-0 text-(--ui-text-muted)" /> </span>
<UIcon name="i-lucide-arrow-right" class="size-4 shrink-0 opacity-0 group-hover:opacity-100 transition-all duration-200 -translate-x-1 group-hover:translate-x-0 text-(--ui-text-muted)" />
</div>
<UTooltip v-if="item.github" text="Open repository" :content="{ side: 'top' }">
<UButton
:to="item.github"
icon="i-simple-icons-github"
variant="ghost"
color="neutral"
size="xs"
target="_blank"
class="opacity-0 group-hover:opacity-100 transition-all duration-200"
/>
</UTooltip>
</div> </div>
</li> </li>
</ul> </ul>

View File

@@ -69,6 +69,7 @@ export const collections = {
items: z.array(z.object({ items: z.array(z.object({
name: z.string(), name: z.string(),
url: z.string(), url: z.string(),
github: z.string().optional(),
screenshotUrl: z.string().optional(), screenshotUrl: z.string().optional(),
screenshotOptions: z.object({ screenshotOptions: z.object({
delay: z.number() delay: z.number()

View File

@@ -7,6 +7,7 @@ hero:
items: items:
- name: Shelve - name: Shelve
url: https://shelve.cloud url: https://shelve.cloud
github: https://github.com/hugorcd/shelve
- name: Uneed - name: Uneed
url: https://uneed.best url: https://uneed.best
- name: Details - name: Details