59 lines
863 B
Vue
59 lines
863 B
Vue
<script>
|
|
|
|
export default {
|
|
name: 'Section',
|
|
props: {
|
|
title: String,
|
|
}
|
|
};
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<h2 class="section-header">
|
|
{{ title }}
|
|
<slot name="header-buttons"></slot>
|
|
</h2>
|
|
<hr class="section-divider"/>
|
|
<div class="section-body">
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
|
|
<style scoped>
|
|
|
|
.section-header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding-left: 15px;
|
|
padding-right: 15px;
|
|
margin-top: 50px;
|
|
}
|
|
|
|
.section-divider {
|
|
border-color: #d8dee4;
|
|
border-width: 1px;
|
|
margin-top: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.section-divider {
|
|
border-color: #495057;
|
|
}
|
|
}
|
|
|
|
.section-body {
|
|
position: relative;
|
|
margin-bottom: 15px;
|
|
padding: 10px 15px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
</style> |