mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 03:38:54 +01:00
feat(showcase): add more items
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user