diff --git a/.env b/.env deleted file mode 100644 index ac7ad1b..0000000 --- a/.env +++ /dev/null @@ -1,5 +0,0 @@ -VITE_DEBUG_MODE=true - -VITE_EFC_API_URL=http://192.168.1.79:8000/api/v1 -VITE_EFC_MICROSERVICE_URL=http://192.168.1.79:8001/api/v1 -VITE_EFC_MICROSERVICE_URL_2=http://192.168.1.79:8001/api/v2 diff --git a/public/images/empresaria001.webp b/public/images/empresaria001.webp new file mode 100644 index 0000000..5e4ea8f Binary files /dev/null and b/public/images/empresaria001.webp differ diff --git a/public/images/sistemagestion002.webp b/public/images/sistemagestion002.webp new file mode 100644 index 0000000..978607e Binary files /dev/null and b/public/images/sistemagestion002.webp differ diff --git a/src/api/pedimentoCompleto.ts b/src/api/pedimentoCompleto.ts new file mode 100644 index 0000000..f3f08fe --- /dev/null +++ b/src/api/pedimentoCompleto.ts @@ -0,0 +1,68 @@ +// src\api\pedimentoCompleto.ts +import { fetchWithAuth } from '../fetchWithAuth'; + +export interface PedimentoCompleto { + id: string; + organizacion: string; + pedimento: string; + pedimento_numero: string; + archivo: string; + document_type: number; + size: number; + extension: string; + fuente: number; + created_at: string; + updated_at: string; +} + +export interface PedimentoCompletoResponse { + count: number; + next: string | null; + previous: string | null; + results: PedimentoCompleto[]; +} + +export interface DocumentFilters { + document_type?: string; + archivo__icontains?: string; + extension?: string; + created_at__date?: string; + ordering?: string; +} + +const API_URL = (import.meta as any).env.VITE_EFC_API_URL; + +export async function fetchPedimentoCompleto( + pedimentoId: string, + page: number = 1, + pageSize: number = 10, + filters: DocumentFilters = {} +): Promise { + try { + // Construir URL con filtros + const params = new URLSearchParams({ + page: page.toString(), + page_size: pageSize.toString(), + pedimento: pedimentoId + }); + + // Agregar filtros si existen + Object.entries(filters).forEach(([key, value]) => { + if (value !== undefined && value !== '') { + params.append(key, value.toString()); + } + }); + + // const res = await fetchWithAuth(`${API_URL}/record/documents/?${params.toString()}`); + const res = await fetchWithAuth(`${API_URL}/record/pedimento-documents/?${params.toString()}`); + + if (!res.ok) { + throw new Error('No autorizado o error en la petición'); + } + + return res.json(); + } catch (error) { + console.error('Error in fetchPedimentoCompleto:', error); + throw error; + } +} diff --git a/src/pages/LandingAnimated.jsx b/src/pages/LandingAnimated.jsx index 247ce27..21d7c41 100644 --- a/src/pages/LandingAnimated.jsx +++ b/src/pages/LandingAnimated.jsx @@ -13,6 +13,7 @@ export default function LandingAnimated() { message: '' }); + const currentYear = new Date().getFullYear(); const observerRef = useRef(null); const sectionsRef = useRef({}); @@ -101,7 +102,7 @@ export default function LandingAnimated() { // Estadísticas animadas const stats = [ - { number: '500+', label: 'Agentes Aduanales', icon: '🏢' }, + { number: '350+', label: 'Clientes', icon: '🏢' }, { number: '15,000+', label: 'Pedimentos Procesados', icon: '📋' }, { number: '99.9%', label: 'Uptime Garantizado', icon: '⚡' }, { number: '24/7', label: 'Soporte Especializado', icon: '🛡️' } @@ -115,24 +116,31 @@ export default function LandingAnimated() { ? 'bg-white/95 backdrop-blur-md shadow-lg border-b border-gray-200' : 'bg-transparent' }`}> -
-
+
+

EFC

-
@@ -196,21 +220,33 @@ export default function LandingAnimated() { {/* Hero Section con efectos de gradiente animado */} -
- {/* Background con gradientes animados */} -
-
+
+ {/* Background con imagen */} +
+ {/* Imagen de fondo */} +
+ {/* Overlay para oscurecer la imagen y mejorar legibilidad */} +
+
+ + {/* Efectos adicionales */}
-
+

La plataforma líder desarrollada por - @AduanaSoft para - digitalizar y optimizar + Aduanasoft® para + digitalizar y optimizar {' '}todos tus procesos de comercio exterior con tecnología de vanguardia

@@ -279,7 +315,7 @@ export default function LandingAnimated() { > Comenzar Ahora - + Ver Demo @@ -308,11 +344,11 @@ export default function LandingAnimated() {

{/* Floating cards con efectos */} -
+
{[ { icon: '🚀', title: 'Rápido', desc: 'Procesamiento instantáneo' }, { icon: '🔒', title: 'Seguro', desc: 'Cifrado de nivel bancario' }, - { icon: '📊', title: 'Inteligente', desc: 'IA para optimización' } + { icon: '📊', title: 'Inteligente', desc: 'IA para optimización' }, ].map((feature, index) => (
-
{feature.icon}
-

{feature.title}

+
{feature.icon}
+

{feature.title}

{feature.desc}

))} @@ -334,10 +370,10 @@ export default function LandingAnimated() {
{/* Scroll indicator animado */} -
+