From 6a8b909afbe1560be95f7ad0a3e19cfe4717aec6 Mon Sep 17 00:00:00 2001 From: FifthWit Date: Thu, 14 Aug 2025 14:01:01 -0500 Subject: Switched to tailwind/vite --- frontend/src/pages/Maplist.tsx | 131 ++++++++++++++++++++++------------------- 1 file changed, 71 insertions(+), 60 deletions(-) (limited to 'frontend/src/pages/Maplist.tsx') diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index a7242ef..8343129 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx @@ -2,7 +2,6 @@ import React, { useEffect } from "react"; import { Link, useLocation, useNavigate, useParams } from "react-router-dom"; import { Helmet } from "react-helmet"; -import "@css/Maplist.css"; import { API } from "@api/Api"; import { Game } from "@customTypes/Game"; import { GameChapter, GamesChapters } from "@customTypes/Chapters"; @@ -92,44 +91,52 @@ const Maplist: React.FC = () => { LPHUB | Maplist -
+ +
-
+ {load ? (
) : (
-

{game?.name}

+

+ {game?.name} +

+
-
-
-

+
+
+

{ game?.category_portals.find( obj => obj.category.id === catNum + 1 )?.portal_count }

-

portals

+

+ portals +

-
+ +
{game?.category_portals.map((cat, index) => (
-
+
- + {curChapter?.chapter.name.split(" - ")[0]}
-
- {curChapter?.chapter.name.split(" - ")[1]} - +
+ + {curChapter?.chapter.name.split(" - ")[1]} + +
+ \
{gameChapters?.chapters.map((chapter, i) => { return (
{ _fetch_chapters(chapter.id.toString()); _handle_dropdown_click(); @@ -179,49 +187,52 @@ const Maplist: React.FC = () => { })}
-
+ +
{curChapter?.maps.map((map, i) => { return ( -
+
- {map.name} + + {map.name} +
-
- +
+ {map.is_disabled ? map.category_portals[0].portal_count : map.category_portals.find( obj => obj.category.id === catNum + 1 )?.portal_count} - portals + + portals +
-
- {/* Difficulty: */} -
-
-
-
-
-
+ + {/* Difficulty rating */} +
+
+ {[1, 2, 3, 4, 5].map((point) => ( +
+ ))}
-- cgit v1.2.3