From ddfe5015c9237fbe0fea44f8bcde31708eb3adac Mon Sep 17 00:00:00 2001 From: Wolfboy248 Date: Tue, 26 Aug 2025 08:20:51 +0200 Subject: Fixed some inconsistant styles and fixed category queryparam in maplist page --- frontend/src/pages/Maps/Maps.module.css | 22 ++++++++++++++++++++++ frontend/src/pages/Maps/Maps.tsx | 23 +++++++++++++++-------- 2 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 frontend/src/pages/Maps/Maps.module.css (limited to 'frontend/src/pages/Maps') diff --git a/frontend/src/pages/Maps/Maps.module.css b/frontend/src/pages/Maps/Maps.module.css new file mode 100644 index 0000000..5c2b414 --- /dev/null +++ b/frontend/src/pages/Maps/Maps.module.css @@ -0,0 +1,22 @@ +.button-nav { + display: flex; + flex: 1; + gap: 12px; + + align-items: center; + justify-content: center; + cursor: pointer; + + background-color: var(--color-block); + transition: all 0.1s ease; + padding: 8px 0px; + font-size: 28px; +} + +.button-nav:hover { + background-color: var(--color-panel); +} + +.button-nav>span { + transform: translateY(-2px); +} \ No newline at end of file diff --git a/frontend/src/pages/Maps/Maps.tsx b/frontend/src/pages/Maps/Maps.tsx index 03de289..3989b56 100644 --- a/frontend/src/pages/Maps/Maps.tsx +++ b/frontend/src/pages/Maps/Maps.tsx @@ -2,6 +2,8 @@ import React from "react"; import { Link, useLocation } from "react-router-dom"; import { Helmet } from "react-helmet"; +import styles from "./Maps.module.css"; + import { PortalIcon, FlagIcon, ChatIcon } from "../../images/Images.tsx"; import Summary from "@components/Summary.tsx"; import Leaderboards from "@components/Leaderboards.tsx"; @@ -63,22 +65,25 @@ const Maps: React.FC = ({ token, isModerator }) => { if (!mapSummaryData) { // loading placeholder + // TODO: Don't do this return ( <>
+

Loading...

+
- - - @@ -109,19 +114,21 @@ const Maps: React.FC = ({ token, isModerator }) => {
-
+
-
- - - -- cgit v1.2.3