Skip to content

Commit ddff156

Browse files
authored
docs: update workers changelog image (#547)
1 parent fa86f8d commit ddff156

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

docs/app/components/AppHeader.vue

+27-6
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,38 @@ onMounted(async () => {
5959
ready.value = true
6060
})
6161
})
62+
63+
const { copy } = useClipboard()
64+
const toast = useToast()
65+
const logo = useTemplateRef('logo')
66+
const logoContextMenuItems = [
67+
[{
68+
label: 'Copy logo as SVG',
69+
icon: 'i-simple-icons-nuxtdotjs',
70+
onSelect() {
71+
if (logo.value) {
72+
copy(logo.value.$el.outerHTML)
73+
toast.add({
74+
title: 'NuxtHub logo copied as SVG',
75+
description: 'You can now paste it into your project',
76+
icon: 'i-lucide-circle-check',
77+
color: 'success'
78+
})
79+
}
80+
}
81+
}]
82+
]
6283
</script>
6384

6485
<template>
6586
<UHeader>
6687
<template #left>
67-
<div class="inline-flex items-end gap-2">
68-
<NuxtLink to="/" aria-label="NuxtHub"><HubLogo class="h-6" /></NuxtLink>
69-
<UBadge variant="subtle" size="sm" class="relative top-[2px]">
70-
beta
71-
</UBadge>
72-
</div>
88+
<UContextMenu :items="logoContextMenuItems" size="xs">
89+
<NuxtLink to="/" class="inline-flex items-end gap-2" aria-label="Back to home">
90+
<HubLogo ref="logo" class="h-6" />
91+
<UBadge label="beta" variant="subtle" size="sm" class="-mb-[2px] font-semibold text-[12px]/3" />
92+
</NuxtLink>
93+
</UContextMenu>
7394
</template>
7495

7596
<UNavigationMenu :items="links.map(({ icon, ...link }) => link)" variant="link" :ui="{ link: 'text-(--ui-text-highlighted) hover:text-(--ui-primary) data-active:text-(--ui-primary)' }" />
Loading

0 commit comments

Comments
 (0)