Add basic draggable item that saves to the server

This commit is contained in:
2025-07-08 17:39:09 +12:00
parent 5c35e68ab2
commit deca1b6c37
8 changed files with 376 additions and 427 deletions

20
src/static/styles.css Normal file
View File

@@ -0,0 +1,20 @@
/* Default styles for the light component */
light-component {
display: block;
width: 100px;
height: 100px;
background-color: #4caf50;
color: white;
text-align: center;
line-height: 100px;
cursor: grab;
position: absolute;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Styles when the component is being dragged */
light-component:active {
cursor: grabbing;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}