add section vus
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* Заголовок секции. level=2 — основной заголовок раздела,
|
||||
* level=3 — подзаголовок внутри блока. Класс reveal подключает
|
||||
* анимацию появления из animacion.css.
|
||||
*/
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
text: string;
|
||||
level?: 2 | 3;
|
||||
/** Класс задержки анимации: reveal-delay-1..4 */
|
||||
delay?: string;
|
||||
}>(),
|
||||
{ level: 2, delay: "" },
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h2 v-if="props.level === 2" :class="['reveal', props.delay]">
|
||||
<slot>{{ props.text }}</slot>
|
||||
</h2>
|
||||
<h3 v-else :class="['reveal', props.delay]">
|
||||
<slot>{{ props.text }}</slot>
|
||||
</h3>
|
||||
</template>
|
||||
Reference in New Issue
Block a user