JSFiddle - React, Tailwind, and code Playground

HTML

<div id="dropzone" class="zone">
    <div id="dropzone-highlight">
        <div id="drag-n-drop">
            <div class="text1">this is some text</div>
            <div class="text2">this is a container with text and images</div>
        </div>
    </div>
</div>

CSS

#dropzone {
    padding: 0px !important;
}
#dropzone-highlight {
    border: 4px solid #DBDBDB;
    padding: 16px 0px !important;
    overflow: auto;
}
#drag-n-drop {
    width: 100px;
    margin: auto;
    padding: 8px 0px;
    position: relative;
}
.dnd-hover {
    border: 4px solid #97e800 !important;
}
.zone {
    background-color: #DBDBDB;
    border-top: 1px solid #F8F8F8;
    border-bottom: 1px solid #BABABA;
    min-height: 100px;
    width: 100%;
    padding: 16px 0px;
    display: block;
    position: relative;
    overflow: hidden;
}

.text1 {
    
    width: 100px;
    border: 1px solid magenta;
}
.text2 {
    
    width: 200px;
    border: 1px solid red;
    position: relative;
    left: -50px;
}

JavaScript

$(document).ready(function() {

    function attachEvent(element, event, fn) {
        if (element.addEventListener) {
            element.addEventListener(event, fn, false);
        } else if (element.attachEvent) {
            element.attachEvent('on' + event, fn);
        }
    };
    
    var dropzone = document.getElementById('dropzone');
    
    attachEvent(dropzone, 'dragenter', function(event) {
    
        $('#dropzone-highlight').addClass('dnd-hover');
        
        event.stopPropagation();
        event.preventDefault();
        return false;
    });
    
    attachEvent(dropzone, 'dragleave', function(event) {
    
        $('#dropzone-highlight').removeClass('dnd-hover');
    
        event.stopPropagation();
        event.preventDefault();
        return false;
    });

});