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