Skip to content

Commit bb15f83

Browse files
committed
docs - hero alt revert to original
1 parent 79602b0 commit bb15f83

File tree

1 file changed

+8
-26
lines changed

1 file changed

+8
-26
lines changed

components/content/HeroAlt.vue

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<template>
22
<div
33
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 }"
4+
:class="{ 'grid md:grid-cols-3': $slots.right }"
55
>
6-
<!-- Left Column - Content -->
7-
<section class="flex flex-col items-start gap-2">
6+
<section
7+
class="flex flex-col items-start gap-2"
8+
:class="{ 'md:col-span-2': $slots.right }"
9+
>
810
<NuxtLinkLocale
911
v-if="announcement"
1012
:to="announcement.to"
@@ -23,7 +25,7 @@
2325
<ContentSlot :use="$slots.title" unwrap="p" />
2426
</h1>
2527
<p class="text-foreground max-w-2xl text-lg font-light">
26-
<ContentSlot :use="$slots.subtitle" unwrap="p" />
28+
<ContentSlot :use="$slots.description" unwrap="p" />
2729
</p>
2830

2931
<div class="flex w-full items-center justify-start gap-2 py-2">
@@ -41,23 +43,8 @@
4143
</NuxtLinkLocale>
4244
</div>
4345
</section>
44-
45-
<!-- Right Column - Logo -->
46-
<div class="flex items-center justify-center order-first md:order-last">
47-
<div class="flex flex-col items-center gap-4">
48-
<div class="flex items-center justify-center rounded-2xl bg-muted/20">
49-
<img
50-
:src="logo?.light"
51-
:alt="logo?.alt"
52-
class="h-32 w-32 object-contain dark:hidden"
53-
/>
54-
<img
55-
:src="logo?.dark || logo?.light"
56-
:alt="logo?.alt"
57-
class="hidden h-32 w-32 object-contain dark:block"
58-
/>
59-
</div>
60-
</div>
46+
<div class="mx-auto" :class="{ 'order-first md:order-last': mobileRight === 'top' }">
47+
<ContentSlot :use="$slots.right" unwrap="p" />
6148
</div>
6249
</div>
6350
</template>
@@ -78,11 +65,6 @@ defineProps<{
7865
to: string;
7966
target?: Target;
8067
}];
81-
logo?: {
82-
light?: string;
83-
dark?: string;
84-
alt?: string;
85-
};
8668
mobileRight?: 'top' | 'bottom';
8769
}>();
8870
defineSlots();

0 commit comments

Comments
 (0)