-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the room names from Maniac Mansion Decoded 🏷️.
- Loading branch information
Showing
12 changed files
with
307 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import { | ||
Field, | ||
Label, | ||
Description, | ||
Radio, | ||
RadioGroup, | ||
} from '@headlessui/react'; | ||
import { clsx } from 'clsx'; | ||
|
||
const ScreenNamesSelector = ({ | ||
screenName, | ||
screenNameOptions, | ||
setScreenName, | ||
}) => { | ||
return ( | ||
<> | ||
<h2 className="text-xl font-semibold leading-6 text-slate-700 md:text-2xl dark:text-slate-300"> | ||
Screen names scheme | ||
</h2> | ||
|
||
<RadioGroup | ||
value={screenName} | ||
onChange={setScreenName} | ||
className="flex flex-col gap-5 pl-8"> | ||
{screenNameOptions.map((option) => ( | ||
<Field | ||
key={option.value} | ||
className="flex items-center gap-1"> | ||
<Radio value={option}> | ||
{({ focus, checked }) => ( | ||
<div className="flex"> | ||
<div | ||
className={clsx( | ||
'group flex size-4 items-center justify-center rounded-full border', | ||
!checked && 'bg-white', | ||
checked && 'bg-primary-600', | ||
focus && 'ring-2 ring-primary-600 ring-offset-1', | ||
)}> | ||
<span | ||
className={clsx( | ||
'size-1.5 rounded-full bg-white', | ||
!checked && 'invisible', | ||
checked && 'visible', | ||
)} | ||
/> | ||
</div> | ||
<div className="ml-3 text-sm leading-6"> | ||
<Label | ||
as="p" | ||
className="font-medium leading-5 text-slate-900 dark:text-slate-100"> | ||
{option.name} | ||
</Label> | ||
<Description | ||
as="p" | ||
className="text-slate-500"> | ||
{option.description} | ||
</Description> | ||
</div> | ||
</div> | ||
)} | ||
</Radio> | ||
</Field> | ||
))} | ||
</RadioGroup> | ||
</> | ||
); | ||
}; | ||
|
||
export default ScreenNamesSelector; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.