From 97be0afd140c7c9e1fd03ba5ab4e486d90907129 Mon Sep 17 00:00:00 2001 From: Wolfboy248 Date: Tue, 19 Aug 2025 13:23:56 +0200 Subject: organised pages, started work on theme --- frontend/src/pages/Maplist/Maplist.tsx | 267 ++++++++++++++++----------------- 1 file changed, 132 insertions(+), 135 deletions(-) (limited to 'frontend/src/pages/Maplist/Maplist.tsx') diff --git a/frontend/src/pages/Maplist/Maplist.tsx b/frontend/src/pages/Maplist/Maplist.tsx index 572eb27..8d9c14a 100644 --- a/frontend/src/pages/Maplist/Maplist.tsx +++ b/frontend/src/pages/Maplist/Maplist.tsx @@ -87,162 +87,159 @@ const Maplist: React.FC = () => { }, [gameChapters, location.search]); return ( -
+
- LPHUB | Maplist + LPHUB | Maplist - +
- - - + + +
{load ? ( -
+
) : ( -
-

- {game?.name} -

- -
-
-
-

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

-

- portals -

-
- -
- {game?.category_portals.map((cat, index) => ( - - ))} -
-
-
- -
-
- - {curChapter?.chapter.name.split(" - ")[0]} - -
-
- - {curChapter?.chapter.name.split(" - ")[1]} - - -
- \ +

+ {game?.name} +

+
- {gameChapters?.chapters.map((chapter, i) => { - return ( -
{ - _fetch_chapters(chapter.id.toString()); - _handle_dropdown_click(); - }} - > - {chapter.name} +
+
+

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

+

+ portals +

+
+ +
+ {game?.category_portals.map((cat, index) => ( + + ))} +
- ); - })}
-
-
- {curChapter?.maps.map((map, i) => { - return ( -
- - - {map.name} - +
+
+
+ + {curChapter?.chapter.name.split(" - ")[0]} + +
-
- - {map.is_disabled - ? map.category_portals[0].portal_count - : map.category_portals.find( - obj => obj.category.id === catNum + 1 - )?.portal_count} + + {curChapter?.chapter.name.split(" - ")[1]} - - portals - -
+
- -
-
- {[1, 2, 3, 4, 5].map((point) => ( -
- ))} -
+ > + {gameChapters?.chapters.map((chapter, i) => { + return ( +
{ + _fetch_chapters(chapter.id.toString()); + _handle_dropdown_click(); + }} + > + {chapter.name} +
+ ); + })}
- -
- ); - })} +
+ +
+ {curChapter?.maps.map((map, i) => { + return ( +
+ + + {map.name} + +
+
+ + {map.is_disabled + ? map.category_portals[0].portal_count + : map.category_portals.find( + obj => obj.category.id === catNum + 1 + )?.portal_count} + + + portals + +
+
+ +
+
+ {[1, 2, 3, 4, 5].map((point) => ( +
+ ))} +
+
+ +
+ ); + })} +
+
-
-
)} -
+ ); }; -- cgit v1.2.3