diff options
Diffstat (limited to 'frontend/src/components/GameCategory.tsx')
| -rw-r--r-- | frontend/src/components/GameCategory.tsx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/frontend/src/components/GameCategory.tsx b/frontend/src/components/GameCategory.tsx index d8879ef..b18c9d9 100644 --- a/frontend/src/components/GameCategory.tsx +++ b/frontend/src/components/GameCategory.tsx | |||
| @@ -1,24 +1,24 @@ | |||
| 1 | import React from 'react'; | 1 | 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" | ||
| 6 | 5 | ||
| 7 | interface GameCategoryProps { | 6 | interface GameCategoryProps { |
| 8 | game: Game; | 7 | game: Game; |
| 9 | cat: GameCategoryPortals; | 8 | cat: GameCategoryPortals; |
| 10 | } | 9 | } |
| 11 | 10 | ||
| 12 | const GameCategory: React.FC<GameCategoryProps> = ({cat, game}) => { | 11 | const GameCategory: React.FC<GameCategoryProps> = ({ cat, game }) => { |
| 13 | return ( | 12 | return ( |
| 14 | <Link className="games-page-item-body-item" to={"/games/" + game.id + "?cat=" + cat.category.id}> | 13 | <Link |
| 15 | <div> | 14 | className="bg-surface text-center w-full h-[100px] rounded-3xl text-foreground m-3 hover:bg-surface1 transition-colors flex flex-col justify-between p-4" |
| 16 | <span className='games-page-item-body-item-title'>{cat.category.name}</span> | 15 | to={"/games/" + game.id + "?cat=" + cat.category.id} |
| 17 | <br /> | 16 | > |
| 18 | <span className='games-page-item-body-item-num'>{cat.portal_count}</span> | 17 | <p className="text-3xl font-semibold">{cat.category.name}</p> |
| 19 | </div> | 18 | <br /> |
| 20 | </Link> | 19 | <p className="font-bold text-4xl">{cat.portal_count}</p> |
| 21 | ) | 20 | </Link> |
| 22 | } | 21 | ); |
| 22 | }; | ||
| 23 | 23 | ||
| 24 | export default GameCategory; | 24 | export default GameCategory; |