Files
slm-design/site/.vitepress/theme/Layout.vue

30 lines
772 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup lang="ts">
import { computed } from 'vue'
import { useData } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import DocSetHeader from './DocSetHeader.vue'
const { Layout } = DefaultTheme
const { lang } = useData()
const bannerText = computed(() =>
lang.value.startsWith('ru')
? 'SLM 2.0 DRAFT / Не заменяет действующую документацию'
: 'SLM 2.0 DRAFT / Not the current stable documentation',
)
</script>
<template>
<Layout>
<template #layout-top>
<div class="draft-banner">
<span class="draft-banner__mark" aria-hidden="true" />
{{ bannerText }}
</div>
</template>
<template #sidebar-nav-before>
<DocSetHeader />
</template>
</Layout>
</template>