diff --git a/public/style/account.css b/public/style/account.css index 992ff67..ff51fe6 100755 --- a/public/style/account.css +++ b/public/style/account.css @@ -1423,3 +1423,64 @@ body { font-size: 12px; color: #666; } + +.pairing-modal { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; +} + +.pairing-modal-content { + background-color: white; + padding: 2rem; + border-radius: 8px; + width: 90%; + max-width: 500px; +} + +.pairing-form { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.form-group { + display: flex; + flex-direction: column; + gap: 0.5rem; +} + +.form-group label { + font-weight: bold; +} + +.button-group { + display: flex; + gap: 1rem; + justify-content: flex-end; + margin-top: 1rem; +} + +.button-group button { + padding: 0.5rem 1rem; + border-radius: 4px; + cursor: pointer; +} + +.confirm-button { + background-color: var(--accent-color); + color: white; + border: none; +} + +.cancel-button { + background-color: #ccc; + border: none; +} diff --git a/src/pages/account/account.ts b/src/pages/account/account.ts index 617dddb..aac41e4 100755 --- a/src/pages/account/account.ts +++ b/src/pages/account/account.ts @@ -20,7 +20,7 @@ declare global { updateNavbarBanner: (bannerUrl: string) => void; saveBannerToLocalStorage: (bannerUrl: string) => void; loadSavedBanner: () => void; - cancelAddRow: () => void; + cancelAddRowPairing: () => void; saveName: (cell: HTMLElement, input: HTMLInputElement) => void; showProcessNotifications: (processName: string) => void; handleLogout: () => void; @@ -29,10 +29,10 @@ declare global { updateNavbarName: (name: string) => void; updateNavbarLastName: (lastName: string) => void; showAlert: (title: string, text?: string, icon?: string) => void; - addRow: () => void; - confirmRow: () => void; - cancelRow: () => void; - deleteRow: (button: HTMLButtonElement) => void; + addRowPairing: () => void; + confirmRowPairing: () => void; + cancelRowPairing: () => void; + deleteRowPairing: (button: HTMLButtonElement) => void; generateRecoveryWords: () => string[]; exportUserData: () => void; updateActionButtons: () => void; @@ -154,18 +154,18 @@ class AccountElement extends HTMLElement {