-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
9,105 additions
and
998 deletions.
There are no files selected for viewing
Binary file not shown.
925 changes: 925 additions & 0 deletions
925
experiences/asteroids/controls/.yarn/releases/yarn-4.5.0.cjs
Large diffs are not rendered by default.
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,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.5.0.cjs |
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 |
---|---|---|
@@ -1,31 +1,37 @@ | ||
import { useMessaging } from "@footron/controls-client"; | ||
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft"; | ||
import ChevronRightIcon from "@mui/icons-material/ChevronRight"; | ||
import { IconButton } from "@mui/material"; | ||
import { standardContainerStyle } from "./style"; | ||
import { Box, Button } from "@mui/material"; | ||
import { fullSizeStyle, largeBottomUiStyle, smallTopUiStyle, thinBottomWidgetStyle } from "./style"; | ||
import ZoomControls from "./zoom"; | ||
import TimeSlider from "./timeSlider"; | ||
|
||
export default function AsteroidWatch() { | ||
const { sendMessage } = useMessaging(); | ||
|
||
const prev = async () => { | ||
sendMessage({ type: "watch", value: "previoius" }); | ||
sendMessage({ type: "watch", value: "previous" }); | ||
}; | ||
|
||
const next = async () => { | ||
sendMessage({ type: "watch", value: "next" }); | ||
}; | ||
|
||
return ( | ||
<div> | ||
<b>Select next close approach</b> | ||
<span style={standardContainerStyle}> | ||
<IconButton onClick={prev}> | ||
<ChevronLeftIcon sx={{ fontSize: 80 }} /> | ||
</IconButton> | ||
<IconButton onClick={next}> | ||
<ChevronRightIcon sx={{ fontSize: 80 }} /> | ||
</IconButton> | ||
</span> | ||
<div css={fullSizeStyle}> | ||
<Box css={smallTopUiStyle}> | ||
<h3>Select next close approach</h3> | ||
</Box> | ||
<Box css={largeBottomUiStyle}> | ||
<Box css={thinBottomWidgetStyle}> | ||
<Button color="primary" variant="contained" size="large" onClick={prev}> | ||
<strong>{"<"}</strong> | ||
</Button> | ||
<Button color="primary" variant="contained" size="large" onClick={next}> | ||
<strong>{">"}</strong> | ||
</Button> | ||
</Box> | ||
<ZoomControls /> | ||
<TimeSlider /> | ||
</Box> | ||
</div> | ||
); | ||
} |
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
Oops, something went wrong.