Skip to content

Commit c52b3d6

Browse files
authored
Merge pull request #4 from codeboxrcodehub/master
home action button link issue fixed
2 parents 5c79a68 + bc2c249 commit c52b3d6

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

components/content/HeroAltCustom.vue

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
<template>
22
<div
3-
class="gap-8 px-4 py-8 md:py-12 md:pb-8 lg:py-12 lg:pb-10"
4-
:class="{ 'grid md:grid-cols-2': true }"
3+
class="gap-8 px-4 py-8 md:py-12 md:pb-8 lg:py-12 lg:pb-10 grid md:grid-cols-2"
54
>
65
<!-- Left Column - Content -->
76
<section class="flex flex-col items-start gap-2">
87
<NuxtLinkLocale
9-
v-if="announcement"
10-
:to="announcement.to"
11-
:target="announcement.target"
12-
class="inline-flex items-center px-0.5 text-sm font-medium"
8+
v-if="announcement"
9+
:to="announcement.to"
10+
:target="announcement.target"
11+
class="inline-flex items-center px-0.5 text-sm font-medium"
1312
>
1413
<template v-if="announcement.icon">
1514
<SmartIcon :name="announcement.icon" :size="16" />
@@ -45,36 +44,37 @@
4544
</div> -->
4645

4746
<div class="flex w-full items-center justify-start gap-2 py-2">
48-
<UiButton
49-
v-for="(action, i) in actions"
50-
:key="i"
51-
as="a"
52-
:to="action.to"
53-
:target="action.target"
54-
:variant="action.variant"
55-
size="sm"
47+
<NuxtLinkLocale
48+
v-for="(action, i) in actions"
49+
:key="i"
50+
as="a"
51+
:to="action.to"
52+
:target="action.target"
53+
:variant="action.variant"
54+
size="sm"
5655
>
57-
<SmartIcon v-if="action.leftIcon" :name="action.leftIcon" class="mr-1" />
58-
{{ action.name }}
59-
<SmartIcon v-if="action.rightIcon" :name="action.rightIcon" class="ml-1" />
60-
</UiButton>
56+
<UiButton :variant="action.variant" size="sm">
57+
<SmartIcon v-if="action.leftIcon" :name="action.leftIcon" class="mr-1" />
58+
{{ action.name }}
59+
<SmartIcon v-if="action.rightIcon" :name="action.rightIcon" class="ml-1" />
60+
</UiButton>
61+
</NuxtLinkLocale>
6162
</div>
62-
6363
</section>
6464

6565
<!-- Right Column - Logo -->
6666
<div class="flex items-center justify-center order-first md:order-last">
6767
<div class="flex flex-col items-center gap-4">
6868
<div class="flex items-center justify-center rounded-2xl bg-muted/20">
6969
<NuxtImg
70-
:src="logo?.light"
71-
:alt="logo?.alt"
72-
class="h-80 w-80 object-contain dark:hidden"
70+
:src="logo?.light"
71+
:alt="logo?.alt"
72+
class="h-80 w-80 object-contain dark:hidden"
7373
/>
7474
<NuxtImg
75-
:src="logo?.dark || logo?.light"
76-
:alt="logo?.alt"
77-
class="hidden h-80 w-80 object-contain dark:block"
75+
:src="logo?.dark || logo?.light"
76+
:alt="logo?.alt"
77+
class="hidden h-80 w-80 object-contain dark:block"
7878
/>
7979
</div>
8080
</div>

0 commit comments

Comments
 (0)