Skip to content

Commit 27e0658

Browse files
authored
Merge pull request #35 from 4GeeksAcademy/Silvia
Silvia
2 parents 9c5556b + 0ec4a67 commit 27e0658

File tree

5 files changed

+6
-56
lines changed

5 files changed

+6
-56
lines changed

src/api/routes/games.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,4 @@ def get_games_by_platform(platform):
130130
games = [g.serialize() for g in q.all()] #devuelve todos los juegos encontrados
131131
return jsonify({"games": games}), 200
132132

133-
# BUSCAR JUEGOS NAVBAR
134-
#@api.route('/SearchGames/<int:game_id>', methods=["GET"])
135-
#def get_games_by_search():
136-
#query = request.args.get("query")
137-
138-
#if not query:
139-
#return jsonify({"error": "Falta el parámetro 'query'"}), 400
140-
141-
#try:
142-
#results = Games.query.filter(Games.name.ilike(f"%{query}%")).all()
143-
#games_list = [{"id": game.id, "name": game.name} for game in results]
144-
#return jsonify(games_list)
145-
#except Exception as e:
146-
#print("Error en la búsqueda:", e)
147-
#return jsonify({"error": "Juego no encontrado"}), 500
148-
133+

src/front/components/Navbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default function Navbar({ showDrowpdown, setShowDrowpdown }) {
143143
gamesFilter.map((g) => {
144144
return (
145145
<Link to={`/detailsgames/${g.id}`}>
146-
<span>{g.name}</span>
146+
<span>{g.name},{g.price}</span>
147147
</Link>
148148
)
149149
})

src/front/components/maps/Maps.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ function MapInner() {
99
return (
1010
<Map
1111
style={{ width: "100%", height: "100%" }}
12-
defaultCenter={position}
13-
defaultZoom={13}
12+
defaultCenter={{ lat: 22.54992, lng: 0 }}
13+
defaultZoom={3}
1414
gestureHandling="greedy"
1515
disableDefaultUI={false}
16-
><Marker position={position}></Marker>
17-
</Map>
16+
/>
1817
);
1918
}
2019

src/front/components/searchgames/SearchGames.jsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/front/pages/home/Home.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Games } from "../../components/games/Games";
88
export const Home = () => {
99
const images = [
1010
{
11-
src: "https://www.xtrafondos.com/wallpapers/god-of-war-ragnarok-11256.jpg",
11+
src: "https://cdn1.epicgames.com/offer/24b9b5e323bc40eea252a10cdd3b2f10/EGS_LeagueofLegends_RiotGames_S1_2560x1440-47eb328eac5ddd63ebd096ded7d0d5ab",
1212
},
1313
{
1414
src: "https://4kwallpapers.com/images/wallpapers/the-super-mario-2880x1800-10955.jpg",

0 commit comments

Comments
 (0)