Spaces:
Running
Running
Add 1 files
Browse files89 unmodified lines90919293949524 unmodified lines1201211221231241251261271281291301311321331341356 unmodified lines1421431441451461471481493 unmodified lines15315415515615715815916016116216316416516616716816917017117217317489 unmodified linesbackground-color: #10B981;color: white;}</style></head><body class="bg-gray-50">24 unmodified lines<p class="text-xl mb-8">Encontre as melhores taxas de juros e condições entre os principais bancos e financeiras</p><div class="max-w-3xl mx-auto bg-white rounded-lg shadow-lg p-6"><div class="flex border-b mb-6"><button id="personal-tab" class="tab-active px-4 py-2 font-medium">Pessoal</button><button id="consigned-tab" class="px-4 py-2 font-medium text-gray-600">Consignado</button></div><div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"><div><label for="loan-amount" class="block text-gray-700 font-medium mb-2 text-left">Valor desejado</label><div class="relative"><span class="absolute left-3 top-3 text-gray-500">R$</span><input type="number" id="loan-amount" class="w-full pl-8 pr-4 py-2 border rounded-lg focus:ring-2 focus:ring-primary focus:border-primary" placeholder="Digite" min="500" max="100000" value="2000"></div><div class="flex flex-wrap gap-2 mt-3">6 unmodified lines</div><div><label for="installments" class="block text-gray-700 font-medium mb-2 text-left">Parcelas</label><select id="installments" class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-primary focus:border-primary"><option value="12">12 meses</option><option value="24">24 meses</option><option value="36">36 meses</option>3 unmodified lines</div></div><button id="simulate-btn" class="w-full bg-primary hover:bg-green-600 text-white font-bold py-3 px-4 rounded-lg transition duration-300"><i class="fas fa-calculator mr-2"></i> Simular Empréstimo</button></div></div></section><!-- Results Section (Initially hidden) --><section id="results-section" class="hidden container mx-auto px-4 py-12"><!-- ... (restante do código permanece igual) ... --></section><script>// Show results when simulate button is clickeddocument.getElementById('simulate-btn').addEventListener('click', function() {document.getElementById('results-section').classList.remove('hidden');window.scrollTo({top: document.getElementById('results-section').offsetTop - 20,behavior: 'smooth'89 unmodified lines9091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014124 unmodified lines1661671681691701711721731741751761771781791801816 unmodified lines1881891901911921931941953 unmodified lines19920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645789 unmodified linesbackground-color: #10B981;color: white;}.form-label {font-size: 1rem;font-weight: 500;color: #374151;margin-bottom: 0.5rem;display: block;}.form-input {font-size: 1rem;padding: 0.75rem 1rem;border: 1px solid #D1D5DB;border-radius: 0.5rem;width: 100%;background-color: white;color: #111827;transition: border-color 0.2s, box-shadow 0.2s;}.form-input:focus {border-color: #10B981;box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);outline: none;}.form-select {font-size: 1rem;padding: 0.75rem 2.5rem 0.75rem 1rem;border: 1px solid #D1D5DB;border-radius: 0.5rem;width: 100%;background-color: white;color: #111827;appearance: none;background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");background-repeat: no-repeat;background-position: right 0.75rem center;background-size: 1.5em 1.5em;}.form-select:focus {border-color: #10B981;box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);outline: none;}</style></head><body class="bg-gray-50">24 unmodified lines<p class="text-xl mb-8">Encontre as melhores taxas de juros e condições entre os principais bancos e financeiras</p><div class="max-w-3xl mx-auto bg-white rounded-lg shadow-lg p-6"><div class="flex border-b mb-6"><button id="personal-tab" class="tab-active px-4 py-2 font-medium text-base">Pessoal</button><button id="consigned-tab" class="px-4 py-2 font-medium text-gray-600 text-base">Consignado</button></div><div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4"><div><label for="loan-amount" class="form-label">Valor desejado</label><div class="relative"><span class="absolute left-3 top-3 text-gray-500">R$</span><input type="number" id="loan-amount" class="form-input pl-8" placeholder="Digite o valor" min="500" max="100000" value="2000"></div><div class="flex flex-wrap gap-2 mt-3">6 unmodified lines</div><div><label for="installments" class="form-label">Parcelas</label><select id="installments" class="form-select"><option value="12">12 meses</option><option value="24">24 meses</option><option value="36">36 meses</option>3 unmodified lines</div></div><button id="simulate-btn" class="w-full bg-primary hover:bg-green-600 text-white font-bold py-3 px-4 rounded-lg transition duration-300 text-lg"><i class="fas fa-calculator mr-2"></i> Simular Empréstimo</button></div></div></section><!-- Results Section --><section id="results-section" class="container mx-auto px-4 py-12 hidden"><div class="text-center mb-10"><h2 class="text-3xl font-bold text-dark mb-2">Resultados da Simulação</h2><p class="text-gray-600">Confira as melhores opções para seu empréstimo de <span id="result-amount" class="font-bold">R$ 2.000</span> em <span id="result-installments" class="font-bold">12 meses</span></p></div><div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-10"><!-- Card 1 - Best Choice --><div class="loan-card best-choice bg-white rounded-lg p-6"><div class="flex justify-between items-start mb-4"><div><img src="https://via.placeholder.com/100x30?text=Banco+A" alt="Banco A" class="h-8 mb-2"><h3 class="text-xl font-bold text-dark">Empréstimo Pessoal</h3></div><div class="text-right"><span class="text-xs text-gray-500 block">Taxa de juros</span><span class="text-2xl font-bold text-primary">1.99%</span><span class="text-gray-500">/mês</span></div></div><div class="border-t border-b border-gray-100 py-4 my-4"><div class="flex justify-between mb-2"><span class="text-gray-600">Valor da parcela:</span><span class="font-bold" id="installment-1">R$ 193,72</span></div><div class="flex justify-between mb-2"><span class="text-gray-600">Total a pagar:</span><span class="font-bold" id="total-1">R$ 2.324,64</span></div><div class="flex justify-between"><span class="text-gray-600">IOF:</span><span class="font-bold">R$ 24,64</span></div></div><button class="w-full bg-primary hover:bg-green-600 text-white font-bold py-3 px-4 rounded-lg transition duration-300">Contratar</button></div><!-- Card 2 --><div class="loan-card bg-white rounded-lg p-6"><div class="flex justify-between items-start mb-4"><div><img src="https://via.placeholder.com/100x30?text=Banco+B" alt="Banco B" class="h-8 mb-2"><h3 class="text-xl font-bold text-dark">Crédito Rápido</h3></div><div class="text-right"><span class="text-xs text-gray-500 block">Taxa de juros</span><span class="text-2xl font-bold text-primary">2.49%</span><span class="text-gray-500">/mês</span></div></div><div class="border-t border-b border-gray-100 py-4 my-4"><div class="flex justify-between mb-2"><span class="text-gray-600">Valor da parcela:</span><span class="font-bold" id="installment-2">R$ 201,45</span></div><div class="flex justify-between mb-2"><span class="text-gray-600">Total a pagar:</span><span class="font-bold" id="total-2">R$ 2.417,40</span></div><div class="flex justify-between"><span class="text-gray-600">IOF:</span><span class="font-bold">R$ 17,40</span></div></div><button class="w-full bg-secondary hover:bg-blue-600 text-white font-bold py-3 px-4 rounded-lg transition duration-300">Contratar</button></div><!-- Card 3 --><div class="loan-card bg-white rounded-lg p-6"><div class="flex justify-between items-start mb-4"><div><img src="https://via.placeholder.com/100x30?text=Banco+C" alt="Banco C" class="h-8 mb-2"><h3 class="text-xl font-bold text-dark">Crédito Consignado</h3></div><div class="text-right"><span class="text-xs text-gray-500 block">Taxa de juros</span><span class="text-2xl font-bold text-primary">1.79%</span><span class="text-gray-500">/mês</span></div></div><div class="border-t border-b border-gray-100 py-4 my-4"><div class="flex justify-between mb-2"><span class="text-gray-600">Valor da parcela:</span><span class="font-bold" id="installment-3">R$ 190,12</span></div><div class="flex justify-between mb-2"><span class="text-gray-600">Total a pagar:</span><span class="font-bold" id="total-3">R$ 2.281,44</span></div><div class="flex justify-between"><span class="text-gray-600">IOF:</span><span class="font-bold">R$ 1,44</span></div></div><button class="w-full bg-gray-700 hover:bg-gray-800 text-white font-bold py-3 px-4 rounded-lg transition duration-300">Contratar</button></div></div><div class="bg-white rounded-lg shadow-lg p-6 mb-10"><h3 class="text-xl font-bold text-dark mb-4">Detalhes da Simulação</h3><div class="grid grid-cols-1 md:grid-cols-2 gap-6"><div><h4 class="font-medium text-gray-700 mb-2">Resumo do Empréstimo</h4><div class="bg-gray-50 rounded-lg p-4"><div class="flex justify-between mb-2"><span class="text-gray-600">Valor solicitado:</span><span class="font-bold" id="detail-amount">R$ 2.000,00</span></div><div class="flex justify-between mb-2"><span class="text-gray-600">Taxa de juros (média):</span><span class="font-bold">2.09% a.m.</span></div><div class="flex justify-between mb-2"><span class="text-gray-600">Parcelas:</span><span class="font-bold" id="detail-installments">12x</span></div><div class="flex justify-between"><span class="text-gray-600">Total com juros:</span><span class="font-bold text-primary">R$ 2.674,83</span></div></div></div><div><h4 class="font-medium text-gray-700 mb-2">CET (Custo Efetivo Total)</h4><div class="bg-gray-50 rounded-lg p-4"><div class="mb-3"><div class="flex justify-between mb-1"><span class="text-sm font-medium text-gray-700">Banco A</span><span class="text-sm font-medium">34,21% a.a.</span></div><div class="w-full bg-gray-200 rounded-full h-2"><div class="bg-primary h-2 rounded-full" style="width: 70%"></div></div></div><div class="mb-3"><div class="flex justify-between mb-1"><span class="text-sm font-medium text-gray-700">Banco B</span><span class="text-sm font-medium">38,45% a.a.</span></div><div class="w-full bg-gray-200 rounded-full h-2"><div class="bg-secondary h-2 rounded-full" style="width: 80%"></div></div></div><div><div class="flex justify-between mb-1"><span class="text-sm font-medium text-gray-700">Banco C</span><span class="text-sm font-medium">32,15% a.a.</span></div><div class="w-full bg-gray-200 rounded-full h-2"><div class="bg-gray-700 h-2 rounded-full" style="width: 65%"></div></div></div></div></div></div></div><div class="bg-white rounded-lg shadow-lg p-6"><h3 class="text-xl font-bold text-dark mb-4">Perguntas Frequentes</h3><div class="faq-item mb-3 border-b border-gray-100 pb-3"><div class="faq-question flex justify-between items-center cursor-pointer py-2"><h4 class="font-medium text-gray-700">Como funciona a simulação de empréstimo?</h4><i class="fas fa-chevron-down text-gray-500"></i></div><div class="faq-answer hidden pt-2 text-gray-600"><p>A simulação calcula o valor das parcelas e o total a ser pago com base no valor solicitado, prazo e taxa de juros. Você pode comparar diferentes opções antes de decidir qual é a melhor para você.</p></div></div><div class="faq-item mb-3 border-b border-gray-100 pb-3"><div class="faq-question flex justify-between items-center cursor-pointer py-2"><h4 class="font-medium text-gray-700">Quais documentos são necessários para contratar?</h4><i class="fas fa-chevron-down text-gray-500"></i></div><div class="faq-answer hidden pt-2 text-gray-600"><p>Geralmente são necessários: RG, CPF, comprovante de residência, comprovante de renda e extrato bancário. Os documentos podem variar conforme a instituição financeira.</p></div></div><div class="faq-item mb-3 border-b border-gray-100 pb-3"><div class="faq-question flex justify-between items-center cursor-pointer py-2"><h4 class="font-medium text-gray-700">Quanto tempo demora para o dinheiro cair na conta?</h4><i class="fas fa-chevron-down text-gray-500"></i></div><div class="faq-answer hidden pt-2 text-gray-600"><p>O prazo varia conforme a instituição financeira. Em alguns casos o dinheiro pode cair no mesmo dia, em outros pode levar até 2 dias úteis após a aprovação.</p></div></div><div class="faq-item"><div class="faq-question flex justify-between items-center cursor-pointer py-2"><h4 class="font-medium text-gray-700">Posso antecipar as parcelas?</h4><i class="fas fa-chevron-down text-gray-500"></i></div><div class="faq-answer hidden pt-2 text-gray-600"><p>Sim, a maioria das instituições permite a antecipação das parcelas com desconto nos juros. Consulte as condições específicas do seu contrato.</p></div></div></div></section><script>// Show results when simulate button is clickeddocument.getElementById('simulate-btn').addEventListener('click', function() {// Get input valuesconst amount = document.getElementById('loan-amount').value;const installments = document.getElementById('installments').value;// Update result textsdocument.getElementById('result-amount').textContent = 'R$ ' + parseFloat(amount).toLocaleString('pt-BR', {minimumFractionDigits: 2});document.getElementById('result-installments').textContent = installments + ' meses';document.getElementById('detail-amount').textContent = 'R$ ' + parseFloat(amount).toLocaleString('pt-BR', {minimumFractionDigits: 2});document.getElementById('detail-installments').textContent = installments + 'x';// Calculate and update installments (simplified calculation)const installment1 = (amount * 0.0199 * Math.pow(1.0199, installments)) / (Math.pow(1.0199, installments) - 1);const installment2 = (amount * 0.0249 * Math.pow(1.0249, installments)) / (Math.pow(1.0249, installments) - 1);const installment3 = (amount * 0.0179 * Math.pow(1.0179, installments)) / (Math.pow(1.0179, installments) - 1);document.getElementById('installment-1').textContent = 'R$ ' + installment1.toLocaleString('pt-BR', {minimumFractionDigits: 2});document.getElementById('installment-2').textContent = 'R$ ' + installment2.toLocaleString('pt-BR', {minimumFractionDigits: 2});document.getElementById('installment-3').textContent = 'R$ ' + installment3.toLocaleString('pt-BR', {minimumFractionDigits: 2});document.getElementById('total-1').textContent = 'R$ ' + (installment1 * installments).toLocaleString('pt-BR', {minimumFractionDigits: 2});document.getElementById('total-2').textContent = 'R$ ' + (installment2 * installments).toLocaleString('pt-BR', {minimumFractionDigits: 2});document.getElementById('total-3').textContent = 'R$ ' + (installment3 * installments).toLocaleString('pt-BR', {minimumFractionDigits: 2});// Show results sectiondocument.getElementById('results-section').classList.remove('hidden');// Scroll to resultswindow.scrollTo({top: document.getElementById('results-section').offsetTop - 20,behavior: 'smooth'
index.html+293-10