From ab3eb8b1c41d4a2054c8c8fd2734cbf8680bfdea Mon Sep 17 00:00:00 2001 From: raven Date: Thu, 29 Jan 2026 11:46:36 -0300 Subject: [PATCH] add landing page --- frontend/index.html | 167 +++++++++++++++++++++++++++++++++++++++++- frontend/src/main.jsx | 17 +++++ 2 files changed, 182 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index c20fbd3..ddb84fe 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,13 +1,176 @@ - + - frontend + Control de Patentes - ALPR + + + + + +
+ + + + +
+ + +
Control de Patentes
+
Cargando sistema
+ + +
+
+
+
+
+ + + diff --git a/frontend/src/main.jsx b/frontend/src/main.jsx index b9a1a6d..7bd9f4e 100644 --- a/frontend/src/main.jsx +++ b/frontend/src/main.jsx @@ -1,10 +1,27 @@ import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import './index.css' +import './i18n' import App from './App.jsx' +// Función para remover la pantalla de carga +const removeLoadingScreen = () => { + const loadingScreen = document.getElementById('loading-screen'); + if (loadingScreen) { + loadingScreen.classList.add('fade-out'); + setTimeout(() => { + loadingScreen.remove(); + }, 500); + } +}; + +// Renderizar React y remover loading screen createRoot(document.getElementById('root')).render( , ) + +// Remover loading screen cuando React esté montado +// Pequeño delay para asegurar que la UI esté lista +setTimeout(removeLoadingScreen, 100);