Ignore:
Timestamp:
02/07/26 19:52:09 (5 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
8675f75
Parents:
8a47b30
Message:

add experimental video miniplayer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/App.tsx

    r8a47b30 r9c1dcc7  
    99import "react-toastify/dist/ReactToastify.css";
    1010import LoadingSpinner from "./components/LoadingSpinner";
     11import MiniPlayer from "./components/MiniPlayer";
    1112import Sidebar from "./components/Sidebar";
    1213import { useAuth } from "./context/authContext";
     14import { usePlayer } from "./context/playerContext";
    1315import AllUsers from "./pages/AllUsers";
    1416import LandingPage from "./pages/LandingPage";
     
    2224const MainLayout = () => {
    2325        const { user } = useAuth();
     26        const { currentSong } = usePlayer();
    2427        const location = useLocation();
    2528        // show sidebar only if user is logged in and is on the landing page
     
    5659                                className={`grow transition-all duration-300 pt-20 ${
    5760                                        isSidebarOpen ? "ml-64" : "ml-0"
    58                                 }`}
     61                                } ${currentSong ? "pb-20" : ""}`}
    5962                        >
    6063                                <Outlet />
    6164                        </main>
     65                        <MiniPlayer />
    6266                </div>
    6367        );
Note: See TracChangeset for help on using the changeset viewer.