53 lines
1.0 KiB
Vue
53 lines
1.0 KiB
Vue
<template>
|
|
<div class="page-header">
|
|
<div class="page-header__main">
|
|
<h1 class="page-header__title">{{ title }}</h1>
|
|
<p v-if="description" class="page-header__desc">{{ description }}</p>
|
|
</div>
|
|
<div v-if="$slots.actions" class="page-header__actions">
|
|
<slot name="actions" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
defineProps<{
|
|
title: string
|
|
description?: string
|
|
}>()
|
|
</script>
|
|
|
|
<style scoped>
|
|
.page-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--havline-space-4);
|
|
margin-bottom: var(--havline-space-5);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.page-header__title {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
line-height: 1.3;
|
|
color: var(--havline-text);
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.page-header__desc {
|
|
margin: var(--havline-space-2) 0 0;
|
|
font-size: 14px;
|
|
color: var(--havline-text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.page-header__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--havline-space-3);
|
|
flex-wrap: wrap;
|
|
}
|
|
</style>
|