|
| 1 | +<template> |
| 2 | + <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 }" |
| 5 | + > |
| 6 | + <!-- Left Column - Content --> |
| 7 | + <section class="flex flex-col items-start gap-2"> |
| 8 | + <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" |
| 13 | + > |
| 14 | + <template v-if="announcement.icon"> |
| 15 | + <SmartIcon :name="announcement.icon" :size="16" /> |
| 16 | + <UiSeparator class="mx-2 h-4" orientation="vertical" /> |
| 17 | + </template> |
| 18 | + <span class="underline-offset-4 hover:underline">{{ announcement.title }}</span> |
| 19 | + <Icon name="lucide:arrow-right" class="ml-1 size-4" /> |
| 20 | + </NuxtLinkLocale> |
| 21 | + |
| 22 | + <h1 class="text-3xl font-bold leading-tight tracking-tighter md:text-4xl lg:leading-[1.1]"> |
| 23 | + <ContentSlot :use="$slots.title" unwrap="p" /> |
| 24 | + </h1> |
| 25 | + <h2>Documentation for Comfort ERP plugins</h2> |
| 26 | + <p class="text-foreground max-w-2xl text-lg font-light"> |
| 27 | + <ContentSlot :use="$slots.subtitle" unwrap="p" /> |
| 28 | + </p> |
| 29 | + |
| 30 | + <div class="flex w-full items-center justify-start gap-2 py-2"> |
| 31 | + <NuxtLinkLocale |
| 32 | + v-for="(action, i) in actions" |
| 33 | + :key="i" |
| 34 | + :to="action.to" |
| 35 | + :target="action.target" |
| 36 | + > |
| 37 | + <UiButton :variant="action.variant" size="sm"> |
| 38 | + <SmartIcon v-if="action.leftIcon" :name="action.leftIcon" class="mr-1" /> |
| 39 | + {{ action.name }} |
| 40 | + <SmartIcon v-if="action.rightIcon" :name="action.rightIcon" class="ml-1" /> |
| 41 | + </UiButton> |
| 42 | + </NuxtLinkLocale> |
| 43 | + </div> |
| 44 | + </section> |
| 45 | + |
| 46 | + <!-- Right Column - Logo --> |
| 47 | + <div class="flex items-center justify-center order-first md:order-last"> |
| 48 | + <div class="flex flex-col items-center gap-4"> |
| 49 | + <div class="flex items-center justify-center rounded-2xl bg-muted/20"> |
| 50 | + <img |
| 51 | + :src="logo?.light" |
| 52 | + :alt="logo?.alt" |
| 53 | + class="h-80 w-80 object-contain dark:hidden" |
| 54 | + /> |
| 55 | + <img |
| 56 | + :src="logo?.dark || logo?.light" |
| 57 | + :alt="logo?.alt" |
| 58 | + class="hidden h-80 w-80 object-contain dark:block" |
| 59 | + /> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | +</template> |
| 65 | + |
| 66 | +<script setup lang="ts"> |
| 67 | +defineProps<{ |
| 68 | + announcement?: { |
| 69 | + to?: string; |
| 70 | + target?: Target; |
| 71 | + icon?: string; |
| 72 | + title: string; |
| 73 | + }; |
| 74 | + actions?: [{ |
| 75 | + name: string; |
| 76 | + leftIcon?: string; |
| 77 | + rightIcon?: string; |
| 78 | + variant?: 'default' | 'link' | 'destructive' | 'outline' | 'secondary' | 'ghost'; |
| 79 | + to: string; |
| 80 | + target?: Target; |
| 81 | + }]; |
| 82 | + logo?: { |
| 83 | + light?: string; |
| 84 | + dark?: string; |
| 85 | + alt?: string; |
| 86 | + }; |
| 87 | + mobileRight?: 'top' | 'bottom'; |
| 88 | +}>(); |
| 89 | +defineSlots(); |
| 90 | +</script> |
0 commit comments