GuNet's picture
preciso demonstrar de forma clara e intuitiva a analise valluation e swott desta empresa conforme relatorio abaixo:
f704074 verified
Raw History Blame Contribute Delete
38.5 kB
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TechValuation Insights</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<style>
.swot-card {
transition: all 0.3s ease;
}
.swot-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.fade-in {
animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body class="bg-gray-50">
<div id="vanta-bg" class="fixed inset-0 -z-10"></div>
<!-- Header -->
<header class="bg-white/80 backdrop-blur-sm shadow-sm sticky top-0 z-50">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="cpu" class="text-blue-600"></i>
<h1 class="text-2xl font-bold text-gray-800">TechValuation Insights</h1>
</div>
<nav class="hidden md:flex space-x-8">
<a href="#valuation" class="text-gray-700 hover:text-blue-600 font-medium">Valuation</a>
<a href="#swot" class="text-gray-700 hover:text-blue-600 font-medium">SWOT</a>
<a href="#financials" class="text-gray-700 hover:text-blue-600 font-medium">Financeiro</a>
<a href="#conclusion" class="text-gray-700 hover:text-blue-600 font-medium">Conclusão</a>
</nav>
<button class="md:hidden" id="menu-toggle">
<i data-feather="menu" class="text-gray-700"></i>
</button>
</div>
</header>
<!-- Hero Section -->
<section class="py-20 px-4">
<div class="container mx-auto text-center">
<h1 class="text-4xl md:text-6xl font-bold text-gray-800 mb-6">Análise Completa de Valuation</h1>
<p class="text-xl md:text-2xl text-gray-600 max-w-3xl mx-auto mb-10">
Avaliação estratégica de empresa de manutenção de computadores com 25 anos de mercado
</p>
<div class="flex flex-wrap justify-center gap-4">
<a href="#valuation" class="bg-blue-600 hover:bg-blue-700 text-white px-8 py-3 rounded-lg font-medium transition duration-300">
Ver Valuation
</a>
<a href="#swot" class="bg-white hover:bg-gray-100 text-gray-800 px-8 py-3 rounded-lg font-medium border border-gray-300 transition duration-300">
Análise SWOT
</a>
</div>
</div>
</section>
<!-- Valuation Section -->
<section id="valuation" class="py-16 px-4 bg-white/80 backdrop-blur-sm">
<div class="container mx-auto">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">Análise de Valuation</h2>
<div class="grid md:grid-cols-3 gap-8 mb-12">
<!-- Valuation Card 1 -->
<div class="bg-white p-6 rounded-xl shadow-md border-l-4 border-blue-500 fade-in">
<div class="flex items-center mb-4">
<div class="bg-blue-100 p-2 rounded-full mr-4">
<i data-feather="dollar-sign" class="text-blue-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Valor Proposto</h3>
</div>
<p class="text-gray-600 mb-4">Oferta de compra atual pela empresa</p>
<p class="text-3xl font-bold text-blue-600">R$ 100.000</p>
</div>
<!-- Valuation Card 2 -->
<div class="bg-white p-6 rounded-xl shadow-md border-l-4 border-green-500 fade-in">
<div class="flex items-center mb-4">
<div class="bg-green-100 p-2 rounded-full mr-4">
<i data-feather="clock" class="text-green-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Retorno do Investimento</h3>
</div>
<p class="text-gray-600 mb-4">Tempo para recuperar o investimento</p>
<p class="text-3xl font-bold text-green-600">7.4 meses</p>
</div>
<!-- Valuation Card 3 -->
<div class="bg-white p-6 rounded-xl shadow-md border-l-4 border-purple-500 fade-in">
<div class="flex items-center mb-4">
<div class="bg-purple-100 p-2 rounded-full mr-4">
<i data-feather="trending-up" class="text-purple-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Lucro Líquido Mensal</h3>
</div>
<p class="text-gray-600 mb-4">Média mensal após todos os custos</p>
<p class="text-3xl font-bold text-purple-600">R$ 13.500</p>
</div>
</div>
<!-- Valuation Methods -->
<div class="bg-white p-6 rounded-xl shadow-md mb-8 fade-in">
<h3 class="text-2xl font-semibold mb-6 text-gray-800">Métodos de Valuation</h3>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Método</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Faixa de Valor</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Comparação</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Múltiplo de Faturamento</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 174.000 - R$ 870.000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">0.5-2.5x faturamento anual</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Múltiplo de Lucro</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 486.000 - R$ 810.000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3-5x lucro anual</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Fluxo de Caixa Descontado</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">~R$ 540.000</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15% a.a. por 5 anos</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Valuation Chart -->
<div class="bg-white p-6 rounded-xl shadow-md fade-in">
<h3 class="text-2xl font-semibold mb-6 text-gray-800">Comparação de Valuation</h3>
<div class="h-80">
<canvas id="valuationChart"></canvas>
</div>
</div>
</div>
</section>
<!-- SWOT Section -->
<section id="swot" class="py-16 px-4 bg-gray-50/80 backdrop-blur-sm">
<div class="container mx-auto">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">Análise SWOT</h2>
<div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
<!-- Forças -->
<div class="swot-card bg-green-50 p-6 rounded-xl shadow-md border-t-4 border-green-500 fade-in">
<div class="flex items-center mb-4">
<div class="bg-green-100 p-2 rounded-full mr-4">
<i data-feather="thumbs-up" class="text-green-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Forças</h3>
</div>
<ul class="space-y-3">
<li class="flex items-start">
<i data-feather="check" class="text-green-500 mr-2 mt-1 flex-shrink-0"></i>
<span>9.126 clientes cadastrados em 25 anos</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="text-green-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Margens extraordinárias (até 450%)</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="text-green-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Técnico experiente e satisfeito</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="text-green-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Baixa concorrência local</span>
</li>
<li class="flex items-start">
<i data-feather="check" class="text-green-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Estoque valorizado</span>
</li>
</ul>
</div>
<!-- Fraquezas -->
<div class="swot-card bg-red-50 p-6 rounded-xl shadow-md border-t-4 border-red-500 fade-in">
<div class="flex items-center mb-4">
<div class="bg-red-100 p-2 rounded-full mr-4">
<i data-feather="thumbs-down" class="text-red-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Fraquezas</h3>
</div>
<ul class="space-y-3">
<li class="flex items-start">
<i data-feather="alert-triangle" class="text-red-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Dependência do técnico atual</span>
</li>
<li class="flex items-start">
<i data-feather="alert-triangle" class="text-red-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Não opera aos sábados</span>
</li>
<li class="flex items-start">
<i data-feather="alert-triangle" class="text-red-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Aluguel representa 35% dos custos fixos</span>
</li>
<li class="flex items-start">
<i data-feather="alert-triangle" class="text-red-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Possível dependência do proprietário atual</span>
</li>
<li class="flex items-start">
<i data-feather="alert-triangle" class="text-red-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Modelo pode estar desatualizado</span>
</li>
</ul>
</div>
<!-- Oportunidades -->
<div class="swot-card bg-blue-50 p-6 rounded-xl shadow-md border-t-4 border-blue-500 fade-in">
<div class="flex items-center mb-4">
<div class="bg-blue-100 p-2 rounded-full mr-4">
<i data-feather="zap" class="text-blue-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Oportunidades</h3>
</div>
<ul class="space-y-3">
<li class="flex items-start">
<i data-feather="chevron-right" class="text-blue-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Expansão de serviços (suporte remoto, assinaturas)</span>
</li>
<li class="flex items-start">
<i data-feather="chevron-right" class="text-blue-500 mr-2 mt-1 flex-shrink-0"></i>
<span>E-commerce e agendamentos online</span>
</li>
<li class="flex items-start">
<i data-feather="chevron-right" class="text-blue-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Marketing digital para base de clientes</span>
</li>
<li class="flex items-start">
<i data-feather="chevron-right" class="text-blue-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Parcerias com empresas locais</span>
</li>
<li class="flex items-start">
<i data-feather="chevron-right" class="text-blue-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Diversificação (celulares, smart TVs)</span>
</li>
</ul>
</div>
<!-- Ameaças -->
<div class="swot-card bg-yellow-50 p-6 rounded-xl shadow-md border-t-4 border-yellow-500 fade-in">
<div class="flex items-center mb-4">
<div class="bg-yellow-100 p-2 rounded-full mr-4">
<i data-feather="alert-circle" class="text-yellow-600"></i>
</div>
<h3 class="text-xl font-semibold text-gray-800">Ameaças</h3>
</div>
<ul class="space-y-3">
<li class="flex items-start">
<i data-feather="alert-octagon" class="text-yellow-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Obsolescência tecnológica</span>
</li>
<li class="flex items-start">
<i data-feather="alert-octagon" class="text-yellow-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Entrada de concorrentes</span>
</li>
<li class="flex items-start">
<i data-feather="alert-octagon" class="text-yellow-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Queda nos preços de equipamentos novos</span>
</li>
<li class="flex items-start">
<i data-feather="alert-octagon" class="text-yellow-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Mudanças no comportamento do consumidor</span>
</li>
<li class="flex items-start">
<i data-feather="alert-octagon" class="text-yellow-500 mr-2 mt-1 flex-shrink-0"></i>
<span>Dependência de fornecedores específicos</span>
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Financials Section -->
<section id="financials" class="py-16 px-4 bg-white/80 backdrop-blur-sm">
<div class="container mx-auto">
<h2 class="text-3xl font-bold text-center mb-12 text-gray-800">Dados Financeiros</h2>
<!-- Revenue & Profit -->
<div class="grid md:grid-cols-2 gap-8 mb-12">
<div class="bg-white p-6 rounded-xl shadow-md fade-in">
<h3 class="text-xl font-semibold mb-4 text-gray-800">Receita e Lucro</h3>
<div class="space-y-4">
<div>
<p class="text-gray-600">Receita Mensal</p>
<p class="text-2xl font-bold text-blue-600">R$ 28.000 - R$ 30.000</p>
</div>
<div>
<p class="text-gray-600">Lucro Bruto Mensal</p>
<p class="text-2xl font-bold text-green-600">R$ 20.000</p>
</div>
<div>
<p class="text-gray-600">Lucro Líquido Mensal</p>
<p class="text-2xl font-bold text-purple-600">R$ 13.500</p>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-xl shadow-md fade-in">
<h3 class="text-xl font-semibold mb-4 text-gray-800">Custos Fixos Mensais</h3>
<div class="h-64 overflow-y-auto">
<table class="min-w-full divide-y divide-gray-200">
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">Aluguel</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">R$ 2.300,00</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">Energia</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">R$ 300,00</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">Água</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">R$ 100,00</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">Técnico</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">R$ 1.650,00</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">Atendente</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">R$ 800,00</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">Imposto</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">R$ 600,00</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">IPTU</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">R$ 300,00</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">Internet/Telefone</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">R$ 250,00</td>
</tr>
<tr>
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900">Contabilidade</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">R$ 250,00</td>
</tr>
<tr class="bg-gray-50">
<td class="px-4 py-3 whitespace-nowrap text-sm font-bold text-gray-900">TOTAL</td>
<td class="px-4 py-3 whitespace-nowrap text-sm font-bold text-gray-900">R$ 6.500,00</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- Margins -->
<div class="bg-white p-6 rounded-xl shadow-md mb-8 fade-in">
<h3 class="text-2xl font-semibold mb-6 text-gray-800">Margens de Produtos/Serviços</h3>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Produto/Serviço</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Custo</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Venda</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Margem</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">SSD 120GB</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 72,00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 170,00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-500 font-bold">136%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">SSD 240GB</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 113,00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 270,00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-500 font-bold">139%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Core i3 3120</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 29,00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 125-145</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-500 font-bold">331-400%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Cooler</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 16,00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 85,00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-500 font-bold">431%</td>
</tr>
<tr>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Formatação</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 0,00</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">R$ 165-220</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-green-500 font-bold">100%</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Charts -->
<div class="grid md:grid-cols-2 gap-8">
<div class="bg-white p-6 rounded-xl shadow-md fade-in">
<h3 class="text-xl font-semibold mb-4 text-gray-800">Distribuição de Custos</h3>
<div class="h-64">
<canvas id="costsChart"></canvas>
</div>
</div>
<div class="bg-white p-6 rounded-xl shadow-md fade-in">
<h3 class="text-xl font-semibold mb-4 text-gray-800">Margens por Produto</h3>
<div class="h-64">
<canvas id="marginsChart"></canvas>
</div>
</div>
</div>
</div>
</section>
<!-- Conclusion Section -->
<section id="conclusion" class="py-16 px-4 bg-gray-50/80 backdrop-blur-sm">
<div class="container mx-auto max-w-4xl">
<div class="bg-white p-8 rounded-xl shadow-lg fade-in">
<h2 class="text-3xl font-bold text-center mb-8 text-gray-800">Conclusão da Análise</h2>
<div class="prose max-w-none">
<div class="mb-6 p-4 bg-blue-50 rounded-lg border-l-4 border-blue-500">
<h3 class="text-xl font-semibold text-gray-800 mb-2">Valor Proposto vs. Valor Justo</h3>
<p class="text-gray-700">
A proposta de <strong>R$ 100.000</strong> está significativamente abaixo do valor justo de mercado calculado pelos métodos tradicionais, que variam entre <strong>R$ 486.000 e R$ 810.000</strong> pelo método de múltiplo de lucro.
</p>
</div>
<div class="mb-6 grid md:grid-cols-2 gap-4">
<div class="p-4 bg-green-50 rounded-lg border-l-4 border-green-500">
<h4 class="font-semibold text-gray-800 mb-2">Pontos Positivos</h4>
<ul class="list-disc pl-5 text-gray-700">
<li>Retorno do investimento em apenas 7.4 meses</li>
<li>Margens de lucro excepcionais (média de 200-400%)</li>
<li>Base sólida de mais de 9.000 clientes</li>
<li>Baixa concorrência na região</li>
<li>Estoque já valorizado</li>
</ul>
</div>
<div class="p-4 bg-yellow-50 rounded-lg border-l-4 border-yellow-500">
<h4 class="font-semibold text-gray-800 mb-2">Riscos a Considerar</h4>
<ul class="list-disc pl-5 text-gray-700">
<li>Dependência do técnico atual</li>
<li>Aluguel representando 35% dos custos fixos</li>
<li>Possível necessidade de modernização do modelo de negócios</li>
<li>Riscos de obsolescência tecnológica</li>
</ul>
</div>
</div>
<div class="p-4 bg-purple-50 rounded-lg border-l-4 border-purple-500">
<h3 class="text-xl font-semibold text-gray-800 mb-2">Recomendação Final</h3>
<p class="text-gray-700">
Esta aquisição representa uma <strong>oportunidade excepcional</strong>, com potencial de recuperação do investimento em menos de 8 meses. Recomendamos verificar se existem motivos não revelados para o baixo valor de venda e, caso não existam, considerar seriamente esta aquisição como um investimento com retorno acelerado e significativo potencial de crescimento.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8 px-4">
<div class="container mx-auto">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<div class="flex items-center space-x-2">
<i data-feather="cpu" class="text-blue-400"></i>
<span class="text-xl font-bold">TechValuation Insights</span>
</div>
<p class="text-gray-400 mt-2">Análise estratégica para decisões inteligentes</p>
</div>
<div class="flex space-x-6">
<a href="#" class="text-gray-400 hover:text-white transition duration-300">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition duration-300">
<i data-feather="linkedin"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition duration-300">
<i data-feather="mail"></i>
</a>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 TechValuation Insights. Todos os direitos reservados.</p>
</div>
</div>
</footer>
<script>
// Initialize Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x3b82f6,
backgroundColor: 0xf8fafc,
points: 10.00,
maxDistance: 25.00,
spacing: 18.00
});
// Initialize charts
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
// Valuation Chart
const valuationCtx = document.getElementById('valuationChart').getContext('2d');
new Chart(valuationCtx, {
type: 'bar',
data: {
labels: ['Proposta (R$100k)', 'Mínimo Justo (R$486k)', 'Máximo Justo (R$810k)'],
datasets: [{
label: 'Comparação de Valuation',
data: [100, 486, 810],
backgroundColor: [
'rgba(59, 130, 246, 0.7)',
'rgba(16, 185, 129, 0.7)',
'rgba(16, 185, 129, 0.7)'
],
borderColor: [
'rgba(59, 130, 246, 1)',
'rgba(16, 185, 129, 1)',
'rgba(16, 185, 129, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: 'Valor (R$ mil)'
},
ticks: {
callback: function(value) {
return value + 'k';
}
}
}
},
plugins: {
legend: {
display: false
}
}
}
});
// Costs Chart
const costsCtx = document.getElementById('costsChart').getContext('2d');
new Chart(costsCtx, {
type: 'doughnut',
data: {
labels: ['Aluguel', 'Técnico', 'Atendente', 'Outros'],
datasets: [{
data: [2300, 1650, 800, 1750],
backgroundColor: [
'rgba(239, 68, 68, 0.7)',
'rgba(59, 130, 246, 0.7)',
'rgba(245, 158, 11, 0.7)',
'rgba(156, 163, 175, 0.7)'
],
borderColor: [
'rgba(239, 68, 68, 1)',
'rgba(59, 130, 246, 1)',
'rgba(245, 158, 11, 1)',
'rgba(156, 163, 175, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'right',
},
tooltip: {
callbacks: {
label: function(context) {
return context.label + ': R$ ' + context.raw.toLocaleString('pt-BR');
}
}
}
}
}
});
// Margins Chart
const marginsCtx = document.getElementById('marginsChart').getContext('2d');
new Chart(marginsCtx, {
type: 'bar',
data: {
labels: ['SSD 120GB', 'SSD 240GB', 'Core i3', 'Cooler', 'Formatação'],
datasets: [{
label: 'Margem de Lucro (%)',
data: [136, 139, 365, 431, 100],
backgroundColor: 'rgba(16, 185, 129, 0.7)',
borderColor: 'rgba(16, 185, 129, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: 'Margem (%)'
}
}
},
plugins: {
legend: {
display: false
},
tooltip: {
callbacks: {
label: function(context) {
return context.raw + '%';
}
}
}
}
}
});
// Mobile menu toggle
const menuToggle = document.getElementById('menu-toggle');
const navMenu = document.querySelector('nav');
menuToggle.addEventListener('click', function() {
navMenu.classList.toggle('hidden');
navMenu.classList.toggle('flex');
navMenu.classList.toggle('flex-col');
navMenu.classList.toggle('absolute');
navMenu.classList.toggle('top-16');
navMenu.classList.toggle('right-4');
navMenu.classList.toggle('bg-white');
navMenu.classList.toggle('p-4');
navMenu.classList.toggle('rounded-lg');
navMenu.classList.toggle('shadow-md');
navMenu.classList.toggle('space-y-4');
navMenu.classList.toggle('space-x-0');
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
// Close mobile menu if open
if (!navMenu.classList.contains('hidden')) {
menuToggle.click();
}
});
});
// Animate elements on scroll
const fadeElements = document.querySelectorAll('.fade-in');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate-fadeIn');
}
});
}, {
threshold: 0.1
});
fadeElements.forEach(element => {
observer.observe(element);
});
});
</script>
</body>
</html>