2023-05-07 01:39:44 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
$defineProps<{
|
|
|
|
title?: string
|
|
|
|
topic?: string
|
|
|
|
description?: string
|
|
|
|
link?: {
|
|
|
|
href: string
|
|
|
|
name: string
|
|
|
|
}
|
|
|
|
textColor?: 'white' | 'black'
|
|
|
|
}>()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="text-center">
|
|
|
|
<p v-if="title" class="text-title" :class="`text-${textColor}`" drop-shadow>
|
|
|
|
{{ title }}
|
|
|
|
</p>
|
|
|
|
<h2 v-if="topic" class="text-h2" :class="`text-${textColor}`" drop-shadow>
|
|
|
|
{{ topic }}
|
|
|
|
</h2>
|
|
|
|
<p v-if="description" :class="`text-${textColor}`" text-h6 pb-5 drop-shadow>
|
|
|
|
{{
|
|
|
|
description
|
|
|
|
}}
|
|
|
|
</p>
|
|
|
|
<NuxtLink v-if="link" :href="link?.href">
|
2023-05-16 21:18:46 +08:00
|
|
|
<ABtn variant="light" class="group" color="white" icon=" i-solar-arrow-right-linear transition-all group-hover:px-4">
|
2023-05-07 01:39:44 +08:00
|
|
|
{{ link?.name }}
|
|
|
|
</ABtn>
|
|
|
|
</NuxtLink>
|
|
|
|
</div>
|
|
|
|
</template>
|