Skapade stöd för att kunna stil upp pluginet med en egen stilmalla

This commit is contained in:
2026-04-03 09:18:02 +02:00
parent 523c743de9
commit cdef12ef18
4 changed files with 93 additions and 15 deletions

15
blocks/block.json Normal file
View File

@@ -0,0 +1,15 @@
{
"apiVersion": 2,
"name": "spotify-recent-oauth/recent-track",
"title": "Spotify Recent Track",
"category": "widgets",
"icon": "format-audio",
"description": "Visar din senast spelade låt från Spotify.",
"supports": {
"html": false
},
"editorScript": "sro-block-js",
"style": "sro-style",
"editorStyle": "sro-editor-style",
"render": "sro_render_recent_track"
}

4
blocks/editor.css Normal file
View File

@@ -0,0 +1,4 @@
.sro-container {
border: 1px dashed #888;
padding: 10px;
}

23
blocks/style.css Normal file
View File

@@ -0,0 +1,23 @@
.sro-container {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
background: #111;
color: #fff;
border-radius: 8px;
}
.sro-album img {
width: 300px;
height: 300px;
border-radius: 4px;
}
.sro-info {
line-height: 1.2;
}
.sro-track {
font-weight: bold;
}