mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-31 01:25:39 -05:00
Switch new display to Vue
This commit is contained in:
23
WebDisplay/src/components/DashboardItem.vue
Normal file
23
WebDisplay/src/components/DashboardItem.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
defineProps(['title']);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="bg-primary dashboard-item-header">
|
||||
{{ title }}
|
||||
</div>
|
||||
<div class="dashboard-item-content">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.dashboard-item-header {
|
||||
padding: 2px 10px;
|
||||
}
|
||||
|
||||
.dashboard-item-content {
|
||||
background-color: white;
|
||||
border: 1px solid lightgray;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user