Spaces:
Running
Running
Download index.html from UtopiaSoftware/docbf: direct link, hf CLI and curl.
- Browser
- Download file 30.6 kB
-
https://huggingface.co/spaces/UtopiaSoftware/docbf/resolve/main/index.html
- Command line
-
hf download hf://spaces/UtopiaSoftware/docbf/index.html
-
curl -L -o index.html https://huggingface.co/spaces/UtopiaSoftware/docbf/resolve/main/index.html
30.6 kB
| <html lang="it"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Doc BandiFinder - Ricerca Bandi Pubblici</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> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%); | |
| } | |
| .bando-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .checkbox-custom { | |
| appearance: none; | |
| -webkit-appearance: none; | |
| width: 24px; | |
| height: 24px; | |
| border: 2px solid #4f46e5; | |
| border-radius: 4px; | |
| cursor: pointer; | |
| position: relative; | |
| } | |
| .checkbox-custom:checked { | |
| background-color: #4f46e5; | |
| } | |
| .checkbox-custom:checked::after { | |
| content: '\2713'; | |
| position: absolute; | |
| color: white; | |
| font-size: 14px; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| } | |
| .animate-pulse { | |
| animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen"> | |
| <!-- Header --> | |
| <header class="gradient-bg text-white shadow-lg"> | |
| <div class="container mx-auto px-4 py-6"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-file-contract text-3xl"></i> | |
| <h1 class="text-2xl font-bold">Doc BandiFinder</h1> | |
| </div> | |
| <nav> | |
| <ul class="flex space-x-6"> | |
| <li><a href="#" class="hover:underline">Home</a></li> | |
| <li><a href="#" class="hover:underline">Preferiti</a></li> | |
| <li><a href="#" class="hover:underline">Guide</a></li> | |
| <li><a href="#" class="hover:underline">Contatti</a></li> | |
| </ul> | |
| </nav> | |
| <div class="flex items-center space-x-4"> | |
| <button class="bg-white text-indigo-600 px-4 py-2 rounded-lg font-medium hover:bg-gray-100 transition"> | |
| Accedi | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Hero Section --> | |
| <section class="gradient-bg text-white py-16"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <h2 class="text-4xl font-bold mb-6">Trova il bando perfetto per la tua attività</h2> | |
| <p class="text-xl mb-8 max-w-2xl mx-auto">Accedi alla più completa banca dati di bandi pubblici e privati. Filtra, salva e gestisci tutte le opportunità in un unico posto.</p> | |
| <!-- Search Bar --> | |
| <div class="max-w-3xl mx-auto bg-white rounded-lg shadow-xl overflow-hidden"> | |
| <div class="flex"> | |
| <input type="text" placeholder="Cerca per parola chiave, ente, settore..." | |
| class="flex-grow px-6 py-4 text-gray-800 focus:outline-none"> | |
| <button class="bg-indigo-700 text-white px-6 py-4 hover:bg-indigo-800 transition"> | |
| <i class="fas fa-search mr-2"></i> Cerca | |
| </button> | |
| </div> | |
| </div> | |
| <div class="mt-6 flex justify-center space-x-4"> | |
| <span class="text-sm">Ricerca avanzata</span> | |
| <i class="fas fa-chevron-down animate-bounce"></i> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Advanced Filters --> | |
| <section class="container mx-auto px-4 py-8 -mt-8 z-10 relative"> | |
| <div class="bg-white rounded-xl shadow-lg p-6"> | |
| <h3 class="text-xl font-semibold mb-4 text-gray-800">Filtra i bandi</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <!-- Filter 1 --> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Tipo di bando</label> | |
| <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option>Tutti i tipi</option> | |
| <option>Contributi a fondo perduto</option> | |
| <option>Finanziamenti agevolati</option> | |
| <option>Gare d'appalto</option> | |
| <option>Concorsi</option> | |
| </select> | |
| </div> | |
| <!-- Filter 2 --> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Settore</label> | |
| <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option>Tutti i settori</option> | |
| <option>Agricoltura</option> | |
| <option>Artigianato</option> | |
| <option>Commercio</option> | |
| <option>Industria</option> | |
| <tag>Turismo</tag> | |
| <option>Innovazione</option> | |
| </select> | |
| </div> | |
| <!-- Filter 3 --> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Scadenza</label> | |
| <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option>Tutte le scadenze</option> | |
| <option>Scadono questa settimana</option> | |
| <option>Scadono questo mese</option> | |
| <option>Scadono nei prossimi 3 meses</option> | |
| <option>Scaduti</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div class="mt-6 grid grid-cols-1 md:grid-cols-4 gap-4"> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="europei" class="checkbox-custom mr-2"> | |
| <label for="europei" class="text-sm text-gray-700">Bandi europei</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="nazionali" class="checkbox-custom mr-2"> | |
| <label for="nazionali" class="text-sm text-gray-700">Bandi nazionali</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="regionali" class="checkbox-custom mr-2"> | |
| <label for="regionali" class="text-sm text-gray-700">Bandi regionali</label> | |
| </div> | |
| <div class="flex items-center"> | |
| <input type="checkbox" id="locali" class="checkbox-custom mr-2"> | |
| <label for="locali" class="text-sm text-gray-700">Bandi locali</label> | |
| </div> | |
| </div> | |
| <div class="mt-6 flex justify-between"> | |
| <button class="text-indigo-600 font-medium hover:underline"> | |
| <i class="fas fa-redo mr-2"></i> Resetta filtri | |
| </button> | |
| <button class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition"> | |
| Applica filtri | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Main Content --> | |
| <main class="container mx-auto px-4 py-8"> | |
| <div class="flex justify-between items-center mb-8"> | |
| <h2 class="text-2xl font-bold text-gray-800">Bandi disponibili</h2> | |
| <div class="flex items-center space-x-4"> | |
| <span class="text-sm text-gray-600">Ordina per:</span> | |
| <select class="px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> | |
| <option>Più recenti</option> | |
| <option>Scadenza più vicina</option> | |
| <option>Importo più alto</option> | |
| <option>Più rilevanti</option> | |
| </select> | |
| </div> | |
| </div> | |
| <!-- Results Count --> | |
| <div class="mb-6 bg-indigo-50 text-indigo-800 px-4 py-3 rounded-lg"> | |
| <span class="font-medium">124</span> bandi trovati | |
| </div> | |
| <!-- Bandi List --> | |
| <div class="grid grid-cols-1 gap-6" id="bandi-list"> | |
| <!-- Bando Item 1 --> | |
| <div class="bando-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300"> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <div class="flex items-center mb-2"> | |
| <span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded">Nuovo</span> | |
| <span class="ml-2 text-sm text-gray-500">Pubblicato: 15/06/2023</span> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Contributo per l'innovazione digitale PMI</h3> | |
| <p class="text-gray-600 mb-4">Finanziamento a fondo perduto per progetti di digitalizzazione delle piccole e medie imprese nel settore manifatturiero.</p> | |
| <div class="flex flex-wrap gap-2 mb-4"> | |
| <span class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">Digitalizzazione</span> | |
| <span class="bg-purple-100 text-purple-800 text-xs px-3 py-1 rounded-full">Industria 4.0</span> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs px-3 py-1 rounded-full">Fondo perduto</span> | |
| </div> | |
| </div> | |
| <div class="flex flex-col items-end"> | |
| <div class="text-right mb-4"> | |
| <p class="text-sm text-gray-500">Scadenza:</p> | |
| <p class="text-lg font-semibold text-red-600">30/09/2023</p> | |
| </div> | |
| <div class="text-right mb-4"> | |
| <p class="text-sm text-gray-500">Contributo massimo:</p> | |
| <p class="text-lg font-semibold text-green-600">€50.000</p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-indigo-600 transition"> | |
| <i class="far fa-heart text-xl"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-indigo-600 transition"> | |
| <i class="far fa-bell text-xl"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-indigo-600 transition"> | |
| <i class="far fa-share-square text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center pt-4 border-t border-gray-200"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/40" alt="Logo ente" class="w-10 h-10 rounded-full mr-3"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-800">Ministero dello Sviluppo Economico</p> | |
| <p class="text-xs text-gray-500">Bando nazionale</p> | |
| </div> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition"> | |
| <i class="fas fa-eye mr-2"></i> Dettagli | |
| </button> | |
| <button class="border border-indigo-600 text-indigo-600 px-6 py-2 rounded-lg hover:bg-indigo-50 transition"> | |
| <i class="fas fa-check mr-2"></i> Seleziona | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Bando Item 2 --> | |
| <div class="bando-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300"> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <div class="flex items-center mb-2"> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2.5 py-0.5 rounded">In scadenza</span> | |
| <span class="ml-2 text-sm text-gray-500">Pubblicato: 01/06/2023</span> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Sostegno all'imprenditoria giovanile in agricoltura</h3> | |
| <p class="text-gray-600 mb-4">Agevolazioni per under 40 che avviano attività agricole con particolare attenzione alla sostenibilità ambientale.</p> | |
| <div class="flex flex-wrap gap-2 mb-4"> | |
| <span class="bg-green-100 text-green-800 text-xs px-3 py-1 rounded-full">Agricoltura</span> | |
| <span class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">Giovani</span> | |
| <span class="bg-purple-100 text-purple-800 text-xs px-3 py-1 rounded-full">Sostenibilità</span> | |
| </div> | |
| </div> | |
| <div class="flex flex-col items-end"> | |
| <div class="text-right mb-4"> | |
| <p class="text-sm text-gray-500">Scadenza:</p> | |
| <p class="text-lg font-semibold text-red-600">15/07/2023</p> | |
| </div> | |
| <div class="text-right mb-4"> | |
| <p class="text-sm text-gray-500">Contributo massimo:</p> | |
| <p class="text-lg font-semibold text-green-600">€30.000</p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-indigo-600 transition"> | |
| <i class="far fa-heart text-xl"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-indigo-600 transition"> | |
| <i class="far fa-bell text-xl"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-indigo-600 transition"> | |
| <i class="far fa-share-square text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center pt-4 border-t border-gray-200"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/40" alt="Logo ente" class="w-10 h-10 rounded-full mr-3"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-800">Regione Lombardia</p> | |
| <p class="text-xs text-gray-500">Bando regionale</p> | |
| </div> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition"> | |
| <i class="fas fa-eye mr-2"></i> Dettagli | |
| </button> | |
| <button class="border border-indigo-600 text-indigo-600 px-6 py-2 rounded-lg hover:bg-indigo-50 transition"> | |
| <i class="fas fa-check mr-2"></i> Seleziona | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Bando Item 3 --> | |
| <div class="bando-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300"> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <div class="flex items-center mb-2"> | |
| <span class="bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded">Europeo</span> | |
| <span class="ml-2 text-sm text-gray-500">Pubblicato: 20/05/2023</span> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-2">Horizon Europe - Transizione ecologica</h3> | |
| <p class="text-gray-600 mb-4">Finanziamenti per progetti di ricerca e innovazione che contribuiscono alla transizione ecologica e alla neutralità climatica.</p> | |
| <div class="flex flex-wrap gap-2 mb-4"> | |
| <span class="bg-green-100 text-green-800 text-xs px-3 py-1 rounded-full">Ricerca</span> | |
| <span class="bg-blue-100 text-blue-800 text-xs px-3 py-1 rounded-full">Europa</span> | |
| <span class="bg-purple-100 text-purple-800 text-xs px-3 py-1 rounded-full">Ambiente</span> | |
| <span class="bg-yellow-100 text-yellow-800 text-xs px-3 py-1 rounded-full">Innovazione</span> | |
| </div> | |
| </div> | |
| <div class="flex flex-col items-end"> | |
| <div class="text-right mb-4"> | |
| <p class="text-sm text-gray-500">Scadenza:</p> | |
| <p class="text-lg font-semibold text-red-600">30/11/2023</p> | |
| </div> | |
| <div class="text-right mb-4"> | |
| <p class="text-sm text-gray-500">Contributo massimo:</p> | |
| <p class="text-lg font-semibold text-green-600">€2.500.000</p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-indigo-600 transition"> | |
| <i class="far fa-heart text-xl"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-indigo-600 transition"> | |
| <i class="far fa-bell text-xl"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-indigo-600 transition"> | |
| <i class="far fa-share-square text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-between items-center pt-4 border-t border-gray-200"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/40" alt="Logo ente" class="w-10 h-10 rounded-full mr-3"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-800">Commissione Europea</p> | |
| <p class="text-xs text-gray-500">Bando europeo</p> | |
| </div> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition"> | |
| <i class="fas fa-eye mr-2"></i> Dettagli | |
| </button> | |
| <button class="border border-indigo-600 text-indigo-600 px-6 py-2 rounded-lg hover:bg-indigo-50 transition"> | |
| <i class="fas fa-check mr-2"></i> Seleziona | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Pagination --> | |
| <div class="mt-8 flex justify-center"> | |
| <nav class="inline-flex rounded-md shadow"> | |
| <a href="#" class="px-4 py-2 border border-gray-300 bg-white text-gray-500 hover:bg-gray-50 rounded-l-md"> | |
| <i class="fas fa-chevron-left"></i> | |
| </a> | |
| <a href="#" class="px-4 py-2 border-t border-b border-gray-300 bg-white text-indigo-600 font-medium">1</a> | |
| <a href="#" class="px-4 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50">2</a> | |
| <a href="#" class="px-4 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50">3</a> | |
| <a href="#" class="px-4 py-2 border border-gray-300 bg-white text-gray-500 hover:bg-gray-50 rounded-r-md"> | |
| <i class="fas fa-chevron-right"></i> | |
| </a> | |
| </nav> | |
| </div> | |
| </main> | |
| <!-- Selected Bandi Panel --> | |
| <div class="fixed bottom-0 left-0 right-0 bg-white shadow-lg border-t border-gray-200 transform translate-y-full transition-transform duration-300" id="selected-panel"> | |
| <div class="container mx-auto px-4 py-4"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <h3 class="text-lg font-semibold text-gray-800 mr-4"> | |
| <span id="selected-count">0</span> bandi selezionati | |
| </h3> | |
| <button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium"> | |
| <i class="fas fa-times mr-1"></i> Deseleziona tutti | |
| </button> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button class="bg-gray-100 text-gray-800 px-4 py-2 rounded-lg hover:bg-gray-200 transition"> | |
| <i class="fas fa-download mr-2"></i> Esporta | |
| </button> | |
| <button class="bg-indigo-600 text-white px-6 py-2 rounded-lg hover:bg-indigo-700 transition"> | |
| <i class="fas fa-paper-plane mr-2"></i> Invia a consulente | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-gray-800 text-white py-12"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="text-xl font-bold mb-4">Doc BandiFinder</h3> | |
| <p class="text-gray-400">La piattaforma più completa per la ricerca e gestione di bandi pubblici e privati.</p> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold mb-4">Link utili</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Come funziona</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Piani e prezzi</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Domande frequenti</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold mb-4">Risorse</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Modulistica</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Guide pratiche</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Glossario</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Normative</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold mb-4">Contatti</h4> | |
| <ul class="space-y-2"> | |
| <li class="flex items-center"> | |
| <i class="fas fa-envelope mr-2 text-gray-400"></i> | |
| <span class="text-gray-400">info@docbandifinder.it</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-phone mr-2 text-gray-400"></i> | |
| <span class="text-gray-400">+39 02 1234567</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i class="fas fa-map-marker-alt mr-2 text-gray-400"></i> | |
| <span class="text-gray-400">Via Roma 123, Milano</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center"> | |
| <p class="text-gray-400 mb-4 md:mb-0">© 2023 Doc BandiFinder. Tutti i diritti riservati.</p> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i class="fab fa-facebook-f"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i class="fab fa-twitter"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i class="fab fa-linkedin-in"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i class="fab fa-instagram"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Toggle selected panel when bandi are selected | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const selectButtons = document.querySelectorAll('.bando-card button:last-child'); | |
| const selectedPanel = document.getElementById('selected-panel'); | |
| const selectedCount = document.getElementById('selected-count'); | |
| let count = 0; | |
| selectButtons.forEach(button => { | |
| button.addEventListener('click', function() { | |
| const card = this.closest('.bando-card'); | |
| if (card.classList.contains('selected')) { | |
| card.classList.remove('selected'); | |
| card.classList.remove('ring-2', 'ring-indigo-500'); | |
| count--; | |
| } else { | |
| card.classList.add('selected'); | |
| card.classList.add('ring-2', 'ring-indigo-500'); | |
| count++; | |
| } | |
| selectedCount.textContent = count; | |
| if (count > 0) { | |
| selectedPanel.classList.remove('translate-y-full'); | |
| } else { | |
| selectedPanel.classList.add('translate-y-full'); | |
| } | |
| }); | |
| }); | |
| // Simulate loading more bandi | |
| const bandiList = document.getElementById('bandi-list'); | |
| const loadMore = document.createElement('button'); | |
| loadMore.className = 'w-full mt-6 bg-gray-100 text-gray-800 px-6 py-3 rounded-lg hover:bg-gray-200 transition font-medium'; | |
| loadMore.innerHTML = '<i class="fas fa-sync-alt mr-2"></i> Carica altri bandi'; | |
| loadMore.addEventListener('click', function() { | |
| this.innerHTML = '<i class="fas fa-spinner animate-spin mr-2"></i> Caricamento...'; | |
| this.disabled = true; | |
| // Simulate API call | |
| setTimeout(() => { | |
| // In a real app, you would fetch more data here | |
| this.innerHTML = '<i class="fas fa-sync-alt mr-2"></i> Carica altri bandi'; | |
| this.disabled = false; | |
| alert('Altri bandi sono stati caricati!'); | |
| }, 1500); | |
| }); | |
| bandiList.parentNode.insertBefore(loadMore, bandiList.nextSibling); | |
| }); | |
| </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=Koritumba74/docbf" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |