diff --git a/src/components/Icons/Next.tsx b/src/components/Icons/Next.tsx new file mode 100644 index 0000000..1d30937 --- /dev/null +++ b/src/components/Icons/Next.tsx @@ -0,0 +1,5 @@ +export default function Next({ fill }: { fill?: string }) { + return + + ; +} \ No newline at end of file diff --git a/src/components/Icons/Pause.tsx b/src/components/Icons/Pause.tsx new file mode 100644 index 0000000..dcf5e08 --- /dev/null +++ b/src/components/Icons/Pause.tsx @@ -0,0 +1,5 @@ +export default function Pause({ fill }: { fill?: string }) { + return + + ; +} diff --git a/src/components/Icons/Play.tsx b/src/components/Icons/Play.tsx new file mode 100644 index 0000000..3f0fb6b --- /dev/null +++ b/src/components/Icons/Play.tsx @@ -0,0 +1,5 @@ +export default function Play({ fill }: { fill?: string }) { + return + + ; +} diff --git a/src/components/Icons/Redo.tsx b/src/components/Icons/Redo.tsx new file mode 100644 index 0000000..4268fc5 --- /dev/null +++ b/src/components/Icons/Redo.tsx @@ -0,0 +1,5 @@ +export default function Redo({ fill }: { fill?: string }) { + return + + ; +} \ No newline at end of file diff --git a/src/components/Icons/Replay.tsx b/src/components/Icons/Replay.tsx new file mode 100644 index 0000000..057d4b4 --- /dev/null +++ b/src/components/Icons/Replay.tsx @@ -0,0 +1,5 @@ +export default function Replay({ fill }: { fill?: string }) { + return + + ; +} diff --git a/src/pages/MonitoringPage/MonitoringPage.module.css b/src/pages/MonitoringPage/MonitoringPage.module.css index 5f23eea..e740f1f 100644 --- a/src/pages/MonitoringPage/MonitoringPage.module.css +++ b/src/pages/MonitoringPage/MonitoringPage.module.css @@ -28,6 +28,22 @@ position: static; /* ensures it scrolls away */ } +.controlsButtons { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + gap: .25rem; + max-width: 260px; + flex-wrap: wrap; + + button { + display: flex; + justify-content: center; + align-items: center; + } +} + .phaseProgress { margin-top: 0.5rem; } diff --git a/src/pages/MonitoringPage/MonitoringPage.tsx b/src/pages/MonitoringPage/MonitoringPage.tsx index 2ff91bb..72e571c 100644 --- a/src/pages/MonitoringPage/MonitoringPage.tsx +++ b/src/pages/MonitoringPage/MonitoringPage.tsx @@ -30,6 +30,11 @@ import { StatusList, RobotConnected } from './MonitoringPageComponents'; +import Replay from "../../components/Icons/Replay.tsx"; +import Pause from "../../components/Icons/Pause.tsx"; +import Play from "../../components/Icons/Play.tsx"; +import Next from "../../components/Icons/Next.tsx"; +import Redo from "../../components/Icons/Redo.tsx"; // ---------------------------------------------------------------------- // 1. State management @@ -235,31 +240,31 @@ function ControlPanel({ className={!isPlaying ? styles.pausePlayActive : styles.pausePlayInactive} onClick={() => onAction("pause")} disabled={loading} - >❚❚ + > + > + > + > + > );