Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .gitignore
Binary file not shown.
1 change: 1 addition & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ pytest_cache/
build/
dist/
*.egg-info/

8 changes: 0 additions & 8 deletions backend/music/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions backend/streamify_api/.gitignore

This file was deleted.

4 changes: 4 additions & 0 deletions backend/streamify_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from pathlib import Path
import os

from dotenv import load_dotenv
load_dotenv()
import dj_database_url
Expand All @@ -26,6 +27,9 @@
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ["DJANGO_SECRET_KEY"]




# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ["DEBUG"]

Expand Down
8 changes: 4 additions & 4 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

113 changes: 70 additions & 43 deletions frontend/src/components/Miniplayer.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* === Base (Desktop / Tablet) === */
.mini-player {
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -69,8 +70,9 @@
gap: 0.8rem;
}

.mini-like {
background: #3a2323; /* dark brown */
.mini-like,
.mini-play {
background: #3a2323;
border: none;
color: white;
cursor: pointer;
Expand All @@ -86,57 +88,83 @@
padding: 0;
}

.mini-like svg {
display: block;
margin: auto;
.mini-like:active,
.mini-play:active {
background: #4a2f2f;
}

.mini-like svg path {
fill: none;
stroke: #fff;
stroke-width: 2.2;
transition: fill 0.2s, stroke 0.2s;
/* === Tablet view (below 700px) === */
@media (max-width: 700px) {
.mini-player {
bottom: 64px; /* Above navbar */
z-index: 1003;
}
}

.mini-like.liked svg path {
fill: #fff !important;
stroke: #fff !important;
}
/* === Mobile view (below 480px) === */
@media (max-width: 400px) {
.mini-player {
flex-direction: row;
height: auto;
justify-content: space-between;
padding: 0.6rem 0.8rem;
border-radius: 0;
bottom: 56px; /* slightly adjusted for smaller navbars */
}

.mini-like:active {
background: #4a2f2f;
}
.mini-meta {
gap: 0.5rem;
}

.mini-play {
background: #3a2323; /* dark brown */
border: none;
color: white;
cursor: pointer;
font-size: 1rem;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
box-shadow: 0 2px 8px rgba(0,0,0,0.10);
padding: 0;
}
.mini-cover {
width: 30px;
height: 30px;
}

.mini-play svg {
display: block;
margin: auto;
}
.mini-title {
font-size: 0.8rem;
}

.mini-play:active {
background: #4a2f2f;
.mini-artist {
font-size: 0.7rem;
}

.mini-controls {
gap: 0.5rem;
}

.mini-like,
.mini-play {
width: 34px;
height: 34px;
font-size: 0.9rem;
}

.mini-text {
max-width: 100px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}

@media (max-width: 700px) {
/* === Very small devices (below 360px) === */
@media (max-width: 360px) {
.mini-player {
bottom: 64px; /* Place above navbar (navbar height is 64px) */
z-index: 1003;
padding: 0.5rem 0.6rem;
}

.mini-title {
font-size: 0.75rem;
}

.mini-artist {
display: none; /* hide artist text to save space */
}

.mini-cover {
width: 36px;
height: 36px;
}
}
.volume-container {
Expand Down Expand Up @@ -196,4 +224,3 @@
border-radius: 2px;
background: transparent;
}