2022-11-26 06:06:18 +01:00
|
|
|
<template>
|
|
|
|
<div class="bg-bg rounded-md shadow-lg border border-white border-opacity-5 p-4 mb-8">
|
|
|
|
<div class="flex items-center mb-2">
|
|
|
|
<h1 class="text-xl">{{ headerText }}</h1>
|
|
|
|
|
2023-10-28 20:27:53 +02:00
|
|
|
<slot name="header-items"></slot>
|
2022-11-26 06:06:18 +01:00
|
|
|
</div>
|
|
|
|
|
2022-11-26 18:08:09 +01:00
|
|
|
<p v-if="description" id="settings-description" class="mb-6 text-gray-200" v-html="description" />
|
2022-11-26 06:06:18 +01:00
|
|
|
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
headerText: String,
|
|
|
|
description: String,
|
2023-10-28 20:27:53 +02:00
|
|
|
note: String
|
2022-11-26 06:06:18 +01:00
|
|
|
},
|
2023-10-28 20:27:53 +02:00
|
|
|
methods: {}
|
2022-11-26 06:06:18 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
2022-11-26 18:08:09 +01:00
|
|
|
#settings-description a {
|
2022-11-26 06:06:18 +01:00
|
|
|
color: rgb(96 165 250);
|
|
|
|
}
|
2022-11-26 18:08:09 +01:00
|
|
|
#settings-description a:hover {
|
2022-11-26 06:06:18 +01:00
|
|
|
color: rgb(147 197 253);
|
|
|
|
text-decoration-line: underline;
|
|
|
|
}
|
2022-11-26 18:08:09 +01:00
|
|
|
#settings-description code {
|
2022-11-26 06:06:18 +01:00
|
|
|
font-size: 0.875rem;
|
|
|
|
border-radius: 6px;
|
|
|
|
background-color: rgb(82, 82, 82);
|
|
|
|
color: white;
|
|
|
|
padding: 2px 4px;
|
|
|
|
}
|
|
|
|
</style>
|