Added proper dom representations to Text elements and increased party text size
This commit is contained in:
parent
0f4a5caf94
commit
53bf0e9659
@ -8,12 +8,13 @@ function Nickname({ nickname, stream }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Text
|
<Text
|
||||||
|
as="p"
|
||||||
my={1}
|
my={1}
|
||||||
variant="caption"
|
variant="body2"
|
||||||
sx={{
|
sx={{
|
||||||
fontSize: 10,
|
|
||||||
position: "relative",
|
position: "relative",
|
||||||
cursor: stream ? "pointer" : "default",
|
cursor: stream ? "pointer" : "default",
|
||||||
|
fontSize: "12px",
|
||||||
}}
|
}}
|
||||||
onClick={() => stream && setStreamMuted(!streamMuted)}
|
onClick={() => stream && setStreamMuted(!streamMuted)}
|
||||||
>
|
>
|
||||||
|
@ -33,7 +33,7 @@ function Party({
|
|||||||
width: "100%",
|
width: "100%",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text mb={1} variant="heading">
|
<Text mb={1} variant="heading" as="h1">
|
||||||
Party
|
Party
|
||||||
</Text>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
|
@ -4,7 +4,7 @@ import { Box, Flex, IconButton, Text } from "theme-ui";
|
|||||||
function SizeInput({ value, onChange }) {
|
function SizeInput({ value, onChange }) {
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<Text sx={{ textAlign: "center" }} variant="heading">
|
<Text sx={{ textAlign: "center" }} variant="heading" as="h1">
|
||||||
Size
|
Size
|
||||||
</Text>
|
</Text>
|
||||||
<Flex sx={{ alignItems: "center", justifyContent: "center" }}>
|
<Flex sx={{ alignItems: "center", justifyContent: "center" }}>
|
||||||
@ -24,7 +24,9 @@ function SizeInput({ value, onChange }) {
|
|||||||
<path d="M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z" />
|
<path d="M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z" />
|
||||||
</svg>
|
</svg>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<Text>{value}</Text>
|
<Text as="p" aria-label="Current Token Size">
|
||||||
|
{value}
|
||||||
|
</Text>
|
||||||
<IconButton
|
<IconButton
|
||||||
aria-label="Increase Token Size"
|
aria-label="Increase Token Size"
|
||||||
title="Increase Token Size"
|
title="Increase Token Size"
|
||||||
|
@ -16,7 +16,7 @@ function StartStreamButton({ onStreamStart, onStreamEnd, stream }) {
|
|||||||
|
|
||||||
const unavailableMessage = (
|
const unavailableMessage = (
|
||||||
<Box p={2} bg="hsla(230, 20%, 0%, 20%)">
|
<Box p={2} bg="hsla(230, 20%, 0%, 20%)">
|
||||||
<Text>
|
<Text as="p">
|
||||||
Browser not supported.
|
Browser not supported.
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
@ -27,7 +27,7 @@ function StartStreamButton({ onStreamStart, onStreamEnd, stream }) {
|
|||||||
|
|
||||||
const noAudioMessage = (
|
const noAudioMessage = (
|
||||||
<Box p={2} bg="hsla(230, 20%, 0%, 20%)">
|
<Box p={2} bg="hsla(230, 20%, 0%, 20%)">
|
||||||
<Text>
|
<Text as="p">
|
||||||
No audio found in screen share.
|
No audio found in screen share.
|
||||||
<br />
|
<br />
|
||||||
Ensure "Share audio" is selected when sharing.
|
Ensure "Share audio" is selected when sharing.
|
||||||
@ -94,7 +94,7 @@ function StartStreamButton({ onStreamStart, onStreamEnd, stream }) {
|
|||||||
<Label pt={2} pb={1}>
|
<Label pt={2} pb={1}>
|
||||||
Radio (experimental)
|
Radio (experimental)
|
||||||
</Label>
|
</Label>
|
||||||
<Text mb={2} variant="caption">
|
<Text as="p" mb={2} variant="caption">
|
||||||
Share your computers audio with the party
|
Share your computers audio with the party
|
||||||
</Text>
|
</Text>
|
||||||
{!isSupported && unavailableMessage}
|
{!isSupported && unavailableMessage}
|
||||||
|
@ -24,7 +24,7 @@ function Home() {
|
|||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Text variant="display" sx={{ textAlign: "center" }}>
|
<Text variant="display" as="h1" sx={{ textAlign: "center" }}>
|
||||||
Owlbear Rodeo
|
Owlbear Rodeo
|
||||||
</Text>
|
</Text>
|
||||||
<Image src={owlington} m={2} />
|
<Image src={owlington} m={2} />
|
||||||
@ -34,7 +34,7 @@ function Home() {
|
|||||||
<Button m={2} onClick={handleJoinGame}>
|
<Button m={2} onClick={handleJoinGame}>
|
||||||
Join Game
|
Join Game
|
||||||
</Button>
|
</Button>
|
||||||
<Text variant="caption" sx={{ textAlign: "center" }}>
|
<Text variant="caption" as="p" sx={{ textAlign: "center" }}>
|
||||||
Alpha v0.6.1
|
Alpha v0.6.1
|
||||||
</Text>
|
</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
Loading…
Reference in New Issue
Block a user