diff options
Diffstat (limited to 'frontend/src/components/GameEntry.tsx')
| -rw-r--r-- | frontend/src/components/GameEntry.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/components/GameEntry.tsx b/frontend/src/components/GameEntry.tsx index 3bd2842..2fba85a 100644 --- a/frontend/src/components/GameEntry.tsx +++ b/frontend/src/components/GameEntry.tsx | |||
| @@ -2,7 +2,7 @@ import React from 'react'; | |||
| 2 | import { Link } from "react-router-dom"; | 2 | import { Link } from "react-router-dom"; |
| 3 | 3 | ||
| 4 | import { Game, GameCategoryPortals } from '@customTypes/Game'; | 4 | import { Game, GameCategoryPortals } from '@customTypes/Game'; |
| 5 | import "@css/Games.css" | 5 | import games from "@css/Games.module.css"; |
| 6 | 6 | ||
| 7 | import GameCategory from '@components/GameCategory'; | 7 | import GameCategory from '@components/GameCategory'; |
| 8 | 8 | ||
| @@ -18,12 +18,12 @@ const GameEntry: React.FC<GameEntryProps> = ({ game }) => { | |||
| 18 | }, [game.category_portals]); | 18 | }, [game.category_portals]); |
| 19 | 19 | ||
| 20 | return ( | 20 | return ( |
| 21 | <Link to={"/games/" + game.id}><div className='games-page-item'> | 21 | <Link to={"/games/" + game.id}><div className={games.game}> |
| 22 | <div className='games-page-item-header'> | 22 | <div className={games.header}> |
| 23 | <div style={{ backgroundImage: `url(${game.image})` }} className='games-page-item-header-img'></div> | 23 | <div style={{ backgroundImage: `url(${game.image})` }}></div> |
| 24 | <span><b>{game.name}</b></span> | 24 | <span><b>{game.name}</b></span> |
| 25 | </div> | 25 | </div> |
| 26 | <div id={game.id as any as string} className='games-page-item-body'> | 26 | <div id={game.id as any as string} className={games.infoBlockContainer}> |
| 27 | {catInfo.map((cat, index) => { | 27 | {catInfo.map((cat, index) => { |
| 28 | return <GameCategory cat={cat} game={game} key={index}></GameCategory> | 28 | return <GameCategory cat={cat} game={game} key={index}></GameCategory> |
| 29 | })} | 29 | })} |