82 lines
1.5 KiB
Vue
82 lines
1.5 KiB
Vue
<template>
|
|
<header class="aksrt-page-header">
|
|
<div class="aksrt-page-header__main">
|
|
<h2 class="aksrt-page-header__title">{{ title }}</h2>
|
|
<p v-if="desc" class="aksrt-page-header__desc">
|
|
<slot name="desc">{{ desc }}</slot>
|
|
</p>
|
|
<div v-else-if="$slots.desc" class="aksrt-page-header__desc">
|
|
<slot name="desc" />
|
|
</div>
|
|
</div>
|
|
<div v-if="$slots.actions" class="aksrt-page-header__actions">
|
|
<slot name="actions" />
|
|
</div>
|
|
</header>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
title: { type: String, required: true },
|
|
desc: { type: String, default: '' },
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.aksrt-page-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.aksrt-page-header__main {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.aksrt-page-header__title {
|
|
margin: 0 0 6px;
|
|
color: #1a1a2e;
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.aksrt-page-header__desc {
|
|
margin: 0;
|
|
color: #7a7f8a;
|
|
font-size: 13px;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
.aksrt-page-header__actions {
|
|
flex: 0 0 auto;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.aksrt-page-header {
|
|
margin-bottom: 14px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.aksrt-page-header__title {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.aksrt-page-header__desc {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.aksrt-page-header__actions {
|
|
width: 100%;
|
|
}
|
|
}
|
|
</style>
|