diff options
| author | FifthWit <fifthwitbusiness@gmail.com> | 2025-08-14 14:01:01 -0500 |
|---|---|---|
| committer | FifthWit <fifthwitbusiness@gmail.com> | 2025-08-14 14:01:01 -0500 |
| commit | 6a8b909afbe1560be95f7ad0a3e19cfe4717aec6 (patch) | |
| tree | 83cdbe3b5b7e5b83d5f0d08964634cc942264072 /frontend/src/pages/Maps.tsx | |
| parent | Switched to Vite as build tool (diff) | |
| download | lphub-6a8b909afbe1560be95f7ad0a3e19cfe4717aec6.tar.gz lphub-6a8b909afbe1560be95f7ad0a3e19cfe4717aec6.tar.bz2 lphub-6a8b909afbe1560be95f7ad0a3e19cfe4717aec6.zip | |
Switched to tailwind/vite
Diffstat (limited to 'frontend/src/pages/Maps.tsx')
| -rw-r--r-- | frontend/src/pages/Maps.tsx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/frontend/src/pages/Maps.tsx b/frontend/src/pages/Maps.tsx index fbdb8f3..75753ac 100644 --- a/frontend/src/pages/Maps.tsx +++ b/frontend/src/pages/Maps.tsx | |||
| @@ -2,14 +2,13 @@ import React from "react"; | |||
| 2 | import { Link, useLocation } from "react-router-dom"; | 2 | import { Link, useLocation } from "react-router-dom"; |
| 3 | import { Helmet } from "react-helmet"; | 3 | import { Helmet } from "react-helmet"; |
| 4 | 4 | ||
| 5 | import { PortalIcon, FlagIcon, ChatIcon } from "@images/Images"; | 5 | import { PortalIcon, FlagIcon, ChatIcon } from "../images/Images"; |
| 6 | import Summary from "@components/Summary"; | 6 | import Summary from "@components/Summary"; |
| 7 | import Leaderboards from "@components/Leaderboards"; | 7 | import Leaderboards from "@components/Leaderboards"; |
| 8 | import Discussions from "@components/Discussions"; | 8 | import Discussions from "@components/Discussions"; |
| 9 | import ModMenu from "@components/ModMenu"; | 9 | import ModMenu from "@components/ModMenu"; |
| 10 | import { MapDiscussions, MapLeaderboard, MapSummary } from "@customTypes/Map"; | 10 | import { MapDiscussions, MapLeaderboard, MapSummary } from "@customTypes/Map"; |
| 11 | import { API } from "@api/Api"; | 11 | import { API } from "@api/Api"; |
| 12 | import "@css/Maps.css"; | ||
| 13 | 12 | ||
| 14 | interface MapProps { | 13 | interface MapProps { |
| 15 | token?: string; | 14 | token?: string; |
| @@ -82,15 +81,15 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => { | |||
| 82 | 81 | ||
| 83 | <section id="section2" className="summary1"> | 82 | <section id="section2" className="summary1"> |
| 84 | <button className="nav-button"> | 83 | <button className="nav-button"> |
| 85 | <img src={PortalIcon} alt="" /> | 84 | <img src={PortalIcon} alt="" className="w-6 h-6" /> |
| 86 | <span>Summary</span> | 85 | <span>Summary</span> |
| 87 | </button> | 86 | </button> |
| 88 | <button className="nav-button"> | 87 | <button className="nav-button"> |
| 89 | <img src={FlagIcon} alt="" /> | 88 | <img src={FlagIcon} alt="" className="w-6 h-6" /> |
| 90 | <span>Leaderboards</span> | 89 | <span>Leaderboards</span> |
| 91 | </button> | 90 | </button> |
| 92 | <button className="nav-button"> | 91 | <button className="nav-button"> |
| 93 | <img src={ChatIcon} alt="" /> | 92 | <img src={ChatIcon} alt="" className="w-6 h-6" /> |
| 94 | <span>Discussions</span> | 93 | <span>Discussions</span> |
| 95 | </button> | 94 | </button> |
| 96 | </section> | 95 | </section> |
| @@ -151,15 +150,15 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => { | |||
| 151 | 150 | ||
| 152 | <section id="section2" className="summary1"> | 151 | <section id="section2" className="summary1"> |
| 153 | <button className="nav-button" onClick={() => setNavState(0)}> | 152 | <button className="nav-button" onClick={() => setNavState(0)}> |
| 154 | <img src={PortalIcon} alt="" /> | 153 | <img src={PortalIcon} alt="" className="w-6 h-6" /> |
| 155 | <span>Summary</span> | 154 | <span>Summary</span> |
| 156 | </button> | 155 | </button> |
| 157 | <button className="nav-button" onClick={() => setNavState(1)}> | 156 | <button className="nav-button" onClick={() => setNavState(1)}> |
| 158 | <img src={FlagIcon} alt="" /> | 157 | <img src={FlagIcon} alt="" className="w-6 h-6" /> |
| 159 | <span>Leaderboards</span> | 158 | <span>Leaderboards</span> |
| 160 | </button> | 159 | </button> |
| 161 | <button className="nav-button" onClick={() => setNavState(2)}> | 160 | <button className="nav-button" onClick={() => setNavState(2)}> |
| 162 | <img src={ChatIcon} alt="" /> | 161 | <img src={ChatIcon} alt="" className="w-6 h-6" /> |
| 163 | <span>Discussions</span> | 162 | <span>Discussions</span> |
| 164 | </button> | 163 | </button> |
| 165 | </section> | 164 | </section> |