Skip to content

Commit 68ad57f

Browse files
committed
- playing around with the spotify API
1 parent 300564e commit 68ad57f

File tree

1 file changed

+59
-8
lines changed

1 file changed

+59
-8
lines changed

tools/spotify_test.html

Lines changed: 59 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,29 @@
8484
}
8585

8686
#pauseResumeButton {
87-
width: 80vmin;
88-
height: 80vmin;
89-
font-size: 40vmin;
87+
width: 60vmin;
88+
height: 60vmin;
89+
font-size: 30vmin;
9090
border: none;
91-
border-radius: 10px;
92-
background-color: #1DB954;
91+
border-radius: 50%;
92+
background: linear-gradient(145deg, #1DB954, #169c45);
9393
color: white;
9494
cursor: pointer;
95-
transition: transform 0.1s;
95+
transition: all 0.3s ease;
96+
box-shadow: 0 10px 20px rgba(29, 185, 84, 0.3);
97+
display: flex;
98+
justify-content: center;
99+
align-items: center;
100+
}
101+
102+
#pauseResumeButton:hover {
103+
transform: scale(1.02);
104+
box-shadow: 0 15px 30px rgba(29, 185, 84, 0.4);
96105
}
97106

98107
#pauseResumeButton:active {
99108
transform: scale(0.98);
109+
box-shadow: 0 5px 15px rgba(29, 185, 84, 0.2);
100110
}
101111

102112
#player {
@@ -105,6 +115,40 @@
105115
align-items: center;
106116
height: 100vh;
107117
margin: 0;
118+
flex-direction: column;
119+
}
120+
121+
.button-container {
122+
display: flex;
123+
flex-direction: column;
124+
align-items: center;
125+
gap: 2rem;
126+
}
127+
128+
.scan-button {
129+
padding: 1.5rem 3rem;
130+
font-size: 1.5rem;
131+
font-weight: 600;
132+
color: white;
133+
background: linear-gradient(145deg, #1e1e1e, #2d2d2d);
134+
border: none;
135+
border-radius: 15px;
136+
cursor: pointer;
137+
text-decoration: none;
138+
transition: all 0.3s ease;
139+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
140+
text-transform: uppercase;
141+
letter-spacing: 1px;
142+
}
143+
144+
.scan-button:hover {
145+
transform: translateY(-2px);
146+
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
147+
}
148+
149+
.scan-button:active {
150+
transform: translateY(1px);
151+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
108152
}
109153
</style>
110154
</head>
@@ -117,8 +161,15 @@
117161
</div>
118162

119163
<div id="player" class="hidden">
120-
<button id="pauseResumeButton">⏸️</button>
121-
<button id="createQRButton" class="fixed top-4 right-4 bg-green-500 text-white py-2 px-4 rounded">Create QR codes from Playlist</button>
164+
<div class="button-container">
165+
<button id="pauseResumeButton">⏸️</button>
166+
<a href="https://www.gptgames.dev/tools/spotify_qr_scanner" class="scan-button">
167+
Scan for next song
168+
</a>
169+
</div>
170+
<button id="createQRButton" class="fixed top-4 right-4 bg-green-500 text-white py-2 px-4 rounded">
171+
Create QR codes from Playlist
172+
</button>
122173
</div>
123174

124175
<div id="printArea"></div>

0 commit comments

Comments
 (0)