diff --git a/resources/views/produktivitas/petani/lahan/add.blade.php b/resources/views/produktivitas/petani/lahan/add.blade.php index a49106f..30b27a1 100644 --- a/resources/views/produktivitas/petani/lahan/add.blade.php +++ b/resources/views/produktivitas/petani/lahan/add.blade.php @@ -12,6 +12,150 @@ background-color: #f8f9fa; z-index: 1; } + +.dropzone-custom-container { + display: flex; + flex-wrap: wrap; + gap: 15px; + padding: 15px; + border: 2px dashed #ced4da; + border-radius: 12px; + background-color: #f8f9fa; + min-height: 160px; + align-items: center; +} + +.btn-tambah-foto { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + width: 140px; + height: 160px; + border: 2px dashed #a8b1ba; + border-radius: 12px; + background: #fff; + color: #6c757d; + cursor: pointer; + transition: 0.2s; + order: 999; +} +.btn-tambah-foto:hover { + background: #e9ecef; + border-color: #6c757d; + color: #495057; +} + +.dropzone-custom-container .dz-preview { + position: relative; + background: #fff; + border-radius: 12px; + box-shadow: 0 4px 10px rgba(0,0,0,0.08); + border: 1px solid #e2e8f0; + width: 140px; + display: flex; + flex-direction: column; +} + +.dropzone-custom-container .dz-image { + width: 100%; + height: 110px; + background: #f1f5f9; + cursor: zoom-in; + display: flex; + align-items: center; + justify-content: center; + border-radius: 12px 12px 0 0; + overflow: hidden; +} + +.dropzone-custom-container .dz-image img { + width: 100%; + height: 100%; + object-fit: cover; +} + +.dropzone-custom-container .dz-details { + padding: 8px; + text-align: center; + background: #fff; + border-radius: 0 0 12px 12px; + border-top: 1px solid #e2e8f0; +} +.dropzone-custom-container .dz-filename { + font-size: 11px; + font-weight: 600; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: #495057; +} +.dropzone-custom-container .dz-size { + font-size: 10px; + color: #adb5bd; +} + +.dropzone-custom-container .dz-remove-custom { + position: absolute; + top: -8px; + right: -8px; + background: #dc3545; + color: #fff; + border-radius: 50%; + width: 24px; + height: 24px; + display: flex; + align-items: center; + justify-content: center; + text-decoration: none; + font-size: 12px; + font-weight: bold; + z-index: 99; + box-shadow: 0 2px 5px rgba(0,0,0,0.2); + cursor: pointer; +} +.dropzone-custom-container .dz-remove-custom:hover { background: #c82333; color: #fff; } + +.dropzone-custom-container .dz-error-message, +.dropzone-custom-container .dz-success-mark, +.dropzone-custom-container .dz-error-mark, +.dropzone-custom-container .progress { display: none !important; } + +.foto-lightbox { + display: none; + position: fixed !important; + top: 0 !important; + left: 0 !important; + width: 100vw !important; + height: 100vh !important; + background: rgba(0, 0, 0, 0.85) !important; + z-index: 99999 !important; + align-items: center !important; + justify-content: center !important; + padding: 30px !important; + box-sizing: border-box !important; +} +.foto-lightbox.active { + display: flex !important; +} +.foto-lightbox img { + max-width: 90vw !important; + max-height: 85vh !important; + object-fit: contain !important; + border-radius: 8px !important; + box-shadow: 0 10px 40px rgba(0,0,0,0.5) !important; +} +.foto-lightbox-close { + position: absolute !important; + top: 20px !important; + right: 30px !important; + color: #fff !important; + font-size: 40px !important; + font-weight: bold !important; + cursor: pointer !important; + z-index: 100000 !important; +} +.foto-lightbox-close:hover { color: #dc3545 !important; } @endpush @@ -227,20 +371,19 @@