diff --git a/app/features/sendouq-match/routes/q.match.$id.module.css b/app/features/sendouq-match/routes/q.match.$id.module.css index fc4b1bc70..36fc705a8 100644 --- a/app/features/sendouq-match/routes/q.match.$id.module.css +++ b/app/features/sendouq-match/routes/q.match.$id.module.css @@ -109,6 +109,11 @@ outline: none !important; } +.preferenceEmoji { + filter: grayscale(100%); + transition: all 0.2s; +} + @container (width >= 640px) { .teamsContainer { grid-template-columns: 1fr 1fr; diff --git a/app/features/sendouq-match/routes/q.match.$id.tsx b/app/features/sendouq-match/routes/q.match.$id.tsx index 6fce94cf9..7901a1de5 100644 --- a/app/features/sendouq-match/routes/q.match.$id.tsx +++ b/app/features/sendouq-match/routes/q.match.$id.tsx @@ -1089,7 +1089,7 @@ function MapListMap({ > {`${preference} @@ -1342,7 +1342,7 @@ function MapListMapPickInfo({
{`${preference} diff --git a/app/features/sendouq-settings/components/PreferenceRadioGroup.module.css b/app/features/sendouq-settings/components/PreferenceRadioGroup.module.css new file mode 100644 index 000000000..2eebf6fb9 --- /dev/null +++ b/app/features/sendouq-settings/components/PreferenceRadioGroup.module.css @@ -0,0 +1,35 @@ +.radio { + background-color: var(--color-bg-high); + font-size: var(--font-xs); + text-transform: uppercase; + font-weight: var(--weight-semi); + color: var(--color-text-high); + padding: var(--s-1) var(--s-2); + border-radius: var(--radius-field); + display: flex; + align-items: center; + gap: var(--s-1); + cursor: pointer; +} + +.emoji { + filter: grayscale(100%); + transition: all 0.2s; +} + +.checked { + color: var(--color-text); + outline: 2px solid var(--color-bg-higher); +} + +.checked .emoji { + filter: grayscale(0%); +} + +.focusVisible { + outline: var(--focus-ring); +} + +.radio:hover .emoji { + scale: 1.1; +} diff --git a/app/features/sendouq-settings/components/PreferenceRadioGroup.tsx b/app/features/sendouq-settings/components/PreferenceRadioGroup.tsx index 8430c17c2..4f9ecd40a 100644 --- a/app/features/sendouq-settings/components/PreferenceRadioGroup.tsx +++ b/app/features/sendouq-settings/components/PreferenceRadioGroup.tsx @@ -3,6 +3,7 @@ import { Radio, RadioGroup } from "react-aria-components"; import { useTranslation } from "react-i18next"; import type { Preference } from "~/db/tables"; import { preferenceEmojiUrl } from "~/utils/urls"; +import styles from "./PreferenceRadioGroup.module.css"; export function PreferenceRadioGroup({ preference, @@ -26,17 +27,16 @@ export function PreferenceRadioGroup({ orientation="horizontal" > - {({ isSelected, isHovered, isFocusVisible }) => ( + {({ isSelected, isFocusVisible }) => ( Avoid emoji @@ -45,17 +45,16 @@ export function PreferenceRadioGroup({ )} - {({ isSelected, isHovered, isFocusVisible }) => ( + {({ isSelected, isFocusVisible }) => ( Neutral emoji @@ -64,17 +63,16 @@ export function PreferenceRadioGroup({ )} - {({ isSelected, isHovered, isFocusVisible }) => ( + {({ isSelected, isFocusVisible }) => ( Prefer emoji diff --git a/app/features/sendouq-settings/routes/q.settings.tsx b/app/features/sendouq-settings/routes/q.settings.tsx index 0f9d22653..2d2cd6b28 100644 --- a/app/features/sendouq-settings/routes/q.settings.tsx +++ b/app/features/sendouq-settings/routes/q.settings.tsx @@ -1,3 +1,4 @@ +import clsx from "clsx"; import { Map as MapIcon, Mic, Puzzle, Volume2 } from "lucide-react"; import * as React from "react"; import { useState } from "react"; @@ -65,12 +66,14 @@ export const meta: MetaFunction = (args) => { export default function SendouQSettingsPage() { return ( -
+
- - - - +
+ + + + +
); } @@ -140,7 +143,7 @@ function MapPicker() { return (
- +
{t("q:settings.maps.header")}
diff --git a/app/features/user-page/routes/u.$identifier.builds.new.tsx b/app/features/user-page/routes/u.$identifier.builds.new.tsx index 36fdaf824..411944290 100644 --- a/app/features/user-page/routes/u.$identifier.builds.new.tsx +++ b/app/features/user-page/routes/u.$identifier.builds.new.tsx @@ -32,12 +32,10 @@ export default function NewBuildPage() { } return ( -
- -
+ ); } diff --git a/app/styles/utils.css b/app/styles/utils.css index 20aa5682a..1ff671694 100644 --- a/app/styles/utils.css +++ b/app/styles/utils.css @@ -631,4 +631,10 @@ font-style: italic; font-size: var(--font-xs); } + + .half-width { + width: 100%; + max-width: 24rem; + margin-inline: auto; + } }