-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
f6bebc1
commit 4ece8a6
Showing
6 changed files
with
58 additions
and
4 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 was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,29 @@ | ||
.dynamics { | ||
display: flex; | ||
} | ||
|
||
.dynamics-sensorbox { | ||
width: 40%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-evenly; | ||
align-items: center; | ||
} | ||
|
||
.dynamics-pictures { | ||
width: 60%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-around; | ||
align-items: center; | ||
} | ||
|
||
.pod-picture-container { | ||
background-color: rgb(209, 209, 209); | ||
width: 60%; | ||
height: 40%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 40px; | ||
} |
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,28 @@ | ||
import SensorBox from "@/components/SensorBoxes/Sensors/SensorBox"; | ||
import PodContext from "@/services/PodContext"; | ||
import FrontPod from "@/data/images/FrontPod.png"; | ||
import SidePod from "@/data/images/SidePod.png"; | ||
import "./Dynamics.css"; | ||
import { useContext } from "react"; | ||
function Dynamics() { | ||
const { podData } = useContext(PodContext); | ||
const { gyroscope } = podData; | ||
return ( | ||
<div className="dynamics"> | ||
<div className="dynamics-sensorbox"> | ||
<SensorBox title="Roll" value={gyroscope.roll} /> | ||
<SensorBox title="Pitch" value={gyroscope.pitch} /> | ||
</div> | ||
<div className="dynamics-pictures"> | ||
<div className="pod-picture-container"> | ||
<img src={FrontPod} /> | ||
</div> | ||
<div className="pod-picture-container"> | ||
<img src={SidePod} /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Dynamics; |