Files
Hyperia/ui/site/components/AppWindow.js
metacryst a2f4206cf9 styling
2025-10-13 00:08:05 -05:00

24 lines
417 B
JavaScript

css(`
app-window {
width: 100vw;
height: 100vh;
background-color: var(--main);
position: fixed;
top: 0;
left: 0;
display: none;
}
`)
export default class AppWindow extends HTMLElement {
open(app) {
this.style.display = "block"
}
close() {
this.style.display = "none"
}
}
customElements.define("app-window", AppWindow)