Files
admin/www/app/components/section/layouts/LayoutQuote.vue
T

24 lines
977 B
Vue
Raw Normal View History

2026-07-31 19:02:00 +08:00
<script setup lang="ts">
import type { SectionBlock } from '~/types/site';
const props = defineProps<{ section: SectionBlock }>();
// 引言评价:正文 content 作为引用语,subtitle 作为作者/出处
2026-08-03 19:09:03 +08:00
const { content, subtitle, isDark, titleStyle, bodyStyle } = useSectionContent(props.section);
2026-07-31 19:02:00 +08:00
</script>
<template>
2026-08-05 18:36:01 +08:00
<div class="section-container py-[var(--sec-py,96px)] flex-col-center text-center max-w-800px">
2026-07-31 19:02:00 +08:00
<span class="text-6xl leading-none font-serif" :class="isDark ? 'text-primary-300' : 'text-primary'"></span>
<blockquote
2026-08-05 18:36:01 +08:00
class="rich-text mt-8px text-2xl md:text-3xl font-medium leading-relaxed"
2026-07-31 19:02:00 +08:00
:class="isDark ? 'text-white' : 'text-gray-900 dark:text-white'"
2026-08-03 19:09:03 +08:00
:style="titleStyle"
2026-07-31 19:02:00 +08:00
v-html="content"
/>
2026-08-03 19:09:03 +08:00
<p v-if="subtitle" class="mt-24px text-sm tracking-wide" :class="isDark ? 'text-gray-400' : 'text-gray-500 dark:text-gray-400'" :style="bodyStyle">
2026-07-31 19:02:00 +08:00
—— {{ subtitle }}
</p>
</div>
</template>