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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate .gitignore file, as already defined .gitignore file under backend/.gitignore for django project specific.

Binary file not shown.
49 changes: 0 additions & 49 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,49 +0,0 @@
# Environment
.env
*.env
.env.*
!example.env # keep a template if you have one

# Virtual Environment
venv/
.env/
env/
.venv/

# Python cache and compiled files
__pycache__/
*.pyc
*.pyo
*.pyd

# Database files
*.db
*.sqlite3

# Django specific
/staticfiles/
/media/
/*.log
*.pot
*.py[cod]
local_settings.py

# IDE / Editor settings
.vscode/
.idea/
*.sublime-project
*.sublime-workspace

# Testing & coverage
.coverage
htmlcov/
*.cover
*.log
pytest_cache/
.tox/
.mypy_cache/

# Docker / Build artifacts
build/
dist/
*.egg-info/
5 changes: 4 additions & 1 deletion backend/streamify_api/settings.py
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these changes too

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 @@ -24,7 +25,9 @@
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ["DJANGO_SECRET_KEY"]
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY", "fallback-dev-secret-key")



# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ["DEBUG"]
Expand Down
20 changes: 10 additions & 10 deletions frontend/package-lock.json

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

112 changes: 70 additions & 42 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