add section vus

This commit is contained in:
2026-10-09 11:59:15 +10:00
parent 6ffb936c39
commit 8506fd88ae
17 changed files with 1018 additions and 150 deletions
+25
View File
@@ -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>