aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/GameCategory.tsx
diff options
context:
space:
mode:
authorFifthWit <fifthwitbusiness@gmail.com>2025-08-14 14:01:01 -0500
committerFifthWit <fifthwitbusiness@gmail.com>2025-08-14 14:01:01 -0500
commit6a8b909afbe1560be95f7ad0a3e19cfe4717aec6 (patch)
tree83cdbe3b5b7e5b83d5f0d08964634cc942264072 /frontend/src/components/GameCategory.tsx
parentSwitched to Vite as build tool (diff)
downloadlphub-6a8b909afbe1560be95f7ad0a3e19cfe4717aec6.tar.gz
lphub-6a8b909afbe1560be95f7ad0a3e19cfe4717aec6.tar.bz2
lphub-6a8b909afbe1560be95f7ad0a3e19cfe4717aec6.zip
Switched to tailwind/vite
Diffstat (limited to 'frontend/src/components/GameCategory.tsx')
-rw-r--r--frontend/src/components/GameCategory.tsx15
1 files changed, 4 insertions, 11 deletions
diff --git a/frontend/src/components/GameCategory.tsx b/frontend/src/components/GameCategory.tsx
index 2bb6d42..b18c9d9 100644
--- a/frontend/src/components/GameCategory.tsx
+++ b/frontend/src/components/GameCategory.tsx
@@ -2,7 +2,6 @@ import 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;
@@ -12,18 +11,12 @@ interface GameCategoryProps {
12const GameCategory: React.FC<GameCategoryProps> = ({ cat, game }) => { 11const GameCategory: React.FC<GameCategoryProps> = ({ cat, game }) => {
13 return ( 12 return (
14 <Link 13 <Link
15 className="games-page-item-body-item" 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 to={"/games/" + game.id + "?cat=" + cat.category.id} 15 to={"/games/" + game.id + "?cat=" + cat.category.id}
17 > 16 >
18 <div> 17 <p className="text-3xl font-semibold">{cat.category.name}</p>
19 <span className="games-page-item-body-item-title"> 18 <br />
20 {cat.category.name} 19 <p className="font-bold text-4xl">{cat.portal_count}</p>
21 </span>
22 <br />
23 <span className="games-page-item-body-item-num">
24 {cat.portal_count}
25 </span>
26 </div>
27 </Link> 20 </Link>
28 ); 21 );
29}; 22};