diff --git a/frontend/src/Components/ComponentUtils/MultiUpload/MultiImageDropzone.js b/frontend/src/Components/ComponentUtils/MultiUpload/MultiImageDropzone.js index 021a386..a19244c 100644 --- a/frontend/src/Components/ComponentUtils/MultiUpload/MultiImageDropzone.js +++ b/frontend/src/Components/ComponentUtils/MultiUpload/MultiImageDropzone.js @@ -1,53 +1,7 @@ -import React, { useCallback } from 'react'; -import { makeStyles } from '@mui/styles'; - -const useStyles = makeStyles({ - dropzone: { - border: '2px dashed #cccccc', - borderRadius: '8px', - padding: '40px 20px', - textAlign: 'center', - cursor: 'pointer', - transition: 'all 0.3s ease', - backgroundColor: '#fafafa', - minHeight: '200px', - display: 'flex', - flexDirection: 'column', - justifyContent: 'center', - alignItems: 'center', - '&:hover': { - borderColor: '#999999', - backgroundColor: '#f0f0f0' - } - }, - dropzoneActive: { - borderColor: '#4CAF50', - backgroundColor: '#e8f5e8' - }, - dropzoneText: { - fontSize: '18px', - fontFamily: 'roboto', - color: '#666666', - margin: '10px 0' - }, - dropzoneSubtext: { - fontSize: '14px', - color: '#999999', - fontFamily: 'roboto' - }, - fileCount: { - fontSize: '16px', - color: '#4CAF50', - fontWeight: 'bold', - marginTop: '10px' - }, - hiddenInput: { - display: 'none' - } -}); +import React from 'react'; +import { Box, Typography } from '@mui/material'; function MultiImageDropzone({ onImagesSelected, selectedImages = [] }) { - const classes = useStyles(); const handleFiles = (files) => { // Filter nur Bilddateien @@ -102,40 +56,79 @@ function MultiImageDropzone({ onImagesSelected, selectedImages = [] }) { } }; + const dropzoneSx = { + border: '2px dashed #cccccc', + borderRadius: '8px', + padding: '40px 20px', + textAlign: 'center', + cursor: 'pointer', + transition: 'all 0.3s ease', + backgroundColor: '#fafafa', + minHeight: '200px', + display: 'flex', + flexDirection: 'column', + justifyContent: 'center', + alignItems: 'center', + '&:hover': { + borderColor: '#999999', + backgroundColor: '#f0f0f0' + } + }; + + const dropzoneTextSx = { + fontSize: '18px', + fontFamily: 'roboto', + color: '#666666', + margin: '10px 0' + }; + + const dropzoneSubtextSx = { + fontSize: '14px', + color: '#999999', + fontFamily: 'roboto' + }; + + const fileCountSx = { + fontSize: '16px', + color: '#4CAF50', + fontWeight: 'bold', + marginTop: '10px' + }; + return ( -