From ca686cb881740e8627e8d999340d16a38dcb1483 Mon Sep 17 00:00:00 2001 From: Pasquale De Lucia Date: Mon, 19 Jan 2026 11:45:54 +0100 Subject: [PATCH] feat: e2e --- index.html | 490 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 480 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 5fb7b3a..7060fd3 100644 --- a/index.html +++ b/index.html @@ -261,11 +261,140 @@ visibility: hidden !important; } } + + #password-dialog { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); + backdrop-filter: blur(5px); + z-index: 1000; + align-items: center; + justify-content: center; + } + + #password-dialog.visible { + display: flex; + } + + #password-dialog .dialog-content { + background: var(--elevated); + padding: 30px; + border-radius: 12px; + box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); + max-width: 400px; + width: 90%; + } + + #password-dialog h2 { + margin: 0 0 10px 0; + font-size: 24px; + font-weight: 600; + } + + #password-dialog p { + margin: 0 0 20px 0; + color: #666; + line-height: 1.5; + } + + @media (prefers-color-scheme: dark) { + #password-dialog p { + color: #999; + } + } + + #password-dialog input { + width: 100%; + padding: 12px; + border: 1px solid #ddd; + border-radius: 6px; + font-size: 16px; + margin-bottom: 15px; + font-family: system-ui; + background: var(--elevated); + color: var(--text); + } + + @media (prefers-color-scheme: dark) { + #password-dialog input { + border-color: #444; + } + } + + #password-dialog input:focus { + outline: 2px solid var(--outline); + border-color: transparent; + } + + #password-dialog .buttons { + display: flex; + gap: 10px; + justify-content: flex-end; + } + + #password-dialog button { + padding: 10px 20px; + border: none; + border-radius: 6px; + font-size: 16px; + font-weight: 500; + cursor: pointer; + font-family: system-ui; + } + + #password-dialog button.primary { + background: #0569fa; + color: white; + } + + #password-dialog button.primary:hover { + background: #3c86f3; + } + + #password-dialog button.secondary { + background: transparent; + color: var(--text); + border: 1px solid #ddd; + } + + @media (prefers-color-scheme: dark) { + #password-dialog button.secondary { + border-color: #444; + } + } + + #password-dialog button.secondary:hover { + background: rgba(0, 0, 0, 0.05); + } + + @media (prefers-color-scheme: dark) { + #password-dialog button.secondary:hover { + background: rgba(255, 255, 255, 0.05); + } + } + + #password-dialog .checkbox-container { + display: flex; + align-items: center; + gap: 8px; + margin-bottom: 15px; + } + + #password-dialog .error { + color: #d32f2f; + font-size: 14px; + margin-top: -10px; + margin-bottom: 10px; + }
+ + + +