aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/GameCategory.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/GameCategory.tsx')
-rw-r--r--frontend/src/components/GameCategory.tsx32
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 @@
1import React from 'react'; 1import React from "react";
2import { Link } from "react-router-dom"; 2import { Link } from "react-router-dom";
3 3
4import { Game, GameCategoryPortals } from '@customTypes/Game'; 4import { Game, GameCategoryPortals } from "@customTypes/Game";
5import "@css/Games.css"
6 5
7interface GameCategoryProps { 6interface GameCategoryProps {
8 game: Game; 7 game: Game;
9 cat: GameCategoryPortals; 8 cat: GameCategoryPortals;
10} 9}
11 10
12const GameCategory: React.FC<GameCategoryProps> = ({cat, game}) => { 11const 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
24export default GameCategory; 24export default GameCategory;