diff --git a/qr-code-generator.html b/qr-code-generator.html index cacdee2..19e2e86 100644 --- a/qr-code-generator.html +++ b/qr-code-generator.html @@ -51,7 +51,8 @@ margin-bottom: 6px; } -input[type=“text”] { +input[type="text"], +input[type="password"] { width: 100%; font-size: 16px; font-family: Helvetica, Arial, sans-serif; @@ -64,7 +65,8 @@ appearance: none; } -input[type=“text”]:focus { +input[type="text"]:focus, +input[type="password"]:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); @@ -201,46 +203,154 @@ .error.visible { display: block; } + +.mode-tabs { +display: flex; +gap: 4px; +background: #f5f5f7; +border-radius: 10px; +padding: 4px; +margin-bottom: 16px; +} + +.mode-tab { +flex: 1; +font-family: Helvetica, Arial, sans-serif; +font-size: 14px; +font-weight: 500; +padding: 8px 12px; +border-radius: 7px; +border: none; +background: transparent; +color: #1d1d1f; +cursor: pointer; +width: auto; +margin: 0; +transition: background 0.15s ease; +} + +.mode-tab.active { +background: #fff; +box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); +} + +.mode-panel { +display: none; +} + +.mode-panel.active { +display: block; +} + +.field { +margin-bottom: 12px; +} + +.field:last-child { +margin-bottom: 0; +} + +.password-wrap { +position: relative; +} + +.password-wrap input { +padding-right: 64px; +} + +.password-toggle { +position: absolute; +right: 8px; +top: 50%; +transform: translateY(-50%); +background: transparent; +border: none; +color: #0071e3; +font-size: 13px; +padding: 4px 8px; +width: auto; +margin: 0; +cursor: pointer; +} + +.hint { +margin: 10px 0 0; +font-size: 12px; +color: #6e6e73; +line-height: 1.4; +}
Paste any URL or text to create a scannable code.
+Create a scannable code for a URL, text, or WiFi network.
Not sure? Leave it on WPA / WPA2 / WPA3 — that covers almost every home WiFi network.
+