airdrop-tracker-pro / components /addAirdropModal.js
xinnn32's picture
BUATKAN SAYA LIST ATAU TRACKING AIRDROP DENGAN GRAFIKNYA JUGA DAN PASTIKAN SAYA BISA TAMBAH INPUT AIRDROPNYA
ba41907 verified
class CustomAddAirdropModal extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: 'open' });
this.isEditMode = false;
this.currentAirdropId = null;
}
connectedCallback() {
this.render();
this.setupEventListeners();
}
render() {
this.shadowRoot.innerHTML = `
<style>
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.modal-overlay.active {
opacity: 1;
visibility: visible;
}
.modal-content {
background-color: white;
border-radius: 0.5rem;
width: 90%;
max-width: 500px;
max-height: 90vh;
overflow-y: auto;
transform: translateY(-20px);
transition: all 0.3s ease;
}
.modal-overlay.active .modal-content {
transform: translateY(0);
}
.modal-header {
padding: 1.5rem;
border-bottom: 1px solid #e5e7eb;
display: flex;