Download index.html from OnlyDi/myfarma: direct link, hf CLI and curl.
- Browser
- Download file 28.9 kB
-
https://huggingface.co/spaces/OnlyDi/myfarma/resolve/main/index.html
- Command line
-
hf download hf://spaces/OnlyDi/myfarma/index.html
-
curl -L -o index.html https://huggingface.co/spaces/OnlyDi/myfarma/resolve/main/index.html
28.9 kB
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>FarmaPOS - Sistema de Punto de Venta</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .scrollbar-hide::-webkit-scrollbar { | |
| display: none; | |
| } | |
| .scrollbar-hide { | |
| -ms-overflow-style: none; | |
| scrollbar-width: none; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| .animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="hidden md:flex md:flex-shrink-0"> | |
| <div class="flex flex-col w-64 bg-blue-800 text-white"> | |
| <div class="flex items-center justify-center h-16 px-4 border-b border-blue-700"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-pills text-2xl mr-2 text-blue-200"></i> | |
| <span class="text-xl font-bold">Farma<span class="text-blue-200">POS</span></span> | |
| </div> | |
| </div> | |
| <div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto"> | |
| <!-- Menú principal --> | |
| <nav> | |
| <div class="space-y-1"> | |
| <a href="#" class="flex items-center px-2 py-3 text-sm font-medium rounded-md bg-blue-900 text-white group"> | |
| <i class="fas fa-home mr-3 text-blue-200"></i> | |
| Inicio | |
| </a> | |
| <a href="#" class="flex items-center px-2 py-3 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-shopping-cart mr-3 text-blue-200"></i> | |
| Ventas | |
| </a> | |
| <a href="#" class="flex items-center px-2 py-3 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-boxes mr-3 text-blue-200"></i> | |
| Inventario | |
| </a> | |
| <a href="#" class="flex items-center px-2 py-3 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-users mr-3 text-blue-200"></i> | |
| Clientes | |
| </a> | |
| <a href="#" class="flex items-center px-2 py-3 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-chart-line mr-3 text-blue-200"></i> | |
| Reportes | |
| </a> | |
| <a href="#" class="flex items-center px-2 py-3 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-cog mr-3 text-blue-200"></i> | |
| Configuración | |
| </a> | |
| </div> | |
| <!-- Categorías --> | |
| <div class="mt-8"> | |
| <h3 class="px-2 text-xs font-semibold text-blue-200 uppercase tracking-wider"> | |
| Categorías | |
| </h3> | |
| <div class="mt-2 space-y-1"> | |
| <a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-heartbeat mr-3 text-red-200"></i> | |
| Medicamentos | |
| </a> | |
| <a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-baby mr-3 text-pink-200"></i> | |
| Cuidado Infantil | |
| </a> | |
| <a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-tooth mr-3 text-white"></i> | |
| Higiene Bucal | |
| </a> | |
| <a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-spa mr-3 text-green-200"></i> | |
| Dermocosmética | |
| </a> | |
| <a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md hover:bg-blue-700 hover:text-white group"> | |
| <i class="fas fa-eye mr-3 text-purple-200"></i> | |
| Cuidado Visual | |
| </a> | |
| </div> | |
| </div> | |
| </nav> | |
| </div> | |
| <div class="p-4 border-t border-blue-700"> | |
| <div class="flex items-center"> | |
| <img class="w-10 h-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="Usuario"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-white">Dra. Ana López</p> | |
| <p class="text-xs font-medium text-blue-200">Farmacéutica</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Contenido principal --> | |
| <div class="flex flex-col flex-1 overflow-hidden"> | |
| <!-- Barra superior --> | |
| <div class="flex items-center justify-between h-16 px-4 bg-white border-b border-gray-200"> | |
| <div class="flex items-center md:hidden"> | |
| <button class="text-gray-500 hover:text-gray-600 focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| <!-- Barra de búsqueda --> | |
| <div class="flex-1 max-w-md mx-4"> | |
| <div class="relative"> | |
| <div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"> | |
| <i class="fas fa-search text-gray-400"></i> | |
| </div> | |
| <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm" placeholder="Buscar medicamento..."> | |
| </div> | |
| </div> | |
| <!-- Iconos de la derecha --> | |
| <div class="flex items-center space-x-4"> | |
| <button class="p-1 text-gray-400 hover:text-gray-500 focus:outline-none"> | |
| <i class="fas fa-bell"></i> | |
| </button> | |
| <button class="p-1 text-gray-400 hover:text-gray-500 focus:outline-none"> | |
| <i class="fas fa-question-circle"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Contenido --> | |
| <div class="flex flex-1 overflow-hidden"> | |
| <!-- Panel de productos --> | |
| <div class="flex-1 overflow-y-auto p-4"> | |
| <div class="mb-6"> | |
| <h2 class="text-lg font-semibold text-gray-800">Venta actual</h2> | |
| <div class="flex items-center mt-2 space-x-4"> | |
| <span class="text-sm text-gray-600">Cliente: </span> | |
| <select class="border border-gray-300 rounded-md px-3 py-1 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500"> | |
| <option>Público en general</option> | |
| <option>Cliente frecuente</option> | |
| <option>Seguro médico</option> | |
| </select> | |
| <button class="ml-auto bg-blue-600 hover:bg-blue-700 text-white px-3 py-1 rounded-md text-sm flex items-center"> | |
| <i class="fas fa-plus mr-1"></i> Nuevo cliente | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Categorías rápidas --> | |
| <div class="mb-6 overflow-x-auto"> | |
| <div class="flex space-x-2 pb-2"> | |
| <button class="px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-xs font-medium whitespace-nowrap"> | |
| Todos | |
| </button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-full text-xs font-medium whitespace-nowrap"> | |
| Analgésicos | |
| </button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-full text-xs font-medium whitespace-nowrap"> | |
| Antibióticos | |
| </button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-full text-xs font-medium whitespace-nowrap"> | |
| Antihistamínicos | |
| </button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-full text-xs font-medium whitespace-nowrap"> | |
| Vitaminas | |
| </button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-full text-xs font-medium whitespace-nowrap"> | |
| Dermatológicos | |
| </button> | |
| <button class="px-3 py-1 bg-gray-100 text-gray-800 rounded-full text-xs font-medium whitespace-nowrap"> | |
| Gastrointestinales | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Grid de productos --> | |
| <div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4"> | |
| <!-- Producto 1 --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden border border-gray-100 hover:shadow-md transition-shadow duration-200"> | |
| <div class="p-3 bg-blue-50"> | |
| <div class="h-32 flex items-center justify-center"> | |
| <img src="https://via.placeholder.com/150x150?text=Medicamento" alt="Producto" class="max-h-full max-w-full"> | |
| </div> | |
| </div> | |
| <div class="p-3"> | |
| <h3 class="font-medium text-gray-900 text-sm truncate">Paracetamol 500mg x 10 tabletas</h3> | |
| <p class="text-xs text-gray-500 mb-2">Genérico</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-blue-600">$45.00</span> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">En stock</span> | |
| </div> | |
| <button class="mt-2 w-full bg-blue-600 hover:bg-blue-700 text-white py-1 px-3 rounded text-sm flex items-center justify-center"> | |
| <i class="fas fa-cart-plus mr-1"></i> Agregar | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Producto 2 --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden border border-gray-100 hover:shadow-md transition-shadow duration-200"> | |
| <div class="p-3 bg-pink-50"> | |
| <div class="h-32 flex items-center justify-center"> | |
| <img src="https://via.placeholder.com/150x150?text=Jarabe" alt="Producto" class="max-h-full max-w-full"> | |
| </div> | |
| </div> | |
| <div class="p-3"> | |
| <h3 class="font-medium text-gray-900 text-sm truncate">Jarabe para la tos 120ml</h3> | |
| <p class="text-xs text-gray-500 mb-2">Marca reconocida</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-blue-600">$89.50</span> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">En stock</span> | |
| </div> | |
| <button class="mt-2 w-full bg-blue-600 hover:bg-blue-700 text-white py-1 px-3 rounded text-sm flex items-center justify-center"> | |
| <i class="fas fa-cart-plus mr-1"></i> Agregar | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Producto 3 --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden border border-gray-100 hover:shadow-md transition-shadow duration-200"> | |
| <div class="p-3 bg-purple-50"> | |
| <div class="h-32 flex items-center justify-center"> | |
| <img src="https://via.placeholder.com/150x150?text=Vitaminas" alt="Producto" class="max-h-full max-w-full"> | |
| </div> | |
| </div> | |
| <div class="p-3"> | |
| <h3 class="font-medium text-gray-900 text-sm truncate">Vitamina C 1000mg x 30 cápsulas</h3> | |
| <p class="text-xs text-gray-500 mb-2">Suplemento</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-blue-600">$120.00</span> | |
| <span class="text-xs bg-yellow-100 text-yellow-800 px-2 py-1 rounded">Últimas unidades</span> | |
| </div> | |
| <button class="mt-2 w-full bg-blue-600 hover:bg-blue-700 text-white py-1 px-3 rounded text-sm flex items-center justify-center"> | |
| <i class="fas fa-cart-plus mr-1"></i> Agregar | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Producto 4 --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden border border-gray-100 hover:shadow-md transition-shadow duration-200"> | |
| <div class="p-3 bg-green-50"> | |
| <div class="h-32 flex items-center justify-center"> | |
| <img src="https://via.placeholder.com/150x150?text=Crema" alt="Producto" class="max-h-full max-w-full"> | |
| </div> | |
| </div> | |
| <div class="p-3"> | |
| <h3 class="font-medium text-gray-900 text-sm truncate">Crema hidratante 50ml</h3> | |
| <p class="text-xs text-gray-500 mb-2">Dermatológica</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-blue-600">$75.25</span> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">En stock</span> | |
| </div> | |
| <button class="mt-2 w-full bg-blue-600 hover:bg-blue-700 text-white py-1 px-3 rounded text-sm flex items-center justify-center"> | |
| <i class="fas fa-cart-plus mr-1"></i> Agregar | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Producto 5 --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden border border-gray-100 hover:shadow-md transition-shadow duration-200"> | |
| <div class="p-3 bg-red-50"> | |
| <div class="h-32 flex items-center justify-center"> | |
| <img src="https://via.placeholder.com/150x150?text=Antibiotico" alt="Producto" class="max-h-full max-w-full"> | |
| </div> | |
| </div> | |
| <div class="p-3"> | |
| <h3 class="font-medium text-gray-900 text-sm truncate">Amoxicilina 500mg x 12 cápsulas</h3> | |
| <p class="text-xs text-gray-500 mb-2">Con receta</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-blue-600">$132.00</span> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">En stock</span> | |
| </div> | |
| <button class="mt-2 w-full bg-blue-600 hover:bg-blue-700 text-white py-1 px-3 rounded text-sm flex items-center justify-center"> | |
| <i class="fas fa-cart-plus mr-1"></i> Agregar | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Producto 6 --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden border border-gray-100 hover:shadow-md transition-shadow duration-200"> | |
| <div class="p-3 bg-yellow-50"> | |
| <div class="h-32 flex items-center justify-center"> | |
| <img src="https://via.placeholder.com/150x150?text=Termometro" alt="Producto" class="max-h-full max-w-full"> | |
| </div> | |
| </div> | |
| <div class="p-3"> | |
| <h3 class="font-medium text-gray-900 text-sm truncate">Termómetro digital</h3> | |
| <p class="text-xs text-gray-500 mb-2">Accesorio médico</p> | |
| <div class="flex justify-between items-center"> | |
| <span class="font-bold text-blue-600">$199.00</span> | |
| <span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">En stock</span> | |
| </div> | |
| <button class="mt-2 w-full bg-blue-600 hover:bg-blue-700 text-white py-1 px-3 rounded text-sm flex items-center justify-center"> | |
| <i class="fas fa-cart-plus mr-1"></i> Agregar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Panel del carrito --> | |
| <div class="w-80 border-l border-gray-200 bg-white flex flex-col"> | |
| <div class="p-4 border-b border-gray-200"> | |
| <h2 class="text-lg font-semibold text-gray-800">Carrito de compras</h2> | |
| <div class="flex items-center mt-1"> | |
| <span class="text-sm text-gray-600">Venta #1254</span> | |
| <button class="ml-auto text-blue-600 hover:text-blue-800 text-sm"> | |
| <i class="fas fa-trash-alt mr-1"></i> Limpiar | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Lista de productos en el carrito --> | |
| <div class="flex-1 overflow-y-auto p-4"> | |
| <div class="space-y-4"> | |
| <!-- Producto en carrito 1 --> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-12 w-12 bg-blue-50 rounded-md flex items-center justify-center"> | |
| <i class="fas fa-pills text-blue-400"></i> | |
| </div> | |
| <div class="ml-3 flex-1"> | |
| <h4 class="text-sm font-medium text-gray-900">Paracetamol 500mg</h4> | |
| <p class="text-xs text-gray-500">Genérico</p> | |
| <div class="flex items-center mt-1"> | |
| <div class="flex border border-gray-300 rounded-md"> | |
| <button class="px-2 py-1 text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-minus text-xs"></i> | |
| </button> | |
| <input type="text" value="2" class="w-8 text-center border-x border-gray-300 text-sm"> | |
| <button class="px-2 py-1 text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-plus text-xs"></i> | |
| </button> | |
| </div> | |
| <span class="ml-auto font-medium text-sm">$90.00</span> | |
| </div> | |
| </div> | |
| <button class="ml-2 text-gray-400 hover:text-red-500"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <!-- Producto en carrito 2 --> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-12 w-12 bg-pink-50 rounded-md flex items-center justify-center"> | |
| <i class="fas fa-prescription-bottle-alt text-pink-400"></i> | |
| </div> | |
| <div class="ml-3 flex-1"> | |
| <h4 class="text-sm font-medium text-gray-900">Jarabe para la tos</h4> | |
| <p class="text-xs text-gray-500">120ml</p> | |
| <div class="flex items-center mt-1"> | |
| <div class="flex border border-gray-300 rounded-md"> | |
| <button class="px-2 py-1 text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-minus text-xs"></i> | |
| </button> | |
| <input type="text" value="1" class="w-8 text-center border-x border-gray-300 text-sm"> | |
| <button class="px-2 py-1 text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-plus text-xs"></i> | |
| </button> | |
| </div> | |
| <span class="ml-auto font-medium text-sm">$89.50</span> | |
| </div> | |
| </div> | |
| <button class="ml-2 text-gray-400 hover:text-red-500"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <!-- Producto en carrito 3 --> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-12 w-12 bg-purple-50 rounded-md flex items-center justify-center"> | |
| <i class="fas fa-capsules text-purple-400"></i> | |
| </div> | |
| <div class="ml-3 flex-1"> | |
| <h4 class="text-sm font-medium text-gray-900">Vitamina C 1000mg</h4> | |
| <p class="text-xs text-gray-500">30 cápsulas</p> | |
| <div class="flex items-center mt-1"> | |
| <div class="flex border border-gray-300 rounded-md"> | |
| <button class="px-2 py-1 text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-minus text-xs"></i> | |
| </button> | |
| <input type="text" value="1" class="w-8 text-center border-x border-gray-300 text-sm"> | |
| <button class="px-2 py-1 text-gray-600 hover:bg-gray-100"> | |
| <i class="fas fa-plus text-xs"></i> | |
| </button> | |
| </div> | |
| <span class="ml-auto font-medium text-sm">$120.00</span> | |
| </div> | |
| </div> | |
| <button class="ml-2 text-gray-400 hover:text-red-500"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Resumen de compra --> | |
| <div class="p-4 border-t border-gray-200"> | |
| <div class="space-y-3"> | |
| <div class="flex justify-between"> | |
| <span class="text-sm text-gray-600">Subtotal:</span> | |
| <span class="text-sm font-medium">$299.50</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-sm text-gray-600">Descuento:</span> | |
| <span class="text-sm font-medium text-green-600">-$15.00</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-sm text-gray-600">IVA (16%):</span> | |
| <span class="text-sm font-medium">$45.52</span> | |
| </div> | |
| <div class="flex justify-between pt-2 border-t border-gray-200"> | |
| <span class="font-semibold">Total:</span> | |
| <span class="font-bold text-lg">$330.02</span> | |
| </div> | |
| </div> | |
| <!-- Botones de acción --> | |
| <div class="mt-4 space-y-2"> | |
| <button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md flex items-center justify-center"> | |
| <i class="fas fa-credit-card mr-2"></i> Cobrar | |
| </button> | |
| <button class="w-full bg-gray-200 hover:bg-gray-300 text-gray-800 py-2 px-4 rounded-md flex items-center justify-center"> | |
| <i class="fas fa-file | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=OnlyDi/myfarma" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |