Changeset f5bc95e for frontend/src/pages
- Timestamp:
- 02/12/26 22:27:24 (5 months ago)
- Branches:
- main
- Children:
- 85512ff
- Parents:
- d85e8e3
- Location:
- frontend/src/pages
- Files:
-
- 3 edited
-
LandingPage.tsx (modified) (2 diffs)
-
MusicalCollection.tsx (modified) (2 diffs)
-
SongDetail.tsx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/pages/LandingPage.tsx
rd85e8e3 rf5bc95e 1 1 import { useEffect, useRef, useState } from "react"; 2 2 import { useNavigate } from "react-router-dom"; 3 import axiosInstance from "../api/axiosInstance";3 import axiosInstance, { baseURL } from "../api/axiosInstance"; 4 4 import AlbumResult from "../components/search/AlbumResult"; 5 5 import SongResult from "../components/search/SongResult"; … … 337 337 <div className="relative w-full pt-[100%] overflow-hidden bg-[#181818]"> 338 338 <img 339 src={song.cover || "/favicon.png"} 339 src={ 340 song.cover 341 ? `${baseURL}/${song.cover}` 342 : "/favicon.png" 343 } 340 344 alt={song.title} 341 345 className="absolute top-0 left-0 w-full h-full object-cover" -
frontend/src/pages/MusicalCollection.tsx
rd85e8e3 rf5bc95e 1 1 import { useEffect, useState } from "react"; 2 2 import { Link, useParams } from "react-router-dom"; 3 import axiosInstance from "../api/axiosInstance";3 import axiosInstance, { baseURL } from "../api/axiosInstance"; 4 4 import SongItem from "../components/SongItem"; 5 5 import { handleError } from "../utils/error"; … … 161 161 <div className="relative w-full pt-[100%] rounded-xl overflow-hidden shadow-2xl bg-[#181818]"> 162 162 <img 163 src={collection.cover || "/favicon.png"} 163 src={ 164 collection.cover 165 ? `${baseURL}/${collection.cover}` 166 : "/favicon.png" 167 } 164 168 alt={collection.title} 165 169 className="absolute inset-0 w-full h-full object-cover" -
frontend/src/pages/SongDetail.tsx
rd85e8e3 rf5bc95e 2 2 import { Link, useParams } from "react-router-dom"; 3 3 import { toast } from "react-toastify"; 4 import axiosInstance from "../api/axiosInstance";4 import axiosInstance, { baseURL } from "../api/axiosInstance"; 5 5 import { useAuth } from "../context/authContext"; 6 6 import { usePlayer } from "../context/playerContext"; … … 216 216 <div className="relative w-full pt-[100%] rounded-xl overflow-hidden shadow-2xl bg-[#181818]"> 217 217 <img 218 src={song.cover ||"/favicon.png"}218 src={song.cover ? `${baseURL}/${song.cover}` : "/favicon.png"} 219 219 alt={song.title} 220 220 className="absolute inset-0 w-full h-full object-cover"
Note:
See TracChangeset
for help on using the changeset viewer.
