diff options
| author | FifthWit <fifthwitbusiness@gmail.com> | 2025-08-14 15:44:50 -0500 |
|---|---|---|
| committer | FifthWit <fifthwitbusiness@gmail.com> | 2025-08-14 15:44:50 -0500 |
| commit | cfd377e29c0fa6f10c4d6bf3f507de4ca2f0b10a (patch) | |
| tree | 6e30957cf5119a8ab83dd2c719e907e988619841 /frontend/src/pages/Maps.tsx | |
| parent | Switched to tailwind/vite (diff) | |
| download | lphub-cfd377e29c0fa6f10c4d6bf3f507de4ca2f0b10a.tar.gz lphub-cfd377e29c0fa6f10c4d6bf3f507de4ca2f0b10a.tar.bz2 lphub-cfd377e29c0fa6f10c4d6bf3f507de4ca2f0b10a.zip | |
Mobile Design looking decent
Diffstat (limited to 'frontend/src/pages/Maps.tsx')
| -rw-r--r-- | frontend/src/pages/Maps.tsx | 39 |
1 files changed, 18 insertions, 21 deletions
diff --git a/frontend/src/pages/Maps.tsx b/frontend/src/pages/Maps.tsx index 75753ac..50fe03b 100644 --- a/frontend/src/pages/Maps.tsx +++ b/frontend/src/pages/Maps.tsx | |||
| @@ -64,37 +64,36 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => { | |||
| 64 | // loading placeholder | 64 | // loading placeholder |
| 65 | return ( | 65 | return ( |
| 66 | <> | 66 | <> |
| 67 | <main> | 67 | <main className="*:text-foreground relative left-0 w-[calc(100%-20rem)] min-h-screen p-4 sm:p-8"> |
| 68 | <section id="section1" className="summary1"> | 68 | <section id="section1" className="summary1"> |
| 69 | <div> | 69 | <div> |
| 70 | <Link to="/games"> | 70 | <Link to="/games"> |
| 71 | <button | 71 | <button |
| 72 | className="nav-button" | 72 | className="nav-button rounded-[20px] h-10 bg-surface border-0 text-foreground text-lg font-[--font-barlow-semicondensed-regular] transition-colors duration-100 hover:bg-surface2 flex items-center px-2" |
| 73 | style={{ borderRadius: "20px 20px 20px 20px" }} | ||
| 74 | > | 73 | > |
| 75 | <i className="triangle"></i> | 74 | <i className="triangle"></i> |
| 76 | <span>Games List</span> | 75 | <span className="px-2">Games List</span> |
| 77 | </button> | 76 | </button> |
| 78 | </Link> | 77 | </Link> |
| 79 | </div> | 78 | </div> |
| 80 | </section> | 79 | </section> |
| 81 | 80 | ||
| 82 | <section id="section2" className="summary1"> | 81 | <section id="section2" className="summary1 mt-4 flex gap-2 flex-wrap"> |
| 83 | <button className="nav-button"> | 82 | <button className="nav-button"> |
| 84 | <img src={PortalIcon} alt="" className="w-6 h-6" /> | 83 | <img src={PortalIcon} alt="" className="w-5 h-5 sm:w-6 sm:h-6" /> |
| 85 | <span>Summary</span> | 84 | <span>Summary</span> |
| 86 | </button> | 85 | </button> |
| 87 | <button className="nav-button"> | 86 | <button className="nav-button"> |
| 88 | <img src={FlagIcon} alt="" className="w-6 h-6" /> | 87 | <img src={FlagIcon} alt="" className="w-5 h-5 sm:w-6 sm:h-6" /> |
| 89 | <span>Leaderboards</span> | 88 | <span>Leaderboards</span> |
| 90 | </button> | 89 | </button> |
| 91 | <button className="nav-button"> | 90 | <button className="nav-button"> |
| 92 | <img src={ChatIcon} alt="" className="w-6 h-6" /> | 91 | <img src={ChatIcon} alt="" className="w-5 h-5 sm:w-6 sm:h-6" /> |
| 93 | <span>Discussions</span> | 92 | <span>Discussions</span> |
| 94 | </button> | 93 | </button> |
| 95 | </section> | 94 | </section> |
| 96 | 95 | ||
| 97 | <section id="section6" className="summary2" /> | 96 | <section id="section6" className="summary2 mt-4" /> |
| 98 | </main> | 97 | </main> |
| 99 | </> | 98 | </> |
| 100 | ); | 99 | ); |
| @@ -118,47 +117,45 @@ const Maps: React.FC<MapProps> = ({ token, isModerator }) => { | |||
| 118 | <div id="background-image"> | 117 | <div id="background-image"> |
| 119 | <img src={mapSummaryData.map.image} alt="" /> | 118 | <img src={mapSummaryData.map.image} alt="" /> |
| 120 | </div> | 119 | </div> |
| 121 | <main> | 120 | <main className="relative left-0 w-full sm:ml-80 sm:w-[calc(100%-20rem)] min-h-screen max-h-screen overflow-y-auto p-4 sm:p-8 scrollbar-thin scrollbar-track-surface scrollbar-thumb-muted hover:scrollbar-thumb-surface1"> |
| 122 | <section id="section1" className="summary1"> | 121 | <section id="section1" className="summary1"> |
| 123 | <div> | 122 | <div> |
| 124 | <Link to="/games"> | 123 | <Link to="/games"> |
| 125 | <button | 124 | <button |
| 126 | className="nav-button" | 125 | className="nav-button rounded-[20px] h-10 bg-surface border-0 text-foreground text-lg font-[--font-barlow-semicondensed-regular] transition-colors duration-100 hover:bg-surface2 flex items-center px-2" |
| 127 | style={{ borderRadius: "20px 0px 0px 20px" }} | ||
| 128 | > | 126 | > |
| 129 | <i className="triangle"></i> | 127 | <i className="triangle"></i> |
| 130 | <span>Games List</span> | 128 | <span className="px-2">Games List</span> |
| 131 | </button> | 129 | </button> |
| 132 | </Link> | 130 | </Link> |
| 133 | <Link | 131 | <Link |
| 134 | to={`/games/${mapSummaryData.map.is_coop ? "2" : "1"}?chapter=${mapSummaryData.map.chapter_name.split(" ")[1]}`} | 132 | to={`/games/${mapSummaryData.map.is_coop ? "2" : "1"}?chapter=${mapSummaryData.map.chapter_name.split(" ")[1]}`} |
| 135 | > | 133 | > |
| 136 | <button | 134 | <button |
| 137 | className="nav-button" | 135 | className="nav-button ml-2" |
| 138 | style={{ borderRadius: "0px 20px 20px 0px", marginLeft: "2px" }} | ||
| 139 | > | 136 | > |
| 140 | <i className="triangle"></i> | 137 | <i className="triangle"></i> |
| 141 | <span>{mapSummaryData.map.chapter_name}</span> | 138 | <span className="px-2">{mapSummaryData.map.chapter_name}</span> |
| 142 | </button> | 139 | </button> |
| 143 | </Link> | 140 | </Link> |
| 144 | <br /> | 141 | <br /> |
| 145 | <span> | 142 | <span className="block mt-2 text-lg sm:text-xl text-foreground"> |
| 146 | <b>{mapSummaryData.map.map_name}</b> | 143 | <b>{mapSummaryData.map.map_name}</b> |
| 147 | </span> | 144 | </span> |
| 148 | </div> | 145 | </div> |
| 149 | </section> | 146 | </section> |
| 150 | 147 | ||
| 151 | <section id="section2" className="summary1"> | 148 | <section id="section2" className="summary1 mt-4 flex gap-2 flex-wrap"> |
| 152 | <button className="nav-button" onClick={() => setNavState(0)}> | 149 | <button className="nav-button" onClick={() => setNavState(0)}> |
| 153 | <img src={PortalIcon} alt="" className="w-6 h-6" /> | 150 | <img src={PortalIcon} alt="" className="w-5 h-5 sm:w-6 sm:h-6" /> |
| 154 | <span>Summary</span> | 151 | <span>Summary</span> |
| 155 | </button> | 152 | </button> |
| 156 | <button className="nav-button" onClick={() => setNavState(1)}> | 153 | <button className="nav-button" onClick={() => setNavState(1)}> |
| 157 | <img src={FlagIcon} alt="" className="w-6 h-6" /> | 154 | <img src={FlagIcon} alt="" className="w-5 h-5 sm:w-6 sm:h-6" /> |
| 158 | <span>Leaderboards</span> | 155 | <span>Leaderboards</span> |
| 159 | </button> | 156 | </button> |
| 160 | <button className="nav-button" onClick={() => setNavState(2)}> | 157 | <button className="nav-button" onClick={() => setNavState(2)}> |
| 161 | <img src={ChatIcon} alt="" className="w-6 h-6" /> | 158 | <img src={ChatIcon} alt="" className="w-5 h-5 sm:w-6 sm:h-6" /> |
| 162 | <span>Discussions</span> | 159 | <span>Discussions</span> |
| 163 | </button> | 160 | </button> |
| 164 | </section> | 161 | </section> |