Spaces:
Running
Running
Download index.html from fbercalini/redes: direct link, hf CLI and curl.
- Browser
- Download file 43.3 kB
-
https://huggingface.co/spaces/fbercalini/redes/resolve/main/index.html
- Command line
-
hf download hf://spaces/fbercalini/redes/index.html
-
curl -L -o index.html https://huggingface.co/spaces/fbercalini/redes/resolve/main/index.html
43.3 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Minhas Redes | Social Manager</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> | |
| .sidebar-item:hover { | |
| background-color: #f3f4f6; | |
| border-left: 4px solid #3b82f6; | |
| } | |
| .sidebar-item.active { | |
| background-color: #f0f9ff; | |
| border-left: 4px solid #3b82f6; | |
| color: #3b82f6; | |
| } | |
| .network-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .network-card.disconnected { | |
| opacity: 0.7; | |
| } | |
| .network-icon { | |
| width: 48px; | |
| height: 48px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| border-radius: 12px; | |
| } | |
| .network-icon.facebook { | |
| background-color: #1877F2; | |
| } | |
| .network-icon.instagram { | |
| background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80); | |
| } | |
| .network-icon.linkedin { | |
| background-color: #0A66C2; | |
| } | |
| .network-icon.tiktok { | |
| background-color: #000000; | |
| } | |
| .connect-btn { | |
| transition: all 0.3s ease; | |
| } | |
| .connect-btn:hover { | |
| transform: translateY(-1px); | |
| } | |
| .tab-item { | |
| position: relative; | |
| } | |
| .tab-item.active:after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -1px; | |
| left: 0; | |
| right: 0; | |
| height: 2px; | |
| background-color: #3b82f6; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 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 border-r border-gray-200 bg-white"> | |
| <div class="h-16 flex items-center px-4 border-b border-gray-200"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-share-alt text-blue-500 text-2xl mr-2"></i> | |
| <span class="text-xl font-semibold text-gray-800">Social Manager</span> | |
| </div> | |
| </div> | |
| <div class="flex flex-col flex-grow overflow-y-auto"> | |
| <nav class="flex-1 px-2 py-4 space-y-1"> | |
| <a href="dashboard.html" class="sidebar-item flex items-center px-4 py-3 text-sm font-medium rounded-md"> | |
| <i class="fas fa-chart-line mr-3"></i> | |
| Dados e Insights | |
| </a> | |
| <a href="posts.html" class="sidebar-item flex items-center px-4 py-3 text-sm font-medium rounded-md"> | |
| <i class="fas fa-calendar-alt mr-3"></i> | |
| Minhas Postagens | |
| </a> | |
| <a href="networks.html" class="sidebar-item active flex items-center px-4 py-3 text-sm font-medium rounded-md"> | |
| <i class="fas fa-network-wired mr-3"></i> | |
| Minhas Redes | |
| </a> | |
| <a href="settings.html" class="sidebar-item flex items-center px-4 py-3 text-sm font-medium rounded-md"> | |
| <i class="fas fa-cog mr-3"></i> | |
| Configurações | |
| </a> | |
| </nav> | |
| </div> | |
| <div class="p-4 border-t border-gray-200"> | |
| <div class="flex items-center"> | |
| <img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User profile"> | |
| <div class="ml-3"> | |
| <p class="text-sm font-medium text-gray-700">Ana Silva</p> | |
| <p class="text-xs font-medium text-gray-500">Marketing</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main content --> | |
| <div class="flex flex-col flex-1 overflow-hidden"> | |
| <!-- Top navigation --> | |
| <div class="h-16 flex items-center justify-between border-b border-gray-200 bg-white px-4"> | |
| <div class="flex items-center md:hidden"> | |
| <button class="text-gray-500 focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| <div class="flex-1 max-w-2xl mx-auto"> | |
| <div class="relative"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center 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 redes..."> | |
| </div> | |
| </div> | |
| <div class="ml-4 flex items-center md:ml-6"> | |
| <button class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none"> | |
| <i class="fas fa-bell"></i> | |
| </button> | |
| <button class="p-1 ml-2 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none"> | |
| <i class="fas fa-question-circle"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Page content --> | |
| <div class="flex-1 overflow-auto p-4"> | |
| <div class="max-w-7xl mx-auto"> | |
| <!-- Networks Header --> | |
| <div class="mb-6"> | |
| <div class="flex justify-between items-center"> | |
| <div> | |
| <h1 class="text-2xl font-bold text-gray-900">Minhas Redes</h1> | |
| <p class="mt-1 text-sm text-gray-500">Gerencie suas conexões com redes sociais</p> | |
| </div> | |
| <button onclick="openConnectModal()" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fas fa-plus mr-2"></i> Conectar Rede | |
| </button> | |
| </div> | |
| <!-- Tabs --> | |
| <div class="mt-6 border-b border-gray-200"> | |
| <nav class="-mb-px flex space-x-8"> | |
| <a href="#" class="tab-item active text-blue-600 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"> | |
| Todas as redes | |
| </a> | |
| <a href="#" class="tab-item text-gray-500 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"> | |
| Conectadas | |
| </a> | |
| <a href="#" class="tab-item text-gray-500 hover:text-gray-700 whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm"> | |
| Não conectadas | |
| </a> | |
| </nav> | |
| </div> | |
| </div> | |
| <!-- Networks Grid --> | |
| <div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3"> | |
| <!-- Facebook Profile --> | |
| <div class="network-card bg-white overflow-hidden shadow rounded-lg"> | |
| <div class="p-5"> | |
| <div class="flex items-center"> | |
| <div class="network-icon facebook"> | |
| <i class="fab fa-facebook-f text-white text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-lg font-medium text-gray-900">Facebook</h3> | |
| <p class="text-sm text-gray-500">Perfil pessoal</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-circle text-green-500 mr-2 text-xs"></i> | |
| <span>Conectado como Ana Silva</span> | |
| </div> | |
| <div class="mt-2 flex justify-between"> | |
| <button onclick="openPostModal('facebook')" class="connect-btn inline-flex items-center px-3 py-1.5 border border-gray-300 shadow-sm text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fas fa-pen mr-1"></i> Criar post | |
| </button> | |
| <button class="connect-btn inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"> | |
| <i class="fas fa-unlink mr-1"></i> Desconectar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Facebook Page --> | |
| <div class="network-card bg-white overflow-hidden shadow rounded-lg"> | |
| <div class="p-5"> | |
| <div class="flex items-center"> | |
| <div class="network-icon facebook"> | |
| <i class="fas fa-flag text-white text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-lg font-medium text-gray-900">Facebook Page</h3> | |
| <p class="text-sm text-gray-500">Página da empresa</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-circle text-green-500 mr-2 text-xs"></i> | |
| <span>Conectado como Minha Empresa</span> | |
| </div> | |
| <div class="mt-2 flex justify-between"> | |
| <button onclick="openPostModal('facebook-page')" class="connect-btn inline-flex items-center px-3 py-1.5 border border-gray-300 shadow-sm text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fas fa-pen mr-1"></i> Criar post | |
| </button> | |
| <button class="connect-btn inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"> | |
| <i class="fas fa-unlink mr-1"></i> Desconectar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Instagram --> | |
| <div class="network-card bg-white overflow-hidden shadow rounded-lg"> | |
| <div class="p-5"> | |
| <div class="flex items-center"> | |
| <div class="network-icon instagram"> | |
| <i class="fab fa-instagram text-white text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-lg font-medium text-gray-900">Instagram</h3> | |
| <p class="text-sm text-gray-500">Perfil comercial</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-circle text-green-500 mr-2 text-xs"></i> | |
| <span>Conectado como @minhaempresa</span> | |
| </div> | |
| <div class="mt-2 flex justify-between"> | |
| <button onclick="openPostModal('instagram')" class="connect-btn inline-flex items-center px-3 py-1.5 border border-gray-300 shadow-sm text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fas fa-pen mr-1"></i> Criar post | |
| </button> | |
| <button class="connect-btn inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"> | |
| <i class="fas fa-unlink mr-1"></i> Desconectar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- LinkedIn Profile --> | |
| <div class="network-card bg-white overflow-hidden shadow rounded-lg"> | |
| <div class="p-5"> | |
| <div class="flex items-center"> | |
| <div class="network-icon linkedin"> | |
| <i class="fab fa-linkedin-in text-white text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-lg font-medium text-gray-900">LinkedIn</h3> | |
| <p class="text-sm text-gray-500">Perfil pessoal</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-circle text-green-500 mr-2 text-xs"></i> | |
| <span>Conectado como Ana Silva</span> | |
| </div> | |
| <div class="mt-2 flex justify-between"> | |
| <button onclick="openPostModal('linkedin')" class="connect-btn inline-flex items-center px-3 py-1.5 border border-gray-300 shadow-sm text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fas fa-pen mr-1"></i> Criar post | |
| </button> | |
| <button class="connect-btn inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"> | |
| <i class="fas fa-unlink mr-1"></i> Desconectar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- LinkedIn Page --> | |
| <div class="network-card bg-white overflow-hidden shadow rounded-lg"> | |
| <div class="p-5"> | |
| <div class="flex items-center"> | |
| <div class="network-icon linkedin"> | |
| <i class="fas fa-briefcase text-white text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-lg font-medium text-gray-900">LinkedIn Page</h3> | |
| <p class="text-sm text-gray-500">Página da empresa</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-circle text-red-500 mr-2 text-xs"></i> | |
| <span>Não conectado</span> | |
| </div> | |
| <div class="mt-2 flex justify-between"> | |
| <button class="connect-btn inline-flex items-center px-3 py-1.5 border border-gray-300 shadow-sm text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 opacity-50 cursor-not-allowed"> | |
| <i class="fas fa-pen mr-1"></i> Criar post | |
| </button> | |
| <button onclick="openConnectModal('linkedin-page')" class="connect-btn inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fas fa-link mr-1"></i> Conectar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- TikTok --> | |
| <div class="network-card bg-white overflow-hidden shadow rounded-lg disconnected"> | |
| <div class="p-5"> | |
| <div class="flex items-center"> | |
| <div class="network-icon tiktok"> | |
| <i class="fab fa-tiktok text-white text-xl"></i> | |
| </div> | |
| <div class="ml-4"> | |
| <h3 class="text-lg font-medium text-gray-900">TikTok</h3> | |
| <p class="text-sm text-gray-500">Perfil comercial</p> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-circle text-red-500 mr-2 text-xs"></i> | |
| <span>Não conectado</span> | |
| </div> | |
| <div class="mt-2 flex justify-between"> | |
| <button class="connect-btn inline-flex items-center px-3 py-1.5 border border-gray-300 shadow-sm text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 opacity-50 cursor-not-allowed"> | |
| <i class="fas fa-pen mr-1"></i> Criar post | |
| </button> | |
| <button onclick="openConnectModal('tiktok')" class="connect-btn inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| <i class="fas fa-link mr-1"></i> Conectar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Connect Network Modal --> | |
| <div id="connectModal" class="hidden fixed inset-0 overflow-y-auto z-50"> | |
| <div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"> | |
| <div class="fixed inset-0 transition-opacity" aria-hidden="true"> | |
| <div class="absolute inset-0 bg-gray-500 opacity-75"></div> | |
| </div> | |
| <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span> | |
| <div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full"> | |
| <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> | |
| <div class="sm:flex sm:items-start"> | |
| <div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-lg leading-6 font-medium text-gray-900" id="connectModalTitle">Conectar Rede Social</h3> | |
| <button onclick="closeConnectModal()" class="text-gray-400 hover:text-gray-500"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="mt-2"> | |
| <p class="text-sm text-gray-500 mb-4">Selecione a rede social que deseja conectar:</p> | |
| <div class="space-y-3"> | |
| <div class="network-option flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-gray-50"> | |
| <div class="network-icon facebook mr-3"> | |
| <i class="fab fa-facebook-f text-white"></i> | |
| </div> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">Facebook</h4> | |
| <p class="text-xs text-gray-500">Perfil pessoal</p> | |
| </div> | |
| </div> | |
| <div class="network-option flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-gray-50"> | |
| <div class="network-icon facebook mr-3"> | |
| <i class="fas fa-flag text-white"></i> | |
| </div> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">Facebook Page</h4> | |
| <p class="text-xs text-gray-500">Página da empresa</p> | |
| </div> | |
| </div> | |
| <div class="network-option flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-gray-50"> | |
| <div class="network-icon instagram mr-3"> | |
| <i class="fab fa-instagram text-white"></i> | |
| </div> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">Instagram</h4> | |
| <p class="text-xs text-gray-500">Perfil comercial</p> | |
| </div> | |
| </div> | |
| <div class="network-option flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-gray-50"> | |
| <div class="network-icon linkedin mr-3"> | |
| <i class="fab fa-linkedin-in text-white"></i> | |
| </div> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">LinkedIn</h4> | |
| <p class="text-xs text-gray-500">Perfil pessoal</p> | |
| </div> | |
| </div> | |
| <div class="network-option flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-gray-50"> | |
| <div class="network-icon linkedin mr-3"> | |
| <i class="fas fa-briefcase text-white"></i> | |
| </div> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">LinkedIn Page</h4> | |
| <p class="text-xs text-gray-500">Página da empresa</p> | |
| </div> | |
| </div> | |
| <div class="network-option flex items-center p-3 border border-gray-200 rounded-lg cursor-pointer hover:bg-gray-50"> | |
| <div class="network-icon tiktok mr-3"> | |
| <i class="fab fa-tiktok text-white"></i> | |
| </div> | |
| <div> | |
| <h4 class="text-sm font-medium text-gray-900">TikTok</h4> | |
| <p class="text-xs text-gray-500">Perfil comercial</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <p class="text-xs text-gray-500">Ao conectar, você será redirecionado para a página de login da rede social para autorizar o acesso.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"> | |
| <button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm"> | |
| Conectar | |
| </button> | |
| <button type="button" onclick="closeConnectModal()" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"> | |
| Cancelar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Post Modal --> | |
| <div id="postModal" class="hidden fixed inset-0 overflow-y-auto z-50"> | |
| <div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"> | |
| <div class="fixed inset-0 transition-opacity" aria-hidden="true"> | |
| <div class="absolute inset-0 bg-gray-500 opacity-75"></div> | |
| </div> | |
| <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span> | |
| <div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-4xl sm:w-full"> | |
| <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> | |
| <div class="sm:flex sm:items-start"> | |
| <div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-lg leading-6 font-medium text-gray-900">Criar Nova Postagem</h3> | |
| <button onclick="closePostModal()" class="text-gray-400 hover:text-gray-500"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="mt-2"> | |
| <div class="mb-4"> | |
| <label for="postContent" class="block text-sm font-medium text-gray-700">Conteúdo</label> | |
| <div class="mt-1"> | |
| <textarea id="postContent" rows="4" class="shadow-sm focus:ring-blue-500 focus:border-blue-500 block w-full sm:text-sm border border-gray-300 rounded-md" placeholder="O que você gostaria de postar?"></textarea> | |
| </div> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-sm font-medium text-gray-700">Mídia</label> | |
| <div class="mt-1 flex justify-center px-6 pt-5 pb-6 border-2 border-gray-300 border-dashed rounded-md"> | |
| <div class="space-y-1 text-center"> | |
| <div class="flex text-sm text-gray-600"> | |
| <label for="file-upload" class="relative cursor-pointer bg-white rounded-md font-medium text-blue-600 hover:text-blue-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-blue-500"> | |
| <span>Enviar arquivo</span> | |
| <input id="file-upload" name="file-upload" type="file" class="sr-only"> | |
| </label> | |
| <p class="pl-1">ou arraste e solte</p> | |
| </div> | |
| <p class="text-xs text-gray-500">PNG, JPG, GIF até 10MB</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-sm font-medium text-gray-700">Redes Sociais</label> | |
| <div class="mt-2 grid grid-cols-2 gap-4 sm:grid-cols-3"> | |
| <div class="network-selection relative flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="facebook" name="facebook" type="checkbox" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded" checked> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="facebook" class="font-medium text-gray-700">Facebook</label> | |
| </div> | |
| </div> | |
| <div class="network-selection relative flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="facebook-page" name="facebook-page" type="checkbox" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded" checked> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="facebook-page" class="font-medium text-gray-700">Facebook Page</label> | |
| </div> | |
| </div> | |
| <div class="network-selection relative flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="instagram" name="instagram" type="checkbox" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded" checked> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="instagram" class="font-medium text-gray-700">Instagram</label> | |
| </div> | |
| </div> | |
| <div class="network-selection relative flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="linkedin" name="linkedin" type="checkbox" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded"> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="linkedin" class="font-medium text-gray-700">LinkedIn</label> | |
| </div> | |
| </div> | |
| <div class="network-selection relative flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="linkedin-page" name="linkedin-page" type="checkbox" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded"> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="linkedin-page" class="font-medium text-gray-700">LinkedIn Page</label> | |
| </div> | |
| </div> | |
| <div class="network-selection relative flex items-start"> | |
| <div class="flex items-center h-5"> | |
| <input id="tiktok" name="tiktok" type="checkbox" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded"> | |
| </div> | |
| <div class="ml-3 text-sm"> | |
| <label for="tiktok" class="font-medium text-gray-700">TikTok</label> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mb-4"> | |
| <label class="block text-sm font-medium text-gray-700">Agendamento</label> | |
| <div class="mt-2"> | |
| <div class="flex items-center"> | |
| <input id="schedule-post" name="schedule-post" type="checkbox" class="focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded"> | |
| <label for="schedule-post" class="ml-2 block text-sm text-gray-700">Agendar esta postagem</label> | |
| </div> | |
| <div id="schedule-options" class="mt-2 hidden"> | |
| <div class="flex items-center"> | |
| <input type="datetime-local" id="post-time" name="post-time" class="shadow-sm focus:ring-blue-500 focus:border-blue-500 block w-full sm:text-sm border border-gray-300 rounded-md"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"> | |
| <button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm"> | |
| Publicar | |
| </button> | |
| <button type="button" onclick="closePostModal()" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"> | |
| Cancelar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Modal functions | |
| function openConnectModal(network = null) { | |
| const modal = document.getElementById('connectModal'); | |
| if (network) { | |
| document.getElementById('connectModalTitle').textContent = `Conectar ${network.replace('-', ' ')}`; | |
| } | |
| modal.classList.remove('hidden'); | |
| } | |
| function closeConnectModal() { | |
| document.getElementById('connectModal').classList.add('hidden'); | |
| } | |
| function openPostModal(network = null) { | |
| const modal = document.getElementById('postModal'); | |
| if (network) { | |
| // Uncheck all networks first | |
| document.querySelectorAll('#postModal input[type="checkbox"]').forEach(checkbox => { | |
| checkbox.checked = false; | |
| }); | |
| // Check the selected network | |
| const networkCheckbox = document.getElementById(network); | |
| if (networkCheckbox) { | |
| networkCheckbox.checked = true; | |
| } | |
| } | |
| modal.classList.remove('hidden'); | |
| } | |
| function closePostModal() { | |
| document.getElementById('postModal').classList.add('hidden'); | |
| } | |
| // Schedule post toggle | |
| document.getElementById('schedule-post').addEventListener('change', function() { | |
| const scheduleOptions = document.getElementById('schedule-options'); | |
| if (this.checked) { | |
| scheduleOptions.classList.remove('hidden'); | |
| // Set default time to next hour | |
| const now = new Date(); | |
| now.setHours(now.getHours() + 1); | |
| now.setMinutes(0); | |
| now.setSeconds(0); | |
| const formattedDateTime = now.toISOString().slice(0, 16); | |
| document.getElementById('post-time').value = formattedDateTime; | |
| } else { | |
| scheduleOptions.classList.add('hidden'); | |
| } | |
| }); | |
| // Close modals when clicking outside | |
| window.onclick = function(event) { | |
| const connectModal = document.getElementById('connectModal'); | |
| const postModal = document.getElementById('postModal'); | |
| if (event.target === connectModal) { | |
| closeConnectModal(); | |
| } | |
| if (event.target === postModal) { | |
| closePostModal(); | |
| } | |
| } | |
| // Network selection in connect modal | |
| document.querySelectorAll('.network-option').forEach(option => { | |
| option.addEventListener('click', function() { | |
| // Remove active class from all options | |
| document.querySelectorAll('.network-option').forEach(opt => { | |
| opt.classList.remove('border-blue-500', 'bg-blue-50'); | |
| }); | |
| // Add active class to clicked option | |
| this.classList.add('border-blue-500', 'bg-blue-50'); | |
| }); | |
| }); | |
| </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=fbercalini/redes" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |