Skip to content

Commit 0cd3613

Browse files
authored
Merge branch 'main' into fix/comark-content-0.4
2 parents c4fb7c5 + a0e89e1 commit 0cd3613

2 files changed

Lines changed: 37 additions & 27 deletions

File tree

app/components/AppFooter.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const credits = computed(
77
)
88
99
const links = computed(() => [
10-
{
11-
icon: 'i-lucide-palette',
10+
{
11+
icon: 'i-lucide-shapes',
1212
to: '/logos',
1313
'aria-label': 'Brand assets',
1414
},

app/components/AppHeaderLogo.vue

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,43 @@
11
<script setup lang="ts">
22
// Falls back in order: a layer mark, configured images, then the site name as text.
33
const { header } = useAppConfig()
4+
5+
const logoContextMenuItems = [
6+
[{
7+
label: 'Browse logos',
8+
icon: 'i-lucide-shapes',
9+
to: '/logos',
10+
}]
11+
]
412
</script>
513

614
<template>
7-
<LogoMark
8-
v-if="header?.logo?.mark"
9-
:name="header.logo.mark"
10-
class="text-black dark:text-white"
11-
/>
12-
<template v-else-if="header?.logo?.light || header?.logo?.dark">
13-
<img
14-
v-if="header.logo.light"
15-
:src="header.logo.light"
16-
:alt="header.logo.alt || header.title"
17-
class="h-6 w-auto"
18-
:class="{ 'dark:hidden': header.logo.dark }"
19-
>
20-
<img
21-
v-if="header.logo.dark"
22-
:src="header.logo.dark"
23-
:alt="header.logo.alt || header.title"
24-
class="h-6 w-auto hidden dark:block"
15+
<UContextMenu :items="logoContextMenuItems">
16+
<LogoMark
17+
v-if="header?.logo?.mark"
18+
:name="header.logo.mark"
19+
class="text-black dark:text-white"
20+
/>
21+
<template v-else-if="header?.logo?.light || header?.logo?.dark">
22+
<img
23+
v-if="header.logo.light"
24+
:src="header.logo.light"
25+
:alt="header.logo.alt || header.title"
26+
class="h-6 w-auto"
27+
:class="{ 'dark:hidden': header.logo.dark }"
28+
>
29+
<img
30+
v-if="header.logo.dark"
31+
:src="header.logo.dark"
32+
:alt="header.logo.alt || header.title"
33+
class="h-6 w-auto hidden dark:block"
34+
>
35+
</template>
36+
<span
37+
v-else
38+
class="text-lg font-semibold text-highlighted"
2539
>
26-
</template>
27-
<span
28-
v-else
29-
class="text-lg font-semibold text-highlighted"
30-
>
31-
{{ header?.title }}
32-
</span>
40+
{{ header?.title }}
41+
</span>
42+
</UContextMenu>
3343
</template>

0 commit comments

Comments
 (0)