Skip to content

Commit e22a094

Browse files
committed
Merge branch 'dev' into main
2 parents 701373e + 2457227 commit e22a094

File tree

12 files changed

+160
-78
lines changed

12 files changed

+160
-78
lines changed
23.9 KB
Loading

src/app/api/spotify/getQueue/route.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Song } from "@/src/app/session/[id]/client";
12
import { NextResponse } from "next/server";
23

34
// REQUIRES: req contains the access token of the host of the session
@@ -32,7 +33,8 @@ export async function POST(req: Request) {
3233
songName: currentSong.name,
3334
albumCover: currentSong.album.images[0].url,
3435
artistName: currentSong.artists[0].name,
35-
placement: 1
36+
placement: 1,
37+
spotifyURL: currentSong.external_urls.spotify
3638
}
3739
queue.push(currentSongObject);
3840

@@ -43,8 +45,10 @@ export async function POST(req: Request) {
4345
songName: song.name,
4446
albumCover: song.album.images[0].url,
4547
artistName: song.artists[0].name,
46-
placement: index + 2 // Accounts for currently playing and 1-based indexing for placement value
48+
placement: index + 2, // Accounts for currently playing and 1-based indexing for placement value
49+
spotifyURL: song.external_urls.spotify
4750
}
51+
// console.log(song.external_urls.spotify)
4852
queue.push(songObject);
4953
})
5054

src/app/api/spotify/searchSongs/route.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export async function POST(req: Request) {
3737
"songId": item.id,
3838
"songName": item.name,
3939
"albumCover": item.album.images[0].url,
40-
"artistName": item.artists[0].name
40+
"artistName": item.artists[0].name,
41+
"spotifyURL": item.external_urls.spotify
4142
})
4243
});
4344
}

src/app/favicon.ico

7.15 KB
Binary file not shown.

src/app/favicon_logo.png

232 KB
Loading

src/app/globals.css

Lines changed: 63 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,15 @@ img {
214214
display: flex;
215215
transition: background-color 0.3s;
216216
}
217-
218217
.song:hover {
218+
background-color: rgb(67, 67, 67);
219+
}
220+
221+
.song:hover:not(:has(img.spotify-logo:hover)) {
219222
background-color: rgb(80, 80, 80);
220223
}
221224

225+
222226
.song:active {
223227
background-color: rgb(60, 60, 60);
224228
}
@@ -238,10 +242,61 @@ img {
238242
flex: 2;
239243
}
240244

241-
.song p {
242-
text-align: right;
245+
.song-text {
246+
display: flex;
247+
justify-content: flex-end;
248+
align-items: center;
249+
flex-direction: row;
250+
height: 100%;
251+
}
252+
253+
.song-content{
254+
padding: 10px;
255+
display: flex;
256+
justify-content: center;
257+
align-items: flex-end;
258+
flex-direction: column;
259+
260+
}
261+
262+
img.spotify-logo{
263+
width: 50px;
264+
height: 50px;
265+
border-radius: 100%;
266+
filter: brightness(70%);
267+
border: 1px black solid;
268+
margin-right: 10px;
269+
transition: all 0.2s ease-in;
270+
z-index:1000;
271+
}
272+
273+
img.spotify-logo:hover{
274+
filter: brightness(100%);
275+
border: 1px white solid;
276+
box-shadow: 2px 2px 5px black;
277+
transition: all 0.1s ease-in;
278+
}
279+
280+
.queue-header{
281+
z-index: 1;
282+
}
283+
284+
.song-text p {
285+
text-align:left;
286+
padding-right: 5px;
243287
color: rgb(166, 238, 166);
288+
display: flex;
289+
flex-direction: column;
290+
gap: 5px; /* Adjust spacing between lines */
291+
}
292+
293+
.song p {
294+
/*text-align: right;
244295
padding-right: 5px;
296+
color: rgb(166, 238, 166);
297+
display: flex;
298+
flex-direction: column;
299+
gap: 5px; */
245300
}
246301

247302
.container {
@@ -342,6 +397,7 @@ img {
342397
left: 0;
343398
width: 100%;
344399
height: 100%;
400+
color: white;
345401
background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
346402
display: flex; /* Enable flexbox for centering */
347403
justify-content: center; /* Center horizontally */
@@ -350,9 +406,10 @@ img {
350406
}
351407

352408
.end-session-overlay-content {
353-
background-color: white;
409+
background-color: rgb(50,50,50);
354410
padding: 20px 40px;
355411
border-radius: 10px;
412+
border: 5px solid #5900ff;
356413
text-align: center;
357414
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);
358415
}
@@ -365,9 +422,9 @@ img {
365422

366423
.end-session-overlay-content button {
367424
padding: 10px 20px;
368-
background-color: #007bff;
425+
background-color: black;
426+
border: 5px solid rgb(16, 161, 16);
369427
color: white;
370-
border: none;
371428
border-radius: 5px;
372429
font-size: 1rem;
373430
cursor: pointer;

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "./globals.css";
55
const inter = Inter({ subsets: ["latin"] });
66

77
export const metadata: Metadata = {
8-
title: "Create Next App",
8+
title: "The Jelly Dot Club",
99
description: "Generated by create next app",
1010
};
1111

src/app/session/EndSessionOverlay.tsx renamed to src/app/session/[id]/EndSessionOverlay.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ export function EndSessionOverlay({ onReturnToHome }: { onReturnToHome: () => vo
1010
</div>
1111
</div>
1212
);
13-
}
13+
}
14+
15+
export default EndSessionOverlay;

0 commit comments

Comments
 (0)