diff --git a/SetUp.md b/SetUp.md index 182a394..5903717 100644 --- a/SetUp.md +++ b/SetUp.md @@ -42,3 +42,9 @@ curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Authorizat * `SPOTIFY_SECRET_ID` * Deploy! + +## ReadMe + +You can now use the following in your readme: + +```[](https://open.spotify.com/user/USER_NAME)``` \ No newline at end of file diff --git a/api/spotify-playing.py b/api/spotify-playing.py index fd98229..e34e153 100644 --- a/api/spotify-playing.py +++ b/api/spotify-playing.py @@ -77,7 +77,7 @@ def loadImageB64(url): return b64encode(resposne.content).decode("ascii") def makeSVG(data): - barCount = 85 + barCount = 83 contentBar = "".join(["
" for i in range(barCount)]) barCSS = barGen(barCount) diff --git a/api/templates/preview.html b/api/templates/preview.html index fdb35fc..a6c12e0 100644 --- a/api/templates/preview.html +++ b/api/templates/preview.html @@ -6,17 +6,13 @@ .main { display: flex; - } - - .art { - float: left; - width: 33.33%; + width: "480px"; + height: "133px"; } .container { - background-color: #121212; - border-radius: 10px; - padding: 10px 10px + border-radius: 5px; + padding: 10px 10px 10px 0px; } .playing { @@ -32,20 +28,31 @@ color: #ff1616; } - .artist { - font-weight: bold; - font-size: 24px; - color: #fff; - text-align: left; - margin-top: 5px; + .art { + float: left; + width: 27%; + margin-left: -5px; + } + + .text { + width: 71%; } .song { + font-size: 24px; + color: #666; + text-align: center; + margin-top: 3px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .artist { font-size: 20px; color: #b3b3b3; - text-align: left; - margin-top: 15px; - margin-bottom: 15px; + text-align: center; + margin-bottom: 5px; } .logo { @@ -55,18 +62,20 @@ .cover { border-radius: 5px; - margin-top: 9px; + height: 100px; + width: 100px; } #bars { height: 30px; + bottom: 23px; margin: -20px 0 0 0px; position: absolute; width: 40px; } .bar { - background: #53b14f; + background: #1DB954cc; bottom: 1px; height: 3px; position: absolute; @@ -82,25 +91,25 @@ 100% { opacity: 1; - height: 28px; + height: 15px; } } - - +