diff --git a/docker-compose.yml b/docker-compose.yml index 96a6278..d6c1fda 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: build: context: ./web_server ports: - - "5000" + - "5000:5000" networks: - app_network env_file: diff --git a/frontend/public/images/sample_game_video.mp4 b/frontend/public/images/sample_game_video.mp4 index 6cee752..5869a6d 100644 Binary files a/frontend/public/images/sample_game_video.mp4 and b/frontend/public/images/sample_game_video.mp4 differ diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index dabc545..f41f3b4 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -2,18 +2,20 @@ import { useState, useEffect } from "react"; import { AuthContext } from "./context/AuthContext"; import { StreamsProvider } from "./context/StreamsContext"; import { BrowserRouter, Routes, Route } from "react-router-dom"; -import HomePage, { PersonalisedHomePage } from "./pages/HomePage"; +import HomePage from "./pages/HomePage"; import StreamerRoute from "./components/Stream/StreamerRoute"; import NotFoundPage from "./pages/NotFoundPage"; function App() { const [isLoggedIn, setIsLoggedIn] = useState(false); + const [username, setUsername] = useState(null); useEffect(() => { fetch("/api/get_login_status") .then((response) => response.json()) - .then((loggedIn) => { - setIsLoggedIn(loggedIn); + .then((data) => { + setIsLoggedIn(data.status); + setUsername(data.username); }) .catch((error) => { console.error("Error fetching login status:", error); @@ -22,13 +24,13 @@ function App() { }, []); return ( - + : } + element={isLoggedIn ? : } /> } /> diff --git a/frontend/src/assets/styles/index.css b/frontend/src/assets/styles/index.css index ffdd81d..6df375c 100644 --- a/frontend/src/assets/styles/index.css +++ b/frontend/src/assets/styles/index.css @@ -20,25 +20,6 @@ background: #555; } -.bg-repeat { - animation: moving_bg 200s linear infinite; -} - -@media (prefers-reduced-motion: reduce) { - .bg-repeat { - animation: none; - } -} - -@keyframes moving_bg { - 0% { - background-position: 0% 0%; - } - 100% { - background-position: 100% 0%; - } -} - /* :root { font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; diff --git a/frontend/src/components/Layout/Logo.tsx b/frontend/src/components/Layout/Logo.tsx index d25c214..6b4caf5 100644 --- a/frontend/src/components/Layout/Logo.tsx +++ b/frontend/src/components/Layout/Logo.tsx @@ -7,14 +7,14 @@ interface LogoProps { const Logo: React.FC = ({ variant = "default" }) => { const gradient = - "bg-gradient-to-br from-yellow-400 via-red-500 to-indigo-500 text-transparent bg-clip-text group-hover:mx-1 transition-all"; + "text-transparent group-hover:mx-1 transition-all"; return (