diff --git a/client/src/components/ErrorCard.tsx b/client/src/components/ErrorCard.tsx index 59c8cda..a8307c4 100644 --- a/client/src/components/ErrorCard.tsx +++ b/client/src/components/ErrorCard.tsx @@ -1,10 +1,12 @@ import { Card, CardContent, Typography } from '@mui/material'; +import { useThemeModeContext } from '../context/ThemeContext'; type ErrorCardProps = { error: string }; export default function ErrorCard({ error }: ErrorCardProps) { + const { themeMode } = useThemeModeContext(); return ( - + ¯\_(ツ)_/¯ diff --git a/client/src/components/SearchServers.tsx b/client/src/components/SearchServers.tsx index b788fb5..15ff51a 100644 --- a/client/src/components/SearchServers.tsx +++ b/client/src/components/SearchServers.tsx @@ -1,5 +1,6 @@ import { Container, + Divider, Grid, Input, Slider, @@ -150,299 +151,302 @@ export default function SearchServers({ }; return ( - - theme.palette.mode === 'dark' - ? 'rgba(255, 255, 255, .06)' - : 'rgba(0, 0, 0, .06)', - }} - > - - {/* Name */} - - - - {/* Max Level */} - - - Max Level - - - - - - - - {/* Expansion */} - - + + theme.palette.mode === 'dark' + ? 'rgba(255, 255, 255, .06)' + : 'rgba(0, 0, 0, .06)', + }} + > + + {/* Name */} + + + + {/* Max Level */} + - - Expansions + + Max Level - - + + + + + + {/* Expansion */} + - - None - - + Expansions + + + - RotZ - - - CoP - - - ToAU - - - WotG - - - SoA - - - - {/* Multiboxing */} - - - Multiboxing - - + None + + + RotZ + + + CoP + + + ToAU + + + WotG + + + SoA + + + + {/* Multiboxing */} + - + Multiboxing + + - None - - - Limited - - - Unlimited - - - - {/* Trusts */} - - - Trusts - - + None + + + Limited + + + Unlimited + + + + {/* Trusts */} + - + Trusts + + - Disabled - - - Enabled - - - - {/* Level Sync */} - - - Level Sync - - + Disabled + + + Enabled + + + + {/* Level Sync */} + - + Level Sync + + - Disabled - - - Enabled - - + + Disabled + + + Enabled + + + - - + + {contentHeight > 0 && } + ); } diff --git a/client/src/components/Server/SettingsChipCloud.tsx b/client/src/components/Server/SettingsChipCloud.tsx index 276b402..4dde241 100644 --- a/client/src/components/Server/SettingsChipCloud.tsx +++ b/client/src/components/Server/SettingsChipCloud.tsx @@ -64,7 +64,7 @@ export default function SettingsChipCloud({ server }: SettingsChipCloudProps) { '&> .MuiChip-label': { paddingRight: 0.5, }, - boxShadow: '0px 3px 3px rgba(0, 0, 0, .25)', + boxShadow: 1, }} /> diff --git a/client/src/components/ServerCard.tsx b/client/src/components/ServerCard.tsx index 6992314..8bcaafa 100644 --- a/client/src/components/ServerCard.tsx +++ b/client/src/components/ServerCard.tsx @@ -26,6 +26,7 @@ import { useState, } from 'react'; import { Link } from 'react-router-dom'; +import { useThemeModeContext } from '../context/ThemeContext'; import { ServerData } from '../data/ServerData'; import CopyImageIcon from '../images/copy-image.png'; import ExpansionBar from './Server/ExpansionsBar'; @@ -46,6 +47,7 @@ type ServerCardProps = { }; export default function ServerCard({ server, children }: ServerCardProps) { + const { themeMode } = useThemeModeContext(); const [clipboardTooltip, setClipboardTooltip] = useState('Copy server URL.'); const [clipboardTooltipOpen, setClipboardTooltipOpen] = useState(false); const handleClipboardTooltipClose = () => { @@ -110,7 +112,7 @@ export default function ServerCard({ server, children }: ServerCardProps) { }; return ( - + - + @@ -148,7 +150,7 @@ export default function About() { - + }> For server owners: @@ -203,8 +205,8 @@ export default function About() { > Create a new file settings/api.lua in your server directory. - -
+                
+                  
                     
                       {`xi = xi or {}
 xi.settings = xi.settings or {}
@@ -216,7 +218,7 @@ xi.settings.api =
 }`}
                     
                   
- +
The world server needs to be restarted after any changes to any of the settings. If you set DO_NOT_TRACK to true, your server will be removed on the next hourly update.