Skip to content

Commit

Permalink
Arreglo de problema de no visualizacion de fondo en urls anidadas
Browse files Browse the repository at this point in the history
  • Loading branch information
Verzidee committed Apr 1, 2024
1 parent 642a477 commit 65e89fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ function App() {
}, []);

return (

<AuthProvider> {/* Envolver con AuthProvider */}
<Router>
<Routes>
{/* Rutas que incluyen el Navbar a través del componente Layout */}
<Route path="/" element={<Layout><Home /></Layout>} />
<Route path="/historial" element={<Layout><Historial /></Layout>} />
<Route path="/jugar" element={<Layout><Jugar /></Layout>} />
Expand All @@ -30,7 +28,6 @@ function App() {
<Route path="/login" element={<Layout><LogIn /></Layout>} />
<Route path="/aboutus" element={<Layout><AboutUS/></Layout>} />

{/* Ruta NotFoundPage sin Layout para evitar mostrar el Navbar */}
<Route path="*" element={<Error404Page />} />
</Routes>
</Router>
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/pages/Error404Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Error404Page({ initialCountdown = 15 }) {
return (
<div className="error-page-container">
<video autoPlay loop muted className="background-video">
<source src="videos/Error404.mp4" type="video/mp4" />
<source src="/videos/Error404.mp4" type="video/mp4" />
</video>
<div className="content">
<h1>404 - ¡Ups! Te quedaste sin oxígeno</h1>
Expand Down

0 comments on commit 65e89fa

Please sign in to comment.