From 9e6596f1e0e2c44836018773854dd174711c3053 Mon Sep 17 00:00:00 2001 From: Armen Rohalov Date: Wed, 26 Mar 2025 20:30:27 +0200 Subject: [PATCH] add css files for components --- src/App.js | 2 +- src/components/AnnotationControls.js | 91 ------------------- .../AnnotationControls/AnnotationControls.css | 39 ++++++++ .../AnnotationControls/AnnotationControls.js | 43 +++++++++ src/components/AnnotationList.js | 2 +- .../AnnotationMain/AnnotationMain.css | 54 +++++++++++ .../{ => AnnotationMain}/AnnotationMain.js | 73 ++++----------- src/components/CanvasEditor/CanvasEditor.css | 15 +++ .../{ => CanvasEditor}/CanvasEditor.js | 57 +++++------- .../DetectionClassList/DetectionClassList.css | 19 ++++ .../DetectionClassList.js | 17 ++-- src/components/MediaList/MediaList.css | 28 ++++++ src/components/{ => MediaList}/MediaList.js | 20 ++-- src/components/VideoPlayer/VideoPlayer.css | 40 ++++++++ .../{ => VideoPlayer}/VideoPlayer.js | 54 ++--------- 15 files changed, 301 insertions(+), 253 deletions(-) delete mode 100644 src/components/AnnotationControls.js create mode 100644 src/components/AnnotationControls/AnnotationControls.css create mode 100644 src/components/AnnotationControls/AnnotationControls.js create mode 100644 src/components/AnnotationMain/AnnotationMain.css rename src/components/{ => AnnotationMain}/AnnotationMain.js (75%) create mode 100644 src/components/CanvasEditor/CanvasEditor.css rename src/components/{ => CanvasEditor}/CanvasEditor.js (88%) create mode 100644 src/components/DetectionClassList/DetectionClassList.css rename src/components/{ => DetectionClassList}/DetectionClassList.js (88%) create mode 100644 src/components/MediaList/MediaList.css rename src/components/{ => MediaList}/MediaList.js (57%) create mode 100644 src/components/VideoPlayer/VideoPlayer.css rename src/components/{ => VideoPlayer}/VideoPlayer.js (75%) diff --git a/src/App.js b/src/App.js index 9ea0cc5..3af81d2 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,5 @@ import React from 'react'; -import AnnotationMain from './components/AnnotationMain'; +import AnnotationMain from './components/AnnotationMain/AnnotationMain'; function App() { diff --git a/src/components/AnnotationControls.js b/src/components/AnnotationControls.js deleted file mode 100644 index 65abab8..0000000 --- a/src/components/AnnotationControls.js +++ /dev/null @@ -1,91 +0,0 @@ -import React from 'react'; - -function AnnotationControls({ onFrameBackward, onPlayPause, isPlaying, onFrameForward, onSaveAnnotation, onDelete }) { - return ( -
- - - - - -
- ); -} - -export default AnnotationControls; \ No newline at end of file diff --git a/src/components/AnnotationControls/AnnotationControls.css b/src/components/AnnotationControls/AnnotationControls.css new file mode 100644 index 0000000..98e4a8c --- /dev/null +++ b/src/components/AnnotationControls/AnnotationControls.css @@ -0,0 +1,39 @@ +.buttons-group { + display: flex; + justify-content: center; + position: relative; + z-index: 1; + padding: 10px; + background: #f5f5f5; + border-radius: 4px; + margin-top: 10px; +} + +.control-btn { + padding: 10px 20px; + font-size: 16px; + margin: 0 5px; + border: 1px solid #ccc; + border-radius: 4px; + cursor: pointer; +} + +.play-btn{ + background: #8aff8a; +} + +.pause-btn{ + background: #ff8a8a; +} + +.arrow-btn{ + background: #e0e0e0; +} + +.save-btn{ + background: #8ad4ff; +} + +.delete-btn{ + background: #ffb38a; +} \ No newline at end of file diff --git a/src/components/AnnotationControls/AnnotationControls.js b/src/components/AnnotationControls/AnnotationControls.js new file mode 100644 index 0000000..f11474b --- /dev/null +++ b/src/components/AnnotationControls/AnnotationControls.js @@ -0,0 +1,43 @@ +import React from 'react'; +import './AnnotationControls.css'; + +function AnnotationControls({ onFrameBackward, onPlayPause, isPlaying, onFrameForward, onSaveAnnotation, onDelete }) { + return ( +
+ + + + + +
+ ); +} + +export default AnnotationControls; \ No newline at end of file diff --git a/src/components/AnnotationList.js b/src/components/AnnotationList.js index bcfd959..241964f 100644 --- a/src/components/AnnotationList.js +++ b/src/components/AnnotationList.js @@ -5,7 +5,7 @@ import React from 'react'; function AnnotationList({ annotations, onAnnotationClick }) { return (
-

Annotations

+

Annotations