Add 3 files
Browse filesFiles changed (3)
- README.md+7-5
- index.html+402-19
- prompts.txtAdded
123452345678910111012---title: Testeeeemoji: 🚀colorFrom: pinkcolorTo: purpletitle: testeeeemoji: 🐳colorFrom: redcolorTo: bluesdk: staticpinned: falsetags: - deepsite---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-referenceCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference12345678910111213141516171819123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402<!doctype html><html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>My static Space</title> <link rel="stylesheet" href="style.css" /> </head> <body> <div class="card"> <h1>Welcome to your static Space!</h1> <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p> <p> Also don't forget to check the <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>. </p> </div> </body></html><!DOCTYPE html><html lang="pt-br"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Gestão Agrícola - Controle de Estoques</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"> <script> tailwind.config = { theme: { extend: { colors: { 'agriculture-light': '#f0f7f0', 'agriculture-primary': '#4caf50', 'agriculture-secondary': '#388e3c', 'agriculture-dark': '#2e7d32', 'agriculture-darker': '#1b5e20', } } } } </script> <style> .gradient-bg { background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%); } .card-hover:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); } .input-focus:focus { border-color: #4caf50; box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3); } .pulse-animation { animation: pulse 2s infinite; } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); } } </style></head><body class="gradient-bg min-h-screen"> <div class="container mx-auto px-4 py-8"> <!-- Header --> <header class="flex justify-between items-center mb-8"> <div class="flex items-center space-x-4"> <i class="fas fa-leaf text-4xl text-agriculture-darker"></i> <h1 class="text-3xl font-bold text-agriculture-darker">AgroGestão</h1> </div> <div class="flex items-center space-x-4"> <div class="relative"> <i class="fas fa-bell text-2xl text-agriculture-secondary cursor-pointer"></i> <span class="absolute -top-1 -right-1 h-4 w-4 bg-red-500 rounded-full text-white text-xs flex items-center justify-center">3</span> </div> <div class="flex items-center space-x-2"> <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="h-10 w-10 rounded-full border-2 border-agriculture-primary"> <span class="font-medium text-agriculture-darker">João Agricultor</span> </div> </div> </header>
<!-- Dashboard --> <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8"> <div class="bg-white rounded-xl shadow-md p-6 flex items-center justify-between transition-all duration-300 card-hover"> <div> <p class="text-gray-500">Total de Itens</p> <h3 class="text-3xl font-bold text-agriculture-dark">1,248</h3> </div> <div class="bg-agriculture-light p-4 rounded-full"> <i class="fas fa-boxes text-2xl text-agriculture-primary"></i> </div> </div> <div class="bg-white rounded-xl shadow-md p-6 flex items-center justify-between transition-all duration-300 card-hover"> <div> <p class="text-gray-500">Itens em Falta</p> <h3 class="text-3xl font-bold text-red-500">24</h3> </div> <div class="bg-red-50 p-4 rounded-full"> <i class="fas fa-exclamation-triangle text-2xl text-red-500"></i> </div> </div> <div class="bg-white rounded-xl shadow-md p-6 flex items-center justify-between transition-all duration-300 card-hover"> <div> <p class="text-gray-500">Itens Vencidos</p> <h3 class="text-3xl font-bold text-yellow-600">12</h3> </div> <div class="bg-yellow-50 p-4 rounded-full"> <i class="fas fa-clock text-2xl text-yellow-600"></i> </div> </div> <div class="bg-white rounded-xl shadow-md p-6 flex items-center justify-between transition-all duration-300 card-hover"> <div> <p class="text-gray-500">Novos Pedidos</p> <h3 class="text-3xl font-bold text-agriculture-primary">8</h3> </div> <div class="bg-agriculture-light p-4 rounded-full pulse-animation"> <i class="fas fa-truck-loading text-2xl text-agriculture-primary"></i> </div> </div> </div>
<!-- Main Content --> <div class="grid grid-cols-1 lg:grid-cols-3 gap-8"> <!-- Inventory List --> <div class="lg:col-span-2 bg-white rounded-xl shadow-md overflow-hidden"> <div class="p-6 bg-agriculture-primary text-white"> <div class="flex justify-between items-center"> <h2 class="text-2xl font-bold">Estoque Atual</h2> <div class="relative w-64"> <input type="text" placeholder="Buscar item..." class="w-full py-2 px-4 pr-10 rounded-lg bg-white bg-opacity-20 placeholder-white focus:outline-none input-focus"> <i class="fas fa-search absolute right-3 top-3 text-white"></i> </div> </div> </div> <div class="overflow-x-auto"> <table class="min-w-full divide-y divide-gray-200"> <thead class="bg-agriculture-light"> <tr> <th class="px-6 py-3 text-left text-xs font-medium text-agriculture-darker uppercase tracking-wider">Item</th> <th class="px-6 py-3 text-left text-xs font-medium text-agriculture-darker uppercase tracking-wider">Categoria</th> <th class="px-6 py-3 text-left text-xs font-medium text-agriculture-darker uppercase tracking-wider">Quantidade</th> <th class="px-6 py-3 text-left text-xs font-medium text-agriculture-darker uppercase tracking-wider">Validade</th> <th class="px-6 py-3 text-left text-xs font-medium text-agriculture-darker uppercase tracking-wider">Status</th> <th class="px-6 py-3 text-left text-xs font-medium text-agriculture-darker uppercase tracking-wider"></th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr class="hover:bg-agriculture-light transition-colors"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 bg-agriculture-light rounded-full flex items-center justify-center"> <i class="fas fa-seedling text-agriculture-primary"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Semente de Soja</div> <div class="text-sm text-gray-500">Cód: AG-2023-001</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Sementes</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">120 sacos</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">15/12/2024</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Disponível</span> </td> <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> <button class="text-agriculture-primary hover:text-agriculture-darker mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash-alt"></i></button> </td> </tr> <tr class="hover:bg-agriculture-light transition-colors"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 bg-agriculture-light rounded-full flex items-center justify-center"> <i class="fas fa-spray-can text-agriculture-primary"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Herbicida</div> <div class="text-sm text-gray-500">Cód: AG-2023-045</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Defensivos</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">45 litros</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">30/06/2023</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Vencendo</span> </td> <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> <button class="text-agriculture-primary hover:text-agriculture-darker mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash-alt"></i></button> </td> </tr> <tr class="hover:bg-agriculture-light transition-colors"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 bg-agriculture-light rounded-full flex items-center justify-center"> <i class="fas fa-tractor text-agriculture-primary"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Óleo para Trator</div> <div class="text-sm text-gray-500">Cód: AG-2023-112</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Máquinas</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">8 galões</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">15/03/2025</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Disponível</span> </td> <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> <button class="text-agriculture-primary hover:text-agriculture-darker mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash-alt"></i></button> </td> </tr> <tr class="hover:bg-agriculture-light transition-colors"> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10 bg-agriculture-light rounded-full flex items-center justify-center"> <i class="fas fa-vial text-agriculture-primary"></i> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">Fertilizante NPK</div> <div class="text-sm text-gray-500">Cód: AG-2023-078</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">Fertilizantes</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">32 sacos</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <div class="text-sm text-gray-900">10/10/2023</div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Crítico</span> </td> <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> <button class="text-agriculture-primary hover:text-agriculture-darker mr-3"><i class="fas fa-edit"></i></button> <button class="text-red-500 hover:text-red-700"><i class="fas fa-trash-alt"></i></button> </td> </tr> </tbody> </table> </div> <div class="px-6 py-4 bg-agriculture-light flex items-center justify-between border-t border-gray-200"> <div class="text-sm text-gray-500"> Mostrando <span class="font-medium">1</span> a <span class="font-medium">4</span> de <span class="font-medium">24</span> resultados </div> <div class="flex space-x-2"> <button class="px-3 py-1 rounded-md bg-agriculture-primary text-white"><i class="fas fa-chevron-left"></i></button> <button class="px-3 py-1 rounded-md bg-white border border-gray-300 text-agriculture-darker">1</button> <button class="px-3 py-1 rounded-md bg-white border border-gray-300 text-agriculture-darker hover:bg-agriculture-light">2</button> <button class="px-3 py-1 rounded-md bg-white border border-gray-300 text-agriculture-darker hover:bg-agriculture-light">3</button> <button class="px-3 py-1 rounded-md bg-agriculture-primary text-white"><i class="fas fa-chevron-right"></i></button> </div> </div> </div>
<!-- Quick Actions and Alerts --> <div class="space-y-6"> <!-- Add New Item --> <div class="bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 card-hover"> <div class="p-6 bg-agriculture-secondary text-white"> <h2 class="text-xl font-bold">Adicionar Novo Item</h2> </div> <div class="p-6"> <form> <div class="mb-4"> <label class="block text-gray-700 text-sm font-bold mb-2" for="item-name">Nome do Item</label> <input class="w-full py-2 px-3 border border-gray-300 rounded-lg focus:outline-none input-focus" id="item-name" type="text" placeholder="Ex: Semente de Milho"> </div> <div class="mb-4"> <label class="block text-gray-700 text-sm font-bold mb-2" for="item-category">Categoria</label> <select class="w-full py-2 px-3 border border-gray-300 rounded-lg focus:outline-none input-focus" id="item-category"> <option>Selecione...</option> <option>Sementes</option> <option>Defensivos</option> <option>Fertilizantes</option> <option>Máquinas</option> <option>Outros</option> </select> </div> <div class="grid grid-cols-2 gap-4 mb-4"> <div> <label class="block text-gray-700 text-sm font-bold mb-2" for="item-quantity">Quantidade</label> <input class="w-full py-2 px-3 border border-gray-300 rounded-lg focus:outline-none input-focus" id="item-quantity" type="number" placeholder="Ex: 100"> </div> <div> <label class="block text-gray-700 text-sm font-bold mb-2" for="item-unit">Unidade</label> <select class="w-full py-2 px-3 border border-gray-300 rounded-lg focus:outline-none input-focus" id="item-unit"> <option>sacos</option> <option>litros</option> <option>kg</option> <option>unidades</option> </select> </div> </div> <div class="mb-4"> <label class="block text-gray-700 text-sm font-bold mb-2" for="item-expiry">Data de Validade</label> <input class="w-full py-2 px-3 border border-gray-300 rounded-lg focus:outline-none input-focus" id="item-expiry" type="date"> </div> <button class="w-full bg-agriculture-primary hover:bg-agriculture-dark text-white font-bold py-2 px-4 rounded-lg transition-colors duration-300" type="button"> <i class="fas fa-plus mr-2"></i> Adicionar ao Estoque </button> </form> </div> </div>
<!-- Critical Alerts --> <div class="bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300 card-hover"> <div class="p-6 bg-red-500 text-white"> <h2 class="text-xl font-bold">Alertas Críticos</h2> </div> <div class="p-6"> <div class="space-y-4"> <div class="flex items-start"> <div class="flex-shrink-0 mt-1"> <i class="fas fa-exclamation-circle text-red-500"></i> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-900">Fertilizante NPK está abaixo do estoque mínimo</p> <p class="text-sm text-gray-500">Restam apenas 2 sacos</p> </div> </div> <div class="flex items-start"> <div class="flex-shrink-0 mt-1"> <i class="fas fa-exclamation-circle text-red-500"></i> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-900">Herbicida vai vencer em 15 dias</p> <p class="text-sm text-gray-500">30/06/2023</p> </div> </div> <div class="flex items-start"> <div class="flex-shrink-0 mt-1"> <i class="fas fa-exclamation-circle text-red-500"></i> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-900">Semente de Algodão esgotada</p> <p class="text-sm text-gray-500">Fazer novo pedido</p> </div> </div> </div> <button class="mt-4 w-full bg-red-50 hover:bg-red-100 text-red-600 font-bold py-2 px-4 rounded-lg transition-colors duration-300" type="button"> <i class="fas fa-bell mr-2"></i> Ver Todos os Alertas </button> </div> </div> </div> </div>
<!-- Footer --> <footer class="mt-12 text-center text-gray-500 text-sm"> <p>© 2023 AgroGestão - Sistema de Gestão Agrícola. Todos os direitos reservados.</p> <p class="mt-2">Desenvolvido com <i class="fas fa-heart text-red-500"></i> para o campo</p> </footer> </div>
<script> // Simples interação para demonstrar funcionalidade document.addEventListener('DOMContentLoaded', function() { // Adicionar efeito de clique nos botões de ação const actionButtons = document.querySelectorAll('button'); actionButtons.forEach(button => { button.addEventListener('click', function() { if(this.classList.contains('bg-agriculture-primary')) { this.classList.add('transform', 'scale-95'); setTimeout(() => { this.classList.remove('transform', 'scale-95'); }, 150); } }); });
// Simular busca const searchInput = document.querySelector('input[type="text"]'); searchInput.addEventListener('keyup', function(e) { if(e.key === 'Enter') { alert('Buscando por: ' + this.value); } });
// Simular adição de novo item const addItemBtn = document.querySelector('button:has(i.fa-plus)'); addItemBtn.addEventListener('click', function() { const itemName = document.getElementById('item-name').value; if(itemName) { alert(`Item "${itemName}" adicionado com sucesso ao estoque!`); } else { alert('Por favor, preencha o nome do item'); } }); }); </script><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=moosee/testeee" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>README.md+7-5
index.html+402-19
prompts.txtAdded