-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d84d0b1
commit 4f01ec8
Showing
41 changed files
with
667 additions
and
471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_API_URL=eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI2MTdiOGI2ODFiZGIwMjI3YjUzNDY0ZjJkMzU3ZDhlMSIsInN1YiI6IjY0ZjYwOWYzZWJiOTlkMDExZTBiNmUwZiIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.qcqXt8lOPeki5sxBQhLiWMp_OLjztLp2_4Pd95uaWTg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_API_URL='Tienes que crear una cuenta en theMovieDb y poner tu token' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,42 @@ | ||
|
||
import { Route, Routes } from 'react-router-dom' | ||
import HomePage from './pages/HomePage' | ||
import { NavBar } from './components/Header/NavBar' | ||
import MovieForId from './pages/MovieForId' | ||
import SearchMovie from './pages/SearchMovie' | ||
import Footer from './components/Footer/Footer' | ||
import { Route, Routes } from "react-router-dom"; | ||
import HomePage from "./pages/HomePage"; | ||
import { NavBar } from "./components/Header/NavBar"; | ||
import MovieForId from "./pages/MovieForId"; | ||
import SearchMovie from "./pages/SearchMovie"; | ||
import Footer from "./components/Footer/Footer"; | ||
|
||
function App() { | ||
|
||
const fondo = { | ||
backgroundColor: "#292929", | ||
backgroundImage: "linear-gradient(to top, #000000, #000000)", | ||
backgroundSize: "cover", | ||
backgroundRepeat: "repeat", | ||
} | ||
|
||
return ( | ||
|
||
<div className='min-h-screen w-full' style={fondo}> | ||
<NavBar /> | ||
<Routes> | ||
{/* Home page */} | ||
<Route path='/' element={<HomePage/>}/> | ||
|
||
{/* Search Movie */} | ||
<Route path='/search' element={<SearchMovie/>}/> | ||
|
||
{/* Ruta Detalles tv */} | ||
<Route path='/tv/:id' element={<MovieForId path={'/tv'}/>} /> | ||
|
||
{/* Ruta Detalles Movie */} | ||
<Route path='/movie/:id' element={<MovieForId path={'/movie'}/>} /> | ||
</Routes> | ||
<Footer/> | ||
</div> | ||
) | ||
// Modificar el color de Fondo | ||
const fondo = { | ||
backgroundColor: "#292929", | ||
backgroundImage: "linear-gradient(to top, #000000, #000000)", | ||
backgroundSize: "cover", | ||
backgroundRepeat: "repeat", | ||
}; | ||
|
||
|
||
return ( | ||
<div className='min-h-screen w-full select-none' style={fondo}> | ||
<NavBar /> | ||
<Routes> | ||
{/* Home page */} | ||
<Route path='/' element={<HomePage />} /> | ||
|
||
{/* Search Movie */} | ||
<Route path='/search' element={<SearchMovie />} /> | ||
|
||
{/* Ruta Detalles tv */} | ||
<Route path='/tv/:id' element={<MovieForId path={"/tv"} />} /> | ||
|
||
{/* Ruta Detalles Movie */} | ||
<Route | ||
path='/movie/:id' | ||
element={<MovieForId path={"/movie"} />} | ||
/> | ||
</Routes> | ||
<Footer /> | ||
</div> | ||
); | ||
} | ||
|
||
export default App | ||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.