feat(branding): agregar logotipos e iconos oficiales de OneverAccess y badge de build version 2026.10.14

This commit is contained in:
Carlos Tello
2026-10-14 07:26:04 -03:00
parent 49b10362ae
commit dc8fb54983
97 changed files with 145 additions and 26 deletions
+71 -10
View File
@@ -10,6 +10,7 @@ import { hardwareApi } from '../api/hardwareApi';
import { useWebSocket } from '../hooks/useWebSocket';
import { useTheme } from '../hooks/useTheme';
import { CameraScannerModal } from '../components/scanner/CameraScannerModal';
import { APP_VERSION, APP_BUILD } from '../version';
import {
WorkstationConfig,
ActiveTicket,
@@ -322,12 +323,35 @@ export const ControlPostView: React.FC = () => {
}}
>
<div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}>
<div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
<span style={{ fontSize: '1.4rem' }}>🛡️</span>
<div style={{ display: 'flex', alignItems: 'center', gap: '0.65rem' }}>
<img
src={theme === 'dark' ? '/logo_mini_dark.png' : '/logo_mini_light.png'}
alt="OnEverAccess"
style={{ width: '28px', height: '28px', objectFit: 'contain' }}
onError={(e) => {
(e.target as HTMLImageElement).src = '/logo_mini.png';
}}
/>
<div>
<h1 style={{ fontSize: '1.1rem', fontWeight: 700, margin: 0, lineHeight: 1.2 }}>
OnEverControl
</h1>
<div style={{ display: 'flex', alignItems: 'center', gap: '0.45rem' }}>
<h1 style={{ fontSize: '1.05rem', fontWeight: 700, margin: 0, lineHeight: 1.2 }}>
OnEverControl
</h1>
<span
style={{
fontSize: '0.65rem',
padding: '0.12rem 0.4rem',
borderRadius: '4px',
backgroundColor: 'var(--hover-bg)',
border: '1px solid var(--border)',
color: 'var(--accent)',
fontWeight: 600,
letterSpacing: '0.02em',
}}
>
{APP_BUILD}
</span>
</div>
<span style={{ fontSize: '0.75rem', color: 'var(--text-muted)' }}>
{workstation} • {clock}
</span>
@@ -472,7 +496,14 @@ export const ControlPostView: React.FC = () => {
backgroundColor: 'var(--accent-primary)',
}}
>
<span style={{ fontSize: '1.4rem' }}>📷</span>
<img
src="/icons/identificaciones.ico"
alt=""
style={{ width: '22px', height: '22px', objectFit: 'contain' }}
onError={(e) => {
(e.target as HTMLElement).style.display = 'none';
}}
/>
ESCANEAR DNI CON CÁMARA
</button>
@@ -782,7 +813,15 @@ export const ControlPostView: React.FC = () => {
gap: '0.5rem',
}}
>
<span>🟢 En Predio (Activos)</span>
<img
src="/icons/puesto-control.ico"
alt=""
style={{ width: '18px', height: '18px', objectFit: 'contain' }}
onError={(e) => {
(e.target as HTMLElement).style.display = 'none';
}}
/>
<span>En Predio (Tickets Activos)</span>
<span className="badge badge-info" style={{ fontSize: '0.8rem' }}>
{activeTickets.length}
</span>
@@ -804,7 +843,15 @@ export const ControlPostView: React.FC = () => {
gap: '0.5rem',
}}
>
<span>📜 Historial Movimientos BD</span>
<img
src="/icons/movimientos.ico"
alt=""
style={{ width: '18px', height: '18px', objectFit: 'contain' }}
onError={(e) => {
(e.target as HTMLElement).style.display = 'none';
}}
/>
<span>Historial Movimientos BD</span>
<span className="badge badge-neutral" style={{ fontSize: '0.8rem' }}>
{recentMovements.length}
</span>
@@ -1034,8 +1081,22 @@ export const ControlPostView: React.FC = () => {
gap: '1rem',
}}
>
<div style={{ fontSize: '0.8rem', color: 'var(--text-muted)' }}>
Acciones Rápidas de Emergencia (Auditoría inmediata):
<div style={{ fontSize: '0.8rem', color: 'var(--text-muted)', display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
<img
src="/logo_os.png"
alt=""
style={{ width: '16px', height: '16px', objectFit: 'contain' }}
onError={(e) => {
(e.target as HTMLElement).style.display = 'none';
}}
/>
<strong style={{ color: 'var(--text-secondary)' }}>OnEver Access</strong>
<span>·</span>
<span>{APP_VERSION}</span>
<span>·</span>
<span style={{ color: 'var(--accent)', fontWeight: 600 }}>{APP_BUILD}</span>
<span>·</span>
<span>Acciones Rápidas:</span>
</div>
<div style={{ display: 'flex', gap: '0.75rem' }}>
{selectedEntryModuleId > 0 && (
+30 -13
View File
@@ -7,6 +7,7 @@ import React, { useState, useEffect } from 'react';
import { useAuth } from '../context/AuthContext';
import { workstationApi, WorkstationListItem } from '../api/workstationApi';
import { useTheme } from '../hooks/useTheme';
import { APP_VERSION, APP_BUILD } from '../version';
export const LoginView: React.FC = () => {
const { login, workstation, setWorkstation } = useAuth();
@@ -104,37 +105,53 @@ export const LoginView: React.FC = () => {
}}
>
{/* Cabecera del Login */}
<div style={{ textAlign: 'center', marginBottom: '2rem' }}>
<div style={{ textAlign: 'center', marginBottom: '1.75rem' }}>
<div
style={{
width: '64px',
height: '64px',
borderRadius: '12px',
backgroundColor: 'var(--hover-bg)',
border: '1px solid var(--border)',
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: '2rem',
marginBottom: '1rem',
}}
>
🛡️
<img
src={theme === 'dark' ? '/logo_login_dark.png' : '/logo_login_light.png'}
alt="OnEver Access"
style={{ maxHeight: '52px', width: 'auto', objectFit: 'contain' }}
onError={(e) => {
(e.target as HTMLImageElement).src = '/logo_mini.png';
}}
/>
</div>
<h1
style={{
fontSize: '1.65rem',
fontWeight: 700,
margin: '0 0 0.4rem 0',
margin: '0 0 0.35rem 0',
color: 'var(--text-1)',
letterSpacing: '-0.02em',
}}
>
OnEverControl
</h1>
<p style={{ margin: 0, fontSize: '0.9rem', color: 'var(--text-2)' }}>
Puesto de Control Web • Modo Cliente Garita
</p>
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', gap: '0.5rem' }}>
<span style={{ fontSize: '0.88rem', color: 'var(--text-2)' }}>
Puesto de Control Web • Modo Garita
</span>
<span
style={{
fontSize: '0.68rem',
padding: '0.15rem 0.45rem',
borderRadius: '4px',
backgroundColor: 'var(--hover-bg)',
border: '1px solid var(--border)',
color: 'var(--accent)',
fontWeight: 600,
}}
>
{APP_BUILD}
</span>
</div>
</div>
{/* Alerta de Error */}
@@ -257,7 +274,7 @@ export const LoginView: React.FC = () => {
</form>
<div style={{ marginTop: '2rem', textAlign: 'center', fontSize: '0.75rem', color: 'var(--text-3)' }}>
OnEverControl Web v0.6.1-beta • Conectado a Microsoft SQL Server videoman
OnEver Access · Control Web {APP_VERSION} ({APP_BUILD}) • Conectado a Microsoft SQL Server
</div>
</div>
</div>