diff --git a/public/index.html b/public/index.html index 8af3bed..46293a8 100644 --- a/public/index.html +++ b/public/index.html @@ -1,9 +1,9 @@ - + - Teste de Dispositivos Pro + Device Tester Pro @@ -45,10 +45,65 @@ } header { + display: flex; + flex-direction: column; + gap: 15px; + margin-bottom: 30px; + } + + /* Shared styles for header buttons */ + .theme-toggle, + .icon-btn { + background: none; + border: 2px solid var(--border-color); + color: var(--text-color); + padding: 0 12px; + border-radius: 8px; + cursor: pointer; + font-weight: 600; + transition: all 0.2s; + font-family: inherit; + font-size: 1.2rem; + /* Larger emoji */ + display: inline-flex; + align-items: center; + justify-content: center; + height: 40px; + /* Enforce consistent height */ + box-sizing: border-box; + min-width: 44px; + } + + .theme-toggle { + font-size: 0.9rem; + /* Restore font size for theme text */ + gap: 6px; + } + + .theme-toggle:hover, + .icon-btn:hover { + background-color: var(--border-color); + } + + .icon-btn.active { + background-color: var(--primary); + color: white; + border-color: var(--primary); + } + + .header-top { display: flex; justify-content: space-between; align-items: center; - margin-bottom: 30px; + width: 100%; + flex-wrap: wrap; + gap: 10px; + } + + .header-controls { + display: flex; + align-items: center; + gap: 8px; } h1 { @@ -60,20 +115,7 @@ -webkit-text-fill-color: transparent; } - .theme-toggle { - background: none; - border: 2px solid var(--border-color); - color: var(--text-color); - padding: 8px 12px; - border-radius: 8px; - cursor: pointer; - font-weight: 600; - transition: all 0.2s; - } - .theme-toggle:hover { - background-color: var(--border-color); - } .test-card { background-color: var(--card-bg); @@ -104,7 +146,7 @@ font-size: 0.9rem; } - select, + select.device-select, textarea { width: 100%; padding: 10px; @@ -209,80 +251,88 @@
-

Teste de Dispositivos

- +
+

Device Tester Pro

+
+ + + +
+ +
+
- +
-

📡 Rede e Navegador

+

📡 Network & Browser

IPv4: ...

IPv6: ...

- +
- +
-

🔋 Bateria

-

Detectando...

+

🔋 Battery

+

Detecting...

- +
-

🖥️ Tela & Dead Pixel

-

Cicla entre cores primárias para identificar pixels mortos.

- +

🖥️ Screen & Dead Pixel

+

Cycles through primary colors to identify dead pixels.

+
- +
-

📳 Vibração

-

Funciona apenas em dispositivos móveis compatíveis.

- +

📳 Vibration

+

Works only on compatible mobile devices.

+
-

📷 Webcam

- +

📷 Webcam

+
- - + +
-

Status: Aguardando...

+

Status: Waiting...

- +
-

🎤 Microfone

- +

🎤 Microphone

+
- - - + + +
-

Status: Aguardando...

+

Status: Waiting...

- +
-

🔊 Saída de Som

- +

🔊 Sound Output

+
- - + +
@@ -293,10 +343,169 @@
-
Clique para trocar a cor. Escura para sair.
+
Click to change color. Esc to exit.