diff --git a/client/src/components/Header/SearchServers.tsx b/client/src/components/Header/SearchServers.tsx index 60fcd41..1be7eee 100644 --- a/client/src/components/Header/SearchServers.tsx +++ b/client/src/components/Header/SearchServers.tsx @@ -131,577 +131,574 @@ export default function SearchServers({ }; return ( - - theme.palette.mode === 'dark' - ? '1px solid rgba(255, 255, 255, .12)' - : '1px solid rgba(0, 0, 0, .12)' - : 'none', backgroundColor: (theme) => theme.palette.mode === 'dark' ? 'rgba(255, 255, 255, .06)' : 'rgba(0, 0, 0, .06)', + boxShadow: 'inset 0em 3em 5em -5em black,inset 0em -3em 5em -6em black', }} > - - {/* Name */} - - { - handleChange('name', event.target.value); - }} - variant="standard" - autoComplete="false" - fullWidth - label="Name" - size="small" - className="pb-2" - /> - - {/* Max Level */} - - - Max Level - - - - { - let value = parseInt(event.target.value, 10); - if (Number.isNaN(value) || value < 1) { - value = 1; - } else if (value > 99) { - value = 99; - } - handleChange('maxLevel', [value, searchState.maxLevel[1]], 0); - }} - // onBlur={handleBlur} - inputProps={{ - name: 'max-level-min', - step: 1, - min: 1, - max: 99, - type: 'number', - 'aria-labelledby': 'max-level', - }} - /> - { - handleChange('maxLevel', value, activeThumb); - }} - valueLabelDisplay="auto" - disableSwap - className="mx-4" - size="small" - min={1} - max={99} - /> - { - let value = parseInt(event.target.value, 10); - if (Number.isNaN(value) || value < 1) { - value = 1; - } else if (value > 99) { - value = 99; - } - handleChange('maxLevel', [searchState.maxLevel[0], value], 1); - }} - // onBlur={handleBlur} - inputProps={{ - name: 'max-level-max', - step: 1, - min: 1, - max: 99, - type: 'number', - 'aria-labelledby': 'max-level', - }} - /> - - {/* Expansion */} - - + + {/* Name */} + + { + handleChange('name', event.target.value); + }} + variant="standard" + autoComplete="false" + fullWidth + label="Name" + size="small" + className="pb-2" + /> + + {/* Max Level */} + - - Expansions + + Max Level - - + + { + let value = parseInt(event.target.value, 10); + if (Number.isNaN(value) || value < 1) { + value = 1; + } else if (value > 99) { + value = 99; + } + handleChange('maxLevel', [value, searchState.maxLevel[1]], 0); + }} + // onBlur={handleBlur} + inputProps={{ + name: 'max-level-min', + step: 1, + min: 1, + max: 99, + type: 'number', + 'aria-labelledby': 'max-level', + }} + /> + { + handleChange('maxLevel', value, activeThumb); + }} + valueLabelDisplay="auto" + disableSwap + className="mx-4" + size="small" + min={1} + max={99} + /> + { + let value = parseInt(event.target.value, 10); + if (Number.isNaN(value) || value < 1) { + value = 1; + } else if (value > 99) { + value = 99; + } + handleChange('maxLevel', [searchState.maxLevel[0], value], 1); + }} + // onBlur={handleBlur} + inputProps={{ + name: 'max-level-max', + step: 1, + min: 1, + max: 99, + type: 'number', + 'aria-labelledby': 'max-level', + }} + /> + + {/* Expansion */} + - - None - - - RotZ - - - CoP - - - ToAU - - - WotG - - - SoA - - - - {/* Multiboxing */} - - - Multiboxing - - { - handleChange('multibox', value); - }} - size="small" - aria-labelledby="multibox-button-group" - sx={{ - display: 'flex', - width: '100%', - }} - exclusive - > - - None - - - Limited - - - Unlimited - - - - {/* Trusts */} - - - Trusts - - { - handleChange('trusts', value); - }} - size="small" - aria-labelledby="trust-button-group" - exclusive - sx={{ - display: 'flex', - width: '100%', - }} - > - - Disabled - - - Enabled - - - - {/* Level Sync */} - - - Level Sync - - { - handleChange('levelSync', value); - }} - size="small" - aria-labelledby="level-sync-button-group" - exclusive - sx={{ - display: 'flex', - width: '100%', - }} - > - - Disabled - - - Enabled - - - - {/* Home Point Teleport */} - - - Home Point Teleport - - { - handleChange('homePoint', value); - }} - size="small" - aria-labelledby="home-point-button-group" - exclusive - sx={{ - display: 'flex', - width: '100%', - }} - > - - Disabled - - - Enabled - - - - {/* Survival Guide Teleport */} - - - Survival Guides - - { - handleChange('survivalGuide', value); - }} - size="small" - aria-labelledby="survival-guide-button-group" - exclusive - sx={{ - display: 'flex', - width: '100%', - }} - > - - Disabled - - - Enabled - - - - {/* Fields of Valor */} - - - Fields of Valor - - { - handleChange('fov', value); - }} - size="small" - aria-labelledby="fields-of-valor-button-group" - exclusive - sx={{ - display: 'flex', - width: '100%', - }} - > - - Disabled - - - Enabled - - - - {/* Grounds of Valor */} - - - Grounds of Valor - - { - handleChange('gov', value); - }} - size="small" - aria-labelledby="grounds-of-valor-button-group" - exclusive - sx={{ - display: 'flex', - width: '100%', - }} - > - - Disabled - - - Enabled - - - - {/* Records of Eminence */} - - - Records of Eminence - - { - handleChange('roe', value); - }} - size="small" - aria-labelledby="records-of-eminence-button-group" - exclusive - sx={{ - display: 'flex', - width: '100%', - }} - > - - Disabled - - - Enabled - - - - - - - { - // setSearchState(SearchStateDefaults); - // }} - > - - - - { - if (location.pathname === '/') { - window.history.replaceState({}, '', '/'); - } - setSearchState(SearchStateDefaults); - }} - > - - + + Expansions + - + + + None + + + RotZ + + + CoP + + + ToAU + + + WotG + + + SoA + + + + {/* Multiboxing */} + + + Multiboxing + + { + handleChange('multibox', value); + }} + size="small" + aria-labelledby="multibox-button-group" + sx={{ + display: 'flex', + width: '100%', + }} + exclusive + > + + None + + + Limited + + + Unlimited + + + + {/* Trusts */} + + + Trusts + + { + handleChange('trusts', value); + }} + size="small" + aria-labelledby="trust-button-group" + exclusive + sx={{ + display: 'flex', + width: '100%', + }} + > + + Disabled + + + Enabled + + + + {/* Level Sync */} + + + Level Sync + + { + handleChange('levelSync', value); + }} + size="small" + aria-labelledby="level-sync-button-group" + exclusive + sx={{ + display: 'flex', + width: '100%', + }} + > + + Disabled + + + Enabled + + + + {/* Home Point Teleport */} + + + Home Point Teleport + + { + handleChange('homePoint', value); + }} + size="small" + aria-labelledby="home-point-button-group" + exclusive + sx={{ + display: 'flex', + width: '100%', + }} + > + + Disabled + + + Enabled + + + + {/* Survival Guide Teleport */} + + + Survival Guides + + { + handleChange('survivalGuide', value); + }} + size="small" + aria-labelledby="survival-guide-button-group" + exclusive + sx={{ + display: 'flex', + width: '100%', + }} + > + + Disabled + + + Enabled + + + + {/* Fields of Valor */} + + + Fields of Valor + + { + handleChange('fov', value); + }} + size="small" + aria-labelledby="fields-of-valor-button-group" + exclusive + sx={{ + display: 'flex', + width: '100%', + }} + > + + Disabled + + + Enabled + + + + {/* Grounds of Valor */} + + + Grounds of Valor + + { + handleChange('gov', value); + }} + size="small" + aria-labelledby="grounds-of-valor-button-group" + exclusive + sx={{ + display: 'flex', + width: '100%', + }} + > + + Disabled + + + Enabled + + + + {/* Records of Eminence */} + + + Records of Eminence + + { + handleChange('roe', value); + }} + size="small" + aria-labelledby="records-of-eminence-button-group" + exclusive + sx={{ + display: 'flex', + width: '100%', + }} + > + + Disabled + + + Enabled + + + + + + + { + // setSearchState(SearchStateDefaults); + // }} + > + + + + + { + if (location.pathname === '/') { + window.history.replaceState({}, '', '/'); + } + setSearchState(SearchStateDefaults); + }} + > + + + + + - - + + ); }