<!DOCTYPE html> <html> <head> <title>Image Generation</title> <meta name="viewport"…
- User
.image-container { flex: 3; /* Điều chỉnh không gian của container hình ảnh nếu cần */ display: flex; flex-direction: row; justify-content: center; align-items: center; background-color: #363636; padding: 20px; box-sizing: border-box;
}
.image-container img { width: calc(50% - 10px); /* Chiều rộng hình ảnh / height: auto; object-fit: contain; border-radius: 10px; margin: 0 5px; opacity: 0; / Ẩn hình ảnh ban đầu / transition: opacity 0.2s ease-in-out; / Hiệu ứng fade-in / transition: opacity 0.2s ease-in-out, box-shadow 0.2s ease; / Kết hợp transition / } .image-container img:hover { box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); / Thêm box-shadow khi di chuột vào */ }
.image-container img.loaded { opacity: 1; /* Hiển thị hình ảnh khi lớp loaded được thêm vào */ }
.panel { flex: 0 0 20%; /* Đặt kích thước cơ bản của panel thành 25% */ background-color: #3b3b3b; padding: 20px; display: flex; flex-direction: column; align-items: center; box-sizing: border-box; }
#logo { position: absolute; /* Đặt logo ở vị trí tuyệt đối để nó nằm trên cùng / top: 20px; left: 20px; width: 200px; / Điều chỉnh kích thước logo / height: auto; z-index: 100; / Đặt z-index cao hơn để logo luôn ở trên cùng / background: red; / Thêm màu nền để kiểm tra / border: 2px solid blue; / Thêm viền để thấy rõ hơn */ }
#heroMessage { width: 90%; padding: 10px; margin-bottom: 10px; border: 1px solid #913d1bad; border-radius: 20px; font-family: 'Arial', sans-serif; font-weight: bold; font-size: 20px; color: #a72f6b; background-color: rgb(206, 146, 18); box-sizing: border-box; }
#submit-btn-5dt { padding: 10px 20px; background-color: #2e2e2e; color: rgb(253, 207, 138); border: none; border-radius: 5px; font-family: 'Arial', sans-serif; font-size: 15px; cursor: pointer; display: flex; /* Thêm display: flex để căn giữa nút và loading indicator / align-items: center; / Căn giữa theo chiều dọc / transition: background-color 0.2s ease; / Thêm transition cho background-color / } #submit-btn-5dt:hover { background-color: #454545; / Thay đổi màu nền khi di chuột vào */ }
#loading-indicator { display: none; /* Ẩn ban đầu / width: 20px; height: 20px; border: 4px solid #f3f3f3; / Light grey / border-top: 4px solid #388e3c; / Green / border-radius: 50%; animation: spin 2s linear infinite; margin-left: 10px; / Khoảng cách giữa nút và vòng tròn */ }
#submit-btn-5dt.loading #loading-indicator { display: block; /* Hiển thị khi nút đang loading */ }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .hidden-icon { display: none; }
.developed-by { position: absolute; bottom: 10px; left: 100; width: 100%; text-align: center; font-family: 'arial', sans-serif; font-size: 15px; color: #b48401; opacity: 0.8; white-space: pre; margin-bottom: 10px; } .selected-script { background-color: rgb(0, 255, 170); } @media (max-width: 768px) { body { flex-direction: column; }
- Assistant