Browse Source

Set positioning

add-license-1
novatorem 5 years ago
parent
commit
bd25f7b71d
1 changed files with 6 additions and 11 deletions
  1. +6
    -11
      api/templates/spotify.html.j2

+ 6
- 11
api/templates/spotify.html.j2 View File

@ -1,5 +1,5 @@
<svg width="320" height="{{height}}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<foreignObject width="320" height="{{height}}">
<svg width="600" height="{{height}}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<foreignObject width="600" height="{{height}}">
<div xmlns="http://www.w3.org/1999/xhtml" class="container">
<style>
div {
@ -12,7 +12,7 @@
.art {
float: left;
width: 33.33%;
width: 40%;
}
.container {
@ -62,6 +62,7 @@
#bars {
height: 30px;
bottom: 1px;
margin: -20px 0 0 0px;
position: absolute;
width: 40px;
@ -96,20 +97,14 @@
<div class="main">
<a class="art" href="{}" target="_BLANK">
<center>
<img src="data:image/png;base64, {{img}}" width="300" height="300" class="cover" />
<img src="data:image/png;base64, {{img}}" width="200" height="200" class="cover" />
</center>
</a>
<div class="text">
<div class="playing">
{{title_text}} on
<img class="logo"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAE5ElEQVRYR81WS08bVxQ+dzweY48fQCCBllJDmqpRSx6gKizSiAUbILZjA21KVEhF20hNlLb/IKu2m3QRKaqQogIRkAXhYQxFSJGCQqVKrVSBQtpCFqEQkrQhxnb8Yjxzp7oTmdjjsWd4LHIlLzz3PL57zvedexG8Qgu9Qlhg22Bqumr0+/L2VdAMOpBvtdgCoedBnhPvsw/YpcFLg9x2DrklMA19DVajkf4B0dQnAMDkSJgQedwfWot9fevcraBWYJrA1HXX5RUWWG8jhGq1Bk7aiVj8PfGfWOc754uq+aqCOXXT8bFOTw2oBVLb5zmhw9s6fj2XXU4wniFnF6LRF2qJtO6LPPQMN3s/zWafFcxuA0kCwILYO+IZO6sESBHMbrUmWwVwQjw70jLWK9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BXd2IBsW3qtakSnYixgPDbt8Zpb2cTzL3sLOH0qGOnSRP9c0FhNipvg/dN5s6KD3ds1NA2Vqjyhl5YkJq/V40gyhUvVVQRDX+R6HjcrJuuU1yh6b+pgLGSF2hdNRpAKBzAOOxgAejfu5C6hxRO4hqm7IFaLjSYKCL8Fs6HfOO1WK1haKhYCKKF3AA30++3NSSa1bTVgPthv22K7MbyeUx/gfIiuIzZiZJFQAAAABJRU5ErkJggg==" />
</div>
<div class="artist">{{artist_name}}</div>
<div class="song">{{song_name}}</div>
<div id='bars'>
<div id="bars">
{{content_bar|safe}}
</div>
</div>


Loading…
Cancel
Save