Spaces:
Running
Running
Crie um aplicativo SaaS de geração de sites e funis de vendas com IA. ⚙️ O aplicativo deve funcionar da seguinte forma: 1. O usuário deve preencher um formulário com as seguintes perguntas: - Qual o nome do seu negócio? - Qual é o seu nicho de mercado? (ex: coach, estética, advocacia, culinária) - Qual é seu público-alvo? - Que tipo de página você deseja criar? (Site completo, Página de Captura, Página de Vendas, Página de Agradecimento) - Qual tom de voz deseja? (profissional, descontraído, vendedor, amigável) 2. Com base nessas respostas: - Gere automaticamente o conteúdo textual da página (título, subtítulo, call-to-action, descrição dos serviços, etc.) usando um modelo de linguagem como GPT-4. - Mostre ao usuário uma prévia visual simples da página com estrutura HTML/CSS (pode ser em estilo clean, como Bootstrap ou Tailwind). 3. Permita ao usuário: - Copiar o código HTML completo - Baixar um arquivo .zip com a estrutura do site - Ou (opcional) conectar a uma conta WordPress via REST API para publicar automaticamente 🎯 Objetivo: O sistema deve gerar páginas que realmente poderiam ser usadas por pequenos empreendedores ou criadores de conteúdo para vender seus serviços/produtos. 👨💻 Linguagens sugeridas: Python com Gradio ou Streamlit 🔌 Integrações sugeridas: - OpenAI API (para geração de texto) - zipfile (para gerar arquivos compactados) - requests (para envio automático a sites WordPress via REST API) - Initial Deployment
2057aa2 verified Download index.html from OSTIMBR/saassolutions: direct link, hf CLI and curl.
- Browser
- Download file 21.9 kB
-
https://huggingface.co/spaces/OSTIMBR/saassolutions/resolve/main/index.html
- Command line
-
hf download hf://spaces/OSTIMBR/saassolutions/index.html
-
curl -L -o index.html https://huggingface.co/spaces/OSTIMBR/saassolutions/resolve/main/index.html
21.9 kB
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>SiteGen AI - Gerador de Sites com IA</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> | |
| .preview-container { | |
| transition: all 0.3s ease; | |
| } | |
| .preview-iframe { | |
| width: 100%; | |
| height: 500px; | |
| border: 1px solid #e5e7eb; | |
| border-radius: 0.5rem; | |
| background: white; | |
| } | |
| .loading-spinner { | |
| display: none; | |
| width: 50px; | |
| height: 50px; | |
| border: 5px solid #f3f3f3; | |
| border-top: 5px solid #3b82f6; | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.5s ease-in; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <!-- Header --> | |
| <header class="text-center mb-12"> | |
| <h1 class="text-4xl font-bold text-blue-600 mb-2">SiteGen AI</h1> | |
| <p class="text-lg text-gray-600">Crie sites e funis de vendas profissionais em minutos com inteligência artificial</p> | |
| </header> | |
| <!-- Main Content --> | |
| <div class="flex flex-col lg:flex-row gap-8"> | |
| <!-- Form Section --> | |
| <div class="w-full lg:w-1/2 bg-white p-6 rounded-lg shadow-md"> | |
| <h2 class="text-2xl font-semibold text-gray-800 mb-6">Configure seu site</h2> | |
| <form id="siteConfigForm" class="space-y-6"> | |
| <!-- Business Name --> | |
| <div> | |
| <label for="businessName" class="block text-sm font-medium text-gray-700 mb-1">Qual o nome do seu negócio?</label> | |
| <input type="text" id="businessName" name="businessName" required | |
| class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <!-- Market Niche --> | |
| <div> | |
| <label for="marketNiche" class="block text-sm font-medium text-gray-700 mb-1">Qual é o seu nicho de mercado?</label> | |
| <select id="marketNiche" name="marketNiche" required | |
| class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500"> | |
| <option value="" disabled selected>Selecione um nicho</option> | |
| <option value="coach">Coach</option> | |
| <option value="estetica">Estética</option> | |
| <option value="advocacia">Advocacia</option> | |
| <option value="culinaria">Culinária</option> | |
| <option value="consultoria">Consultoria</option> | |
| <option value="saude">Saúde</option> | |
| <option value="fitness">Fitness</option> | |
| <option value="educacao">Educação</option> | |
| <option value="outro">Outro</option> | |
| </select> | |
| </div> | |
| <!-- Target Audience --> | |
| <div> | |
| <label for="targetAudience" class="block text-sm font-medium text-gray-700 mb-1">Qual é seu público-alvo?</label> | |
| <input type="text" id="targetAudience" name="targetAudience" required | |
| class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" | |
| placeholder="Ex: Empreendedores entre 30-50 anos"> | |
| </div> | |
| <!-- Page Type --> | |
| <div> | |
| <label for="pageType" class="block text-sm font-medium text-gray-700 mb-1">Que tipo de página você deseja criar?</label> | |
| <select id="pageType" name="pageType" required | |
| class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500"> | |
| <option value="" disabled selected>Selecione um tipo</option> | |
| <option value="site-completo">Site Completo</option> | |
| <option value="pagina-captura">Página de Captura</option> | |
| <option value="pagina-vendas">Página de Vendas</option> | |
| <option value="pagina-agradecimento">Página de Agradecimento</option> | |
| </select> | |
| </div> | |
| <!-- Tone of Voice --> | |
| <div> | |
| <label for="toneOfVoice" class="block text-sm font-medium text-gray-700 mb-1">Qual tom de voz deseja?</label> | |
| <select id="toneOfVoice" name="toneOfVoice" required | |
| class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500"> | |
| <option value="" disabled selected>Selecione um tom</option> | |
| <option value="profissional">Profissional</option> | |
| <option value="descontraido">Descontraído</option> | |
| <option value="vendedor">Vendedor</option> | |
| <option value="amigavel">Amigável</option> | |
| </select> | |
| </div> | |
| <!-- Additional Notes --> | |
| <div> | |
| <label for="additionalNotes" class="block text-sm font-medium text-gray-700 mb-1">Alguma observação adicional?</label> | |
| <textarea id="additionalNotes" name="additionalNotes" rows="3" | |
| class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" | |
| placeholder="Ex: Quero destacar meus 10 anos de experiência"></textarea> | |
| </div> | |
| <!-- Submit Button --> | |
| <div class="pt-2"> | |
| <button type="submit" id="generateBtn" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-4 rounded-md transition duration-300 flex items-center justify-center"> | |
| <span id="btnText">Gerar Site com IA</span> | |
| <div id="loadingSpinner" class="loading-spinner ml-2"></div> | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| <!-- Preview Section --> | |
| <div class="w-full lg:w-1/2"> | |
| <div class="bg-white p-6 rounded-lg shadow-md"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-semibold text-gray-800">Prévia do Site</h2> | |
| <div id="actionButtons" class="hidden space-x-2"> | |
| <button id="copyCodeBtn" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-3 py-1 rounded-md text-sm flex items-center"> | |
| <i class="fas fa-copy mr-1"></i> Copiar Código | |
| </button> | |
| <button id="downloadBtn" class="bg-blue-100 hover:bg-blue-200 text-blue-800 px-3 py-1 rounded-md text-sm flex items-center"> | |
| <i class="fas fa-download mr-1"></i> Baixar ZIP | |
| </button> | |
| <button id="wordpressBtn" class="bg-green-100 hover:bg-green-200 text-green-800 px-3 py-1 rounded-md text-sm flex items-center"> | |
| <i class="fab fa-wordpress mr-1"></i> WordPress | |
| </button> | |
| </div> | |
| </div> | |
| <div id="previewPlaceholder" class="bg-gray-100 rounded-lg p-8 text-center"> | |
| <i class="fas fa-magic text-4xl text-gray-400 mb-4"></i> | |
| <h3 class="text-lg font-medium text-gray-600 mb-2">Sua prévia aparecerá aqui</h3> | |
| <p class="text-gray-500">Preencha o formulário ao lado e clique em "Gerar Site com IA"</p> | |
| </div> | |
| <div id="previewContainer" class="preview-container hidden"> | |
| <iframe id="previewIframe" class="preview-iframe" srcdoc=""></iframe> | |
| </div> | |
| <div id="wordpressForm" class="hidden mt-6 p-4 bg-gray-50 rounded-lg"> | |
| <h3 class="font-medium text-gray-700 mb-3">Publicar no WordPress</h3> | |
| <div class="space-y-3"> | |
| <div> | |
| <label class="block text-sm text-gray-600 mb-1">URL do seu site WordPress</label> | |
| <input type="url" id="wpUrl" placeholder="https://seusite.com" class="w-full px-3 py-2 border border-gray-300 rounded-md text-sm"> | |
| </div> | |
| <div> | |
| <label class="block text-sm text-gray-600 mb-1">Nome de usuário</label> | |
| <input type="text" id="wpUsername" placeholder="Seu usuário WordPress" class="w-full px-3 py-2 border border-gray-300 rounded-md text-sm"> | |
| </div> | |
| <div> | |
| <label class="block text-sm text-gray-600 mb-1">Senha do aplicativo</label> | |
| <input type="password" id="wpPassword" placeholder="Sua senha de aplicativo" class="w-full px-3 py-2 border border-gray-300 rounded-md text-sm"> | |
| <p class="text-xs text-gray-500 mt-1">Use uma senha de aplicativo gerada nas configurações do WordPress</p> | |
| </div> | |
| <button id="publishToWpBtn" class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-md text-sm flex items-center justify-center"> | |
| <i class="fas fa-upload mr-2"></i> Publicar no WordPress | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Features Section --> | |
| <div class="mt-8 grid grid-cols-1 md:grid-cols-3 gap-4"> | |
| <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100"> | |
| <div class="text-blue-500 mb-2"><i class="fas fa-bolt text-xl"></i></div> | |
| <h3 class="font-medium text-gray-800 mb-1">Rápido</h3> | |
| <p class="text-sm text-gray-600">Gere sites profissionais em minutos, não em dias</p> | |
| </div> | |
| <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100"> | |
| <div class="text-blue-500 mb-2"><i class="fas fa-robot text-xl"></i></div> | |
| <h3 class="font-medium text-gray-800 mb-1">Inteligente</h3> | |
| <p class="text-sm text-gray-600">IA especializada em conversão e vendas</p> | |
| </div> | |
| <div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100"> | |
| <div class="text-blue-500 mb-2"><i class="fas fa-mobile-alt text-xl"></i></div> | |
| <h3 class="font-medium text-gray-800 mb-1">Responsivo</h3> | |
| <p class="text-sm text-gray-600">Sites que funcionam em qualquer dispositivo</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Success Modal --> | |
| <div id="successModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-white rounded-lg p-6 max-w-md w-full mx-4"> | |
| <div class="text-center"> | |
| <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-green-100 mb-4"> | |
| <i class="fas fa-check text-green-600"></i> | |
| </div> | |
| <h3 class="text-lg font-medium text-gray-900 mb-2" id="modalTitle">Sucesso!</h3> | |
| <div class="mt-2 text-sm text-gray-500" id="modalMessage"> | |
| Seu site foi gerado com sucesso. | |
| </div> | |
| <div class="mt-4"> | |
| <button type="button" id="modalCloseBtn" class="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 sm:text-sm"> | |
| Fechar | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const form = document.getElementById('siteConfigForm'); | |
| const generateBtn = document.getElementById('generateBtn'); | |
| const btnText = document.getElementById('btnText'); | |
| const loadingSpinner = document.getElementById('loadingSpinner'); | |
| const previewPlaceholder = document.getElementById('previewPlaceholder'); | |
| const previewContainer = document.getElementById('previewContainer'); | |
| const previewIframe = document.getElementById('previewIframe'); | |
| const actionButtons = document.getElementById('actionButtons'); | |
| const copyCodeBtn = document.getElementById('copyCodeBtn'); | |
| const downloadBtn = document.getElementById('downloadBtn'); | |
| const wordpressBtn = document.getElementById('wordpressBtn'); | |
| const wordpressForm = document.getElementById('wordpressForm'); | |
| const publishToWpBtn = document.getElementById('publishToWpBtn'); | |
| const successModal = document.getElementById('successModal'); | |
| const modalCloseBtn = document.getElementById('modalCloseBtn'); | |
| const modalTitle = document.getElementById('modalTitle'); | |
| const modalMessage = document.getElementById('modalMessage'); | |
| let generatedHtml = ''; | |
| // Form submission | |
| form.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| // Get form values | |
| const businessName = document.getElementById('businessName').value; | |
| const marketNiche = document.getElementById('marketNiche').value; | |
| const targetAudience = document.getElementById('targetAudience').value; | |
| const pageType = document.getElementById('pageType').value; | |
| const toneOfVoice = document.getElementById('toneOfVoice').value; | |
| const additionalNotes = document.getElementById('additionalNotes').value; | |
| // Show loading state | |
| btnText.textContent = 'Gerando...'; | |
| loadingSpinner.style.display = 'block'; | |
| generateBtn.disabled = true; | |
| // Simulate AI generation (in a real app, this would call an API) | |
| setTimeout(() => { | |
| generateSiteContent(businessName, marketNiche, targetAudience, pageType, toneOfVoice, additionalNotes); | |
| // Hide loading state | |
| btnText.textContent = 'Gerar Site com IA'; | |
| loadingSpinner.style.display = 'none'; | |
| generateBtn.disabled = false; | |
| // Show preview | |
| previewPlaceholder.classList.add('hidden'); | |
| previewContainer.classList.remove('hidden'); | |
| actionButtons.classList.remove('hidden'); | |
| // Add fade-in effect | |
| previewContainer.classList.add('fade-in'); | |
| }, 2000); | |
| }); | |
| // Generate site content based on form inputs | |
| function generateSiteContent(businessName, marketNiche, targetAudience, pageType, toneOfVoice, additionalNotes) { | |
| // Determine page type | |
| let pageTitle, pageSubtitle, ctaText, pageContent; | |
| switch(pageType) { | |
| case 'site-completo': | |
| pageTitle = `${businessName} - ${getNicheDisplayName(marketNiche)}`; | |
| pageSubtitle = `Soluções profissionais em ${getNicheDisplayName(marketNiche)} para ${targetAudience}`; | |
| ctaText = 'Agende uma consulta'; | |
| pageContent = generateCompleteSiteContent(businessName, marketNiche, toneOfVoice); | |
| break; | |
| case 'pagina-captura': | |
| pageTitle = `Descubra como transformar seu ${getNicheDisplayName(marketNiche).toLowerCase()} - ${businessName}`; | |
| pageSubtitle = `Cadastre-se para receber nosso material exclusivo para ${targetAudience}`; | |
| ctaText = 'Quero receber o material'; | |
| pageContent = generateCapturePageContent(businessName, marketNiche, toneOfVoice); | |
| break; | |
| case 'pagina-vendas': | |
| pageTitle = `[${businessName}] A solução definitiva para seu ${getNicheDisplayName(marketNiche).toLowerCase()}`; | |
| pageSubtitle = `Descubra como podemos ajudar ${targetAudience} a alcançar resultados incríveis`; | |
| ctaText = 'Quero essa solução!'; | |
| pageContent = generateSalesPageContent(businessName, marketNiche, toneOfVoice); | |
| break; | |
| case 'pagina-agradecimento': | |
| pageTitle = 'Obrigado por se cadastrar!'; | |
| pageSubtitle = `Seu material exclusivo de ${getNicheDisplayName(marketNiche).toLowerCase()} já está a caminho`; | |
| ctaText = 'Acessar área de membros'; | |
| pageContent = generateThankYouPageContent(businessName, marketNiche); | |
| break; | |
| } | |
| // Adjust tone of voice | |
| if (toneOfVoice === 'descontraido') { | |
| pageSubtitle = pageSubtitle.replace('profissionais', 'incríveis'); | |
| ctaText = ctaText.replace('Agende', 'Vamos agendar'); | |
| } else if (toneOfVoice === 'vendedor') { | |
| pageSubtitle = `🔥 ${pageSubtitle} - Garantido ou seu dinheiro de volta!`; | |
| ctaText = `QUERO ${ctaText.toUpperCase()} AGORA!`; | |
| } else if (toneOfVoice === 'amigavel') { | |
| pageSubtitle = `Oi! ${pageSubtitle} - Vamos conversar?`; | |
| ctaText = `Vamos começar?`; | |
| } | |
| // Add additional notes if provided | |
| if (additionalNotes) { | |
| pageContent = pageContent.replace('<!-- ADDITIONAL_NOTES -->', | |
| `<div class="bg-yellow-50 border-l-4 border-yellow-400 p-4 mb-6"> | |
| <p class="text-yellow-700">${additionalNotes}</p> | |
| </div>`); | |
| } else { | |
| pageContent = pageContent.replace('<!-- ADDITIONAL_NOTES -->', ''); | |
| } | |
| // Generate full HTML | |
| generatedHtml = ` | |
| <!DOCTYPE html> | |
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>${pageTitle}</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> | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| } | |
| .hero { | |
| background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); | |
| } | |
| .btn-primary { | |
| background-color: #3b82f6; | |
| transition: all 0.3s ease; | |
| } | |
| .btn-primary:hover { | |
| background-color: #2563eb; | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| ${pageContent} | |
| <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=OSTIMBR/saassolutions" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |