Ordered list, 멀티라인/대체 인용구 문법을 추가하고 Prose 컴포넌트(리스트/인용/이미지/카드/임베드) 기본 스타일을 Thred 톤으로 통일했다. Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
774 B
Vue
34 lines
774 B
Vue
<script setup>
|
|
defineProps({
|
|
src: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
alt: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
variant: {
|
|
type: String,
|
|
default: 'regular'
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<figure
|
|
class="prose-image my-8"
|
|
:class="{
|
|
'prose-image--wide lg:-mx-10 lg:max-w-none': variant === 'wide',
|
|
'prose-image--full lg:-mx-20 lg:max-w-none': variant === 'full'
|
|
}"
|
|
>
|
|
<div class="overflow-hidden rounded-[10px] border border-[var(--site-line)] bg-[var(--site-panel)]">
|
|
<img class="prose-image__media w-full object-cover" :src="src" :alt="alt">
|
|
</div>
|
|
<figcaption v-if="$slots.default" class="prose-image__caption mt-3 text-center text-sm text-muted">
|
|
<slot />
|
|
</figcaption>
|
|
</figure>
|
|
</template>
|