Spaces:
Running
Running
Download index.html from LucasAlbertine/teste: direct link, hf CLI and curl.
- Browser
- Download file 26.9 kB
-
https://huggingface.co/spaces/LucasAlbertine/teste/resolve/main/index.html
- Command line
-
hf download hf://spaces/LucasAlbertine/teste/index.html
-
curl -L -o index.html https://huggingface.co/spaces/LucasAlbertine/teste/resolve/main/index.html
26.9 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Endomarketing | Envio de E-mails</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet"> | |
| <script src="https://cdn.quilljs.com/1.3.6/quill.js"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| :root { | |
| --primary: #00995d; | |
| --secondary: #b1d34b; | |
| --dark: #004e4c; | |
| --accent: #f47920; | |
| --support-1: #d2a494; | |
| --support-2: #f1cdcd; | |
| --support-3: #ece3d9; | |
| --support-4: #ffe596; | |
| --support-5: #cde3bb; | |
| --support-6: #a4d8de; | |
| } | |
| .ql-editor { | |
| min-height: 350px; | |
| font-size: 16px; | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| } | |
| .bg-primary { background-color: var(--primary); } | |
| .bg-secondary { background-color: var(--secondary); } | |
| .bg-dark { background-color: var(--dark); } | |
| .bg-accent { background-color: var(--accent); } | |
| .text-primary { color: var(--primary); } | |
| .text-secondary { color: var(--secondary); } | |
| .text-dark { color: var(--dark); } | |
| .text-accent { color: var(--accent); } | |
| .border-primary { border-color: var(--primary); } | |
| .border-secondary { border-color: var(--secondary); } | |
| .border-dark { border-color: var(--dark); } | |
| .border-accent { border-color: var(--accent); } | |
| .hover\:bg-primary:hover { background-color: var(--primary); } | |
| .hover\:bg-secondary:hover { background-color: var(--secondary); } | |
| .hover\:bg-dark:hover { background-color: var(--dark); } | |
| .hover\:bg-accent:hover { background-color: var(--accent); } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); | |
| position: fixed; | |
| display: flex; | |
| flex-direction: column; | |
| height: 100%; | |
| top: 0; | |
| bottom: 0; | |
| left: 0; | |
| width: 16rem; | |
| z-index: 10; | |
| } | |
| .sidebar-content { | |
| flex: 1; | |
| overflow-y: auto; | |
| } | |
| .admin-menu { | |
| position: sticky; | |
| bottom: 0; | |
| width: 100%; | |
| background-color: var(--dark); | |
| padding: 1.25rem; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .layout-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); | |
| } | |
| .file-drop-area { | |
| transition: all 0.2s ease; | |
| } | |
| .file-drop-area.active { | |
| border-color: var(--primary); | |
| background-color: rgba(0, 153, 93, 0.05); | |
| } | |
| .recipient-tag { | |
| background-color: var(--support-5); | |
| border: 1px solid var(--support-5); | |
| } | |
| .layout-model-card { | |
| transition: all 0.2s ease; | |
| border: 1px solid #e5e7eb; | |
| } | |
| .layout-model-card:hover { | |
| border-color: var(--primary); | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| /* Adicionado para compensar o sidebar fixo */ | |
| .main-content { | |
| margin-left: 16rem; | |
| width: calc(100% - 16rem); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans antialiased"> | |
| <div class="flex"> | |
| <!-- Sidebar Navigation --> | |
| <div class="sidebar bg-dark text-white"> | |
| <div class="sidebar-content"> | |
| <div class="p-5 flex items-center space-x-3"> | |
| <div class="w-10 h-10 rounded-full bg-secondary flex items-center justify-center"> | |
| <i class="fas fa-envelope text-dark text-xl"></i> | |
| </div> | |
| <h1 class="text-xl font-bold">Endomarketing</h1> | |
| </div> | |
| <nav class="mt-8"> | |
| <div class="px-5 mb-3 text-support-4 text-sm font-medium">MENU PRINCIPAL</div> | |
| <a href="#" class="block px-5 py-3 bg-primary bg-opacity-20 text-white flex items-center space-x-3"> | |
| <i class="fas fa-paper-plane w-5"></i> | |
| <span>Enviar E-mail</span> | |
| </a> | |
| <a href="#" class="block px-5 py-3 text-white hover:bg-opacity-20 hover:bg-white flex items-center space-x-3"> | |
| <i class="fas fa-users w-5"></i> | |
| <span>Grupos</span> | |
| </a> | |
| <a href="#" class="block px-5 py-3 text-white hover:bg-opacity-20 hover:bg-white flex items-center space-x-3"> | |
| <i class="fas fa-cog w-5"></i> | |
| <span>Configurações</span> | |
| </a> | |
| </nav> | |
| </div> | |
| <!-- Admin Menu (fixed at bottom) --> | |
| <div class="admin-menu"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-10 h-10 rounded-full bg-primary flex items-center justify-center"> | |
| <i class="fas fa-user text-white"></i> | |
| </div> | |
| <div> | |
| <div class="font-medium">Administrador</div> | |
| <div class="text-xs text-gray-400">admin@empresa.com</div> | |
| </div> | |
| <button class="ml-auto text-gray-400 hover:text-white"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="main-content flex-1 overflow-auto"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="px-8 py-4 flex justify-between items-center"> | |
| <h2 class="text-2xl font-semibold text-dark"> | |
| <i class="fas fa-paper-plane text-primary mr-3"></i> | |
| Enviar E-mail Corporativo | |
| </h2> | |
| <div class="flex items-center space-x-4"> | |
| <button class="px-4 py-2 bg-accent text-white rounded-lg hover:bg-opacity-90 flex items-center"> | |
| <i class="fas fa-question-circle mr-2"></i> | |
| Ajuda | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Email Form --> | |
| <main class="p-8"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden"> | |
| <div class="p-8"> | |
| <!-- Subject --> | |
| <div class="mb-8"> | |
| <label for="subject" class="block text-dark font-medium mb-2">Assunto do E-mail*</label> | |
| <input type="text" id="subject" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary outline-none transition" placeholder="Digite o assunto do e-mail"> | |
| </div> | |
| <!-- Recipients --> | |
| <div class="mb-8"> | |
| <label class="block text-dark font-medium mb-2">Destinatários*</label> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <!-- Groups --> | |
| <div> | |
| <label class="block text-sm text-gray-600 mb-2">Selecionar Grupo</label> | |
| <select class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary outline-none transition"> | |
| <option value="">Selecione um grupo</option> | |
| <option value="all">Todos os Colaboradores</option> | |
| <option value="rh">Recursos Humanos</option> | |
| <option value="ti">Tecnologia da Informação</option> | |
| <option value="finance">Financeiro</option> | |
| <option value="marketing">Marketing</option> | |
| <option value="operations">Operações</option> | |
| </select> | |
| </div> | |
| <!-- Individual Recipients --> | |
| <div class="col-span-2"> | |
| <label class="block text-sm text-gray-600 mb-2">Adicionar Individuais</label> | |
| <div class="flex items-center space-x-2"> | |
| <input type="text" class="flex-1 px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary outline-none transition" placeholder="Digite e-mails separados por vírgula"> | |
| <button class="px-4 py-3 bg-primary text-white rounded-lg hover:bg-opacity-90"> | |
| <i class="fas fa-plus"></i> | |
| </button> | |
| </div> | |
| <div class="mt-3 flex flex-wrap gap-2"> | |
| <div class="recipient-tag px-3 py-1 rounded-full text-sm flex items-center"> | |
| ti@empresa.com | |
| <button class="ml-2 text-gray-600 hover:text-gray-800"> | |
| <i class="fas fa-times text-xs"></i> | |
| </button> | |
| </div> | |
| <div class="recipient-tag px-3 py-1 rounded-full text-sm flex items-center"> | |
| rh@empresa.com | |
| <button class="ml-2 text-gray-600 hover:text-gray-800"> | |
| <i class="fas fa-times text-xs"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Layout Models --> | |
| <div class="mb-8"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <label class="block text-dark font-medium">Modelos de Layout</label> | |
| <button class="px-4 py-2 bg-primary text-white rounded-lg hover:bg-opacity-90 flex items-center"> | |
| <i class="fas fa-plus mr-2"></i> | |
| Novo Modelo | |
| </button> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> | |
| <!-- Layout Model 1 --> | |
| <div class="layout-model-card bg-white rounded-lg p-4 cursor-pointer"> | |
| <div class="h-40 bg-support-3 rounded-md mb-3 flex items-center justify-center"> | |
| <i class="fas fa-align-left text-4xl text-gray-400"></i> | |
| </div> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="font-medium text-dark">Layout Simples</h4> | |
| <p class="text-sm text-gray-500">Última atualização: 15/06/2023</p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-primary"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-accent"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Layout Model 2 --> | |
| <div class="layout-model-card bg-white rounded-lg p-4 cursor-pointer"> | |
| <div class="h-40 bg-support-6 rounded-md mb-3 flex items-center justify-center"> | |
| <i class="fas fa-columns text-4xl text-gray-400"></i> | |
| </div> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="font-medium text-dark">Duas Colunas</h4> | |
| <p class="text-sm text-gray-500">Última atualização: 10/05/2023</p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-primary"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-accent"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Layout Model 3 --> | |
| <div class="layout-model-card bg-white rounded-lg p-4 cursor-pointer"> | |
| <div class="h-40 bg-support-5 rounded-md mb-3 flex items-center justify-center"> | |
| <i class="fas fa-newspaper text-4xl text-gray-400"></i> | |
| </div> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="font-medium text-dark">Newsletter</h4> | |
| <p class="text-sm text-gray-500">Última atualização: 22/04/2023</p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-primary"> | |
| <i class="fas fa-edit"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-accent"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Email Editor --> | |
| <div class="mb-8"> | |
| <label class="block text-dark font-medium mb-2">Conteúdo do E-mail*</label> | |
| <div id="editor" class="border border-gray-300 rounded-lg overflow-hidden"></div> | |
| <input type="hidden" id="emailContent" name="emailContent"> | |
| </div> | |
| <!-- Attachments --> | |
| <div class="mb-8"> | |
| <label class="block text-dark font-medium mb-2">Anexos</label> | |
| <div id="fileDropArea" class="file-drop-area border-2 border-dashed border-gray-300 rounded-lg p-8 text-center transition"> | |
| <input type="file" id="attachments" name="attachments" multiple class="hidden"> | |
| <label for="attachments" class="cursor-pointer"> | |
| <div class="mx-auto w-16 h-16 bg-primary bg-opacity-10 rounded-full flex items-center justify-center text-primary mb-4"> | |
| <i class="fas fa-cloud-upload-alt text-2xl"></i> | |
| </div> | |
| <h4 class="text-lg font-medium text-gray-700">Arraste e solte arquivos aqui</div> | |
| <p class="text-gray-500 mt-1">ou clique para selecionar arquivos</p> | |
| <p class="text-sm text-gray-400 mt-3">Formatos suportados: PDF, JPG, PNG, DOCX, XLSX (até 10MB cada)</p> | |
| </label> | |
| </div> | |
| <div id="filePreviews" class="mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"></div> | |
| </div> | |
| <!-- Form Actions --> | |
| <div class="flex justify-between items-center pt-4 border-t border-gray-200"> | |
| <div> | |
| <button type="button" class="px-5 py-2.5 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 flex items-center"> | |
| <i class="fas fa-save mr-2"></i> | |
| Salvar Rascunho | |
| </button> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button type="button" id="previewBtn" class="px-5 py-2.5 border border-primary text-primary rounded-lg hover:bg-primary hover:bg-opacity-5 flex items-center"> | |
| <i class="fas fa-eye mr-2"></i> | |
| Pré-visualizar | |
| </button> | |
| <button type="submit" class="px-6 py-2.5 bg-primary text-white rounded-lg hover:bg-opacity-90 flex items-center"> | |
| <i class="fas fa-paper-plane mr-2"></i> | |
| Enviar E-mail | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <!-- Preview Modal --> | |
| <div id="previewModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden"> | |
| <div class="bg-white rounded-xl w-11/12 max-w-5xl max-h-[90vh] overflow-hidden flex flex-col"> | |
| <div class="p-5 border-b border-gray-200 flex justify-between items-center"> | |
| <h3 class="text-xl font-semibold text-dark"> | |
| <i class="fas fa-eye text-primary mr-2"></i> | |
| Pré-visualização do E-mail | |
| </h3> | |
| <button id="closePreview" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div id="previewContent" class="p-8 overflow-auto flex-1"></div> | |
| <div class="p-5 border-t border-gray-200 bg-gray-50 flex justify-end"> | |
| <button type="button" class="px-5 py-2.5 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 mr-3"> | |
| <i class="fas fa-edit mr-2"></i> | |
| Editar | |
| </button> | |
| <button id="sendFromPreview" class="px-6 py-2.5 bg-primary text-white rounded-lg hover:bg-opacity-90 flex items-center"> | |
| <i class="fas fa-paper-plane mr-2"></i> | |
| Enviar E-mail | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Initialize Quill editor | |
| var quill = new Quill('#editor', { | |
| theme: 'snow', | |
| modules: { | |
| toolbar: [ | |
| [{ 'font': [] }], | |
| [{ 'header': [1, 2, 3, false] }], | |
| ['bold', 'italic', 'underline', 'strike'], | |
| [{ 'color': [] }, { 'background': [] }], | |
| [{ 'script': 'sub'}, { 'script': 'super' }], | |
| [{ 'list': 'ordered'}, { 'list': 'bullet' }], | |
| [{ 'indent': '-1'}, { 'indent': '+1' }], | |
| [{ 'align': [] }], | |
| ['blockquote', 'code-block'], | |
| ['link', 'image', 'video'], | |
| ['clean'] | |
| ] | |
| }, | |
| placeholder: 'Escreva o conteúdo del seu e-mail aqui...' | |
| }); | |
| // File drop area interactions | |
| const fileDropArea = document.getElementById('fileDropArea'); | |
| const fileInput = document.getElementById('attachments'); | |
| ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => { | |
| fileDropArea.addEventListener(eventName, preventDefaults, false); | |
| }); | |
| function preventDefaults(e) { | |
| e.preventDefault(); | |
| e.stopPropagation(); | |
| } | |
| ['dragenter', 'dragover'].forEach(eventName => { | |
| fileDropArea.addEventListener(eventName, highlight, false); | |
| }); | |
| ['dragleave', 'drop'].forEach(eventName => { | |
| fileDropArea.addEventListener(eventName, unhighlight, false); | |
| }); | |
| function highlight() { | |
| fileDropArea.classList.add('active'); | |
| } | |
| function unhighlight() { | |
| fileDropArea.classList.remove('active'); | |
| } | |
| fileDropArea.addEventListener('drop', handleDrop, false); | |
| function handleDrop(e) { | |
| const dt = e.dataTransfer; | |
| const files = dt.files; | |
| handleFiles(files); | |
| } | |
| fileInput.addEventListener('change', function() { | |
| handleFiles(this.files); | |
| }); | |
| function handleFiles(files) { | |
| const previewContainer = document.getElementById('filePreviews'); | |
| previewContainer.innerHTML = ''; | |
| [...files].forEach(file => { | |
| if (!file.type.match('image.*|application/pdf')) return; | |
| const reader = new FileReader(); | |
| reader.onload = function(e) { | |
| const previewDiv = document.createElement('div'); | |
| previewDiv.className = 'border border-gray-200 rounded-lg p-3 flex items-start'; | |
| let iconClass = 'fa-file'; | |
| if (file.type.match('image.*')) iconClass = 'fa-image'; | |
| if (file.type.match('application/pdf')) iconClass = 'fa-file-pdf'; | |
| previewDiv.innerHTML = ` | |
| <div class="mr-3 text-support-6"> | |
| <i class="fas ${iconClass} text-2xl"></i> | |
| </div> | |
| <div class="flex-1"> | |
| <div class="font-medium text-dark truncate">${file.name}</div> | |
| <div class="text-xs text-gray-500">${(file.size / 1024).toFixed(1)} KB</div> | |
| <div class="mt-2 flex justify-between items-center"> | |
| <div class="w-full bg-gray-200 rounded-full h-1.5"> | |
| <div class="bg-primary h-1.5 rounded-full" style="width: 100%"></div> | |
| </div> | |
| <button class="ml-2 text-gray-400 hover:text-accent"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| </div> | |
| `; | |
| previewContainer.appendChild(previewDiv); | |
| }; | |
| reader.readAsDataURL(file); | |
| }); | |
| } | |
| // Preview functionality | |
| document.getElementById('previewBtn').addEventListener('click', function() { | |
| const htmlContent = quill.root.innerHTML; | |
| document.getElementById('emailContent').value = htmlContent; | |
| document.getElementById('previewContent').innerHTML = htmlContent; | |
| document.getElementById('previewModal').classList.remove('hidden'); | |
| }); | |
| document.getElementById('closePreview').addEventListener('click', function() { | |
| document.getElementById('previewModal').classList.add('hidden'); | |
| }); | |
| document.getElementById('sendFromPreview').addEventListener('click', function() { | |
| alert('E-mail enviado com sucesso!'); | |
| document.getElementById('previewModal').classList.add('hidden'); | |
| }); | |
| </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=LucasAlbertine/teste" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |