41 lines
1011 B
CSS
41 lines
1011 B
CSS
.uploadImage {
|
|
cursor: pointer;
|
|
max-width: 100%;
|
|
height: 280px; /* Atur tinggi kontainer sesuai kebutuhan */
|
|
border: 2px dashed #ccc;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 16px;
|
|
color: #888;
|
|
position: relative; /* Menjaga posisi relatif kontainer untuk gambar */
|
|
margin-bottom: 20px;
|
|
overflow: hidden; /* Menyembunyikan bagian gambar yang melebihi batas kontainer */
|
|
}
|
|
.uploadImage::before {
|
|
content: "";
|
|
display: block;
|
|
padding-top: 56.25%; /* Aspek rasio 16:9, sesuaikan jika perlu */
|
|
}
|
|
.uploadImage img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain; /* Menjaga rasio gambar tanpa terpotong */
|
|
}
|
|
.progressContainer {
|
|
width: 100%;
|
|
background-color: #f3f3f3;
|
|
border-radius: 2px;
|
|
display: none;
|
|
position: absolute;
|
|
bottom: 0;
|
|
}
|
|
.progressBar {
|
|
width: 0;
|
|
height: 5px;
|
|
background-color: #4caf50;
|
|
border-radius: 2px;
|
|
} |