File size: 967 Bytes
dcb9dda | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ```javascript
class BucketMasterCard extends HTMLElement {
static get observedAttributes() {
return ['title', 'icon'];
}
constructor() {
super();
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
background-color: #FFFFFF;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
border: 1px solid #E4E7EB;
overflow: hidden;
}
.card-header {
padding: 1rem 1.5rem;
border-bottom: 1px solid #E4E7EB;
display: flex;
align-items: center;
gap: 0.75rem;
}
.card-title {
font-weight: 600;
margin: 0;
color: #000000;
}
.card-body {
padding: 1.5rem;
}
.card-footer {
padding: 1rem 1.5rem;
border-top: 1px solid #E4E7EB |