Spaces:
Running
Running
File size: 2,388 Bytes
b33cdea a63efb1 b33cdea a63efb1 b33cdea | 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | class QuantumTaskbar extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 48px;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
padding: 0 10px;
z-index: 1000;
}
.start-button {
height: 36px;
padding: 0 12px;
background: linear-gradient(to right, #4a00e0, #8e2de2);
color: white;
border: none;
border-radius: 4px;
display: flex;
align-items: center;
cursor: pointer;
}
.tray {
margin-left: auto;
display: flex;
align-items: center;
gap: 15px;
}
.window-list {
display: flex;
align-items: center;
gap: 5px;
margin-left: 20px;
}
.window-button {
height: 36px;
padding: 0 12px;
background: rgba(255, 255, 255, 0.1);
color: white;
border: none;
border-radius: 4px;
display: flex;
align-items: center;
cursor: pointer;
}
</style>
<button class="start-button">
<slot name="start-icon"></slot>
<span>Start</span>
<span class="shortcut-hint">(Q)</span>
</button>
<div class="window-list" id="window-list"></div>
<div class="tray">
<slot name="tray-items"></slot>
</div>
`;
}
}
customElements.define('quantum-taskbar', QuantumTaskbar); |