/
home
/
oxicore
/
public_html
/
Upload File
HOME
<!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Dashboard PDI - Willgner</title> <script src="https://cdn.tailwindcss.com"></script> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet"> <style> body { font-family: 'Inter', sans-serif; background-color: #111827; /* bg-gray-900 */ } /* Custom styles for progress bars and inputs */ .progress-bar-bg { background-color: #374151; /* bg-gray-700 */ } .progress-bar-fill { background-color: #3b82f6; /* bg-blue-600 */ transition: width 0.5s ease-in-out; } .card { background-color: #1f2937; /* bg-gray-800 */ border: 1px solid #374151; /* border-gray-700 */ } .input-field { background-color: #374151; /* bg-gray-700 */ border: 1px solid #4b5563; /* border-gray-600 */ color: #f3f4f6; /* text-gray-100 */ } .habit-day { width: 32px; height: 32px; cursor: pointer; border: 2px solid #4b5563; /* border-gray-600 */ } .habit-day.completed { background-color: #16a34a; /* bg-green-600 */ border-color: #16a34a; } .counter-btn { background-color: #3b82f6; color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-weight: bold; } .counter-btn:hover { background-color: #2563eb; } </style> </head> <body class="text-white p-4 sm:p-6 lg:p-8"> <div class="max-w-7xl mx-auto"> <!-- Header --> <header class="text-center mb-8"> <h1 class="text-3xl sm:text-4xl font-bold text-gray-100">Plano de Desenvolvimento Individual (PDI)</h1> <p class="text-lg text-gray-400 mt-2">Acompanhamento de Metas - Willgner</p> </header> <!-- Overall Progress --> <div class="card p-6 rounded-xl mb-8"> <h2 class="text-xl font-bold mb-3">Progresso Total do PDI (3 Meses)</h2> <div class="flex items-center gap-4"> <div id="days-start" class="text-sm font-medium"></div> <div class="w-full progress-bar-bg rounded-full h-4"> <div id="timeline-progress" class="progress-bar-fill h-4 rounded-full" style="width: 0%;"></div> </div> <div id="days-end" class="text-sm font-medium"></div> </div> <div class="text-center mt-3 text-gray-300 font-semibold" id="days-remaining"></div> </div> <!-- PIFE Section --> <div> <h2 class="text-2xl font-bold border-l-4 border-blue-500 pl-4 mb-6">Pilar PIFE: O Que Queremos da Vida</h2> <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-6"> <!-- Professional Card --> <div class="card p-6 rounded-xl flex flex-col gap-6"> <h3 class="text-xl font-semibold flex items-center gap-3"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-blue-400"><path d="M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path><rect x="2" y="12" width="6" height="8" rx="1"></rect><rect x="16" y="12" width="6" height="8" rx="1"></rect></svg>Professional</h3> <!-- Meta 1: Gestão --> <div> <label for="gestao-input" class="text-sm font-medium text-gray-300 block mb-2">Investimento Gerenciado (Meta: R$ 90.000)</label> <div class="flex items-center gap-3"> <input type="number" id="gestao-input" class="w-full input-field rounded-md px-3 py-1.5" placeholder="0"> <span id="gestao-percent" class="font-semibold text-gray-200 w-16 text-right">0%</span> </div> <div class="w-full progress-bar-bg rounded-full h-2.5 mt-2"><div id="gestao-progress" class="progress-bar-fill h-2.5 rounded-full" style="width: 0%"></div></div> </div> <!-- Meta 2: Valor/ROI --> <div> <label for="roi-input" class="text-sm font-medium text-gray-300 block mb-2">Clientes com ROI > 1 (Meta: 70%)</label> <div class="flex items-center gap-3"> <input type="number" id="roi-input" class="w-full input-field rounded-md px-3 py-1.5" placeholder="0" max="100"> <span class="font-semibold text-gray-200 w-16 text-right">%</span> </div> <div class="w-full progress-bar-bg rounded-full h-2.5 mt-2"><div id="roi-progress" class="progress-bar-fill h-2.5 rounded-full" style="width: 0%"></div></div> </div> <!-- Meta 3: Mapeamento --> <div> <label for="mapeamento-input" class="text-sm font-medium text-gray-300 block mb-2">Clientes com ROI Mapeado (Meta: 90%)</label> <div class="flex items-center gap-3"> <input type="number" id="mapeamento-input" class="w-full input-field rounded-md px-3 py-1.5" placeholder="0" max="100"> <span class="font-semibold text-gray-200 w-16 text-right">%</span> </div> <div class="w-full progress-bar-bg rounded-full h-2.5 mt-2"><div id="mapeamento-progress" class="progress-bar-fill h-2.5 rounded-full" style="width: 0%"></div></div> </div> <!-- Meta 4: Estratégia --> <div> <label class="text-sm font-medium text-gray-300 block mb-2">Melhorias Estratégicas (Meta: 1/mês)</label> <div class="flex justify-around items-center mt-2" id="estrategia-counter"> <!-- JS will generate this --> </div> </div> </div> <!-- Intellectual Card --> <div class="card p-6 rounded-xl flex flex-col gap-6"> <h3 class="text-xl font-semibold flex items-center gap-3"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-purple-400"><path d="M22 18.5a2.5 2.5 0 0 1-4 0"/><path d="m18 14.3-1.5 1.5 1.5 1.5"/><path d="M2 6.8a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2Z"/><path d="m2 17 3-3 3 3"/><path d="m14 17 3-3 3 3"/></svg>Intellectual</h3> <!-- Meta 1: Inglês --> <div> <label for="ingles-input" class="text-sm font-medium text-gray-300 block mb-2">Inglês Nível B2</label> <div class="flex items-center gap-3"> <select id="ingles-input" class="w-full input-field rounded-md px-3 py-1.5"> <option value="0">Não iniciado</option> <option value="50">Em progresso</option> <option value="100">Concluído</option> </select> </div> </div> <!-- Meta 2: Espanhol --> <div> <label for="espanhol-input" class="text-sm font-medium text-gray-300 block mb-2">Espanhol Nível A1</label> <div class="flex items-center gap-3"> <select id="espanhol-input" class="w-full input-field rounded-md px-3 py-1.5"> <option value="0">Não iniciado</option> <option value="50">Em progresso</option> <option value="100">Concluído</option> </select> </div> </div> <!-- Meta 3: Looking Ahead --> <div> <label class="text-sm font-medium text-gray-300 block mb-2">"Looking Ahead" (Meta: 1/mês)</label> <div class="flex justify-around items-center mt-2" id="looking-ahead-counter"> <!-- JS will generate this --> </div> </div> </div> <!-- Fitness Card --> <div class="card p-6 rounded-xl flex flex-col gap-6"> <h3 class="text-xl font-semibold flex items-center gap-3"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-green-400"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline></svg>Fitness</h3> <!-- Meta 1: Atividade Física --> <div> <label class="text-sm font-medium text-gray-300 block mb-2">Atividade Física (3x/semana)</label> <p class="text-xs text-gray-400 mb-3">Consistência Mensal: <span id="fitness-consistency">0%</span></p> <div id="fitness-tracker" class="grid grid-cols-7 gap-1"> <!-- JS will generate this --> </div> </div> <!-- Meta 2: Sono --> <div> <label class="text-sm font-medium text-gray-300 block mb-2">Sono de Qualidade (7h/noite)</label> <p class="text-xs text-gray-400 mb-3">Consistência Mensal: <span id="sleep-consistency">0%</span></p> <div id="sleep-tracker" class="grid grid-cols-7 gap-1"> <!-- JS will generate this --> </div> </div> </div> <!-- Emotional Card --> <div class="card p-6 rounded-xl flex flex-col gap-6"> <h3 class="text-xl font-semibold flex items-center gap-3"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-red-400"><path d="M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z"></path><path d="M10 2c1 .5 2 2 2 5"></path><path d="M12 17.94a2.5 2.5 0 0 1 0-5.88 2.5 2.5 0 0 1 0 5.88Z"></path></svg>Emotional</h3> <!-- Meta 1: Suporte --> <div class="flex items-center justify-between"> <label for="suporte-check" class="text-sm font-medium text-gray-300">Apoio Psicológico na Rotina</label> <input type="checkbox" id="suporte-check" class="w-5 h-5 rounded text-blue-600 bg-gray-700 border-gray-600 focus:ring-blue-600"> </div> <!-- Meta 2: Autogestão --> <div class="flex items-center justify-between"> <label for="autogestao-check" class="text-sm font-medium text-gray-300">Praticou "Pedir e Aceitar Ajuda"</label> <input type="checkbox" id="autogestao-check" class="w-5 h-5 rounded text-blue-600 bg-gray-700 border-gray-600 focus:ring-blue-600"> </div> </div> </div> </div> <!-- G.R.O.W.T.H. Section --> <div class="mt-12"> <h2 class="text-2xl font-bold border-l-4 border-blue-500 pl-4 mb-6">Pilar G.R.O.W.T.H.: Como Vamos Vencer</h2> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <!-- Cards for each principle --> <div class="card p-6 rounded-xl"><h3 class="font-semibold text-lg text-gray-200 mb-2">G - GTM to Learn Faster</h3><p class="text-sm text-gray-400">Foco em aprender com o mercado, testar rápido para errar rápido. Definir objetivo de aprendizado antes de agir.</p></div> <div class="card p-6 rounded-xl"><h3 class="font-semibold text-lg text-gray-200 mb-2">R - Radical Candor</h3><p class="text-sm text-gray-400">Feedback brutal com cuidado. Foco no problema, não na pessoa. Agradecer quem te confronta com respeito.</p></div> <div class="card p-6 rounded-xl"><h3 class="font-semibold text-lg text-gray-200 mb-2">O - Ownership</h3><p class="text-sm text-gray-400">Ser dono do resultado fim-a-fim, não apenas das tarefas. Praticar autocrítica genuína.</p></div> <div class="card p-6 rounded-xl"><h3 class="font-semibold text-lg text-gray-200 mb-2">W - Working Backwards</h3><p class="text-sm text-gray-400">Começar pelo resultado do cliente. A melhor solução para a empresa é a melhor para o cliente.</p></div> <div class="card p-6 rounded-xl"><h3 class="font-semibold text-lg text-gray-200 mb-2">T - Trust in Science</h3><p class="text-sm text-gray-400">Decisões baseadas em dados, não em "achismo". Substituir "eu acho que" por "os dados mostram que".</p></div> <div class="card p-6 rounded-xl"><h3 class="font-semibold text-lg text-gray-200 mb-2">H - High Standards</h3><p class="text-sm text-gray-400">Internalizar o hábito da excelência. Entregar qualidade "world-class" com máximo resultado e mínimo recurso.</p></div> </div> </div> </div> <script> document.addEventListener('DOMContentLoaded', () => { // --- CONFIGURAÇÕES --- const PDI_DATA_KEY = 'pdi_willgner_data'; const TOTAL_DAYS = 90; const METAS = { gestao: 90000, roi: 70, mapeamento: 90 }; // --- ESTRUTURA DE DADOS INICIAL --- const getInitialData = () => { const startDate = new Date().toISOString(); return { startDate: startDate, professional: { gestao: 0, roi: 0, mapeamento: 0, estrategia: [0, 0, 0], }, intellectual: { ingles: 0, espanhol: 0, lookingAhead: [0, 0, 0], }, fitness: { atividades: Array(31).fill(false), sono: Array(31).fill(false) }, emotional: { suporte: false, autogestao: false } }; }; // --- CARREGAR E SALVAR DADOS --- let pdiData = JSON.parse(localStorage.getItem(PDI_DATA_KEY)) || getInitialData(); function saveData() { localStorage.setItem(PDI_DATA_KEY, JSON.stringify(pdiData)); } // --- ELEMENTOS DO DOM --- const elements = { // Timeline timelineProgress: document.getElementById('timeline-progress'), daysRemaining: document.getElementById('days-remaining'), daysStart: document.getElementById('days-start'), daysEnd: document.getElementById('days-end'), // Professional gestaoInput: document.getElementById('gestao-input'), gestaoProgress: document.getElementById('gestao-progress'), gestaoPercent: document.getElementById('gestao-percent'), roiInput: document.getElementById('roi-input'), roiProgress: document.getElementById('roi-progress'), mapeamentoInput: document.getElementById('mapeamento-input'), mapeamentoProgress: document.getElementById('mapeamento-progress'), estrategiaCounter: document.getElementById('estrategia-counter'), // Intellectual inglesInput: document.getElementById('ingles-input'), espanholInput: document.getElementById('espanhol-input'), lookingAheadCounter: document.getElementById('looking-ahead-counter'), // Fitness fitnessTracker: document.getElementById('fitness-tracker'), fitnessConsistency: document.getElementById('fitness-consistency'), sleepTracker: document.getElementById('sleep-tracker'), sleepConsistency: document.getElementById('sleep-consistency'), // Emotional suporteCheck: document.getElementById('suporte-check'), autogestaoCheck: document.getElementById('autogestao-check'), }; // --- FUNÇÕES DE ATUALIZAÇÃO DA UI --- function updateTimeline() { const startDate = new Date(pdiData.startDate); const endDate = new Date(startDate); endDate.setDate(startDate.getDate() + TOTAL_DAYS); elements.daysStart.textContent = startDate.toLocaleDateString('pt-BR'); elements.daysEnd.textContent = endDate.toLocaleDateString('pt-BR'); const now = new Date(); const diffTime = now - startDate; const diffDays = Math.max(0, Math.floor(diffTime / (1000 * 60 * 60 * 24))); const progress = Math.min(100, (diffDays / TOTAL_DAYS) * 100); elements.timelineProgress.style.width = `${progress}%`; const remainingDays = Math.max(0, TOTAL_DAYS - diffDays); elements.daysRemaining.textContent = `${remainingDays} dias restantes`; } function updateProgress(value, goal) { const percentage = Math.min(100, (value / goal) * 100); return percentage; } function updateProfessionalUI() { const { gestao, roi, mapeamento } = pdiData.professional; elements.gestaoInput.value = gestao; const gestaoPerc = updateProgress(gestao, METAS.gestao); elements.gestaoProgress.style.width = `${gestaoPerc}%`; elements.gestaoPercent.textContent = `${Math.round(gestaoPerc)}%`; elements.roiInput.value = roi; elements.roiProgress.style.width = `${updateProgress(roi, METAS.roi)}%`; elements.mapeamentoInput.value = mapeamento; elements.mapeamentoProgress.style.width = `${updateProgress(mapeamento, METAS.mapeamento)}%`; } function createCounter(container, type) { container.innerHTML = ''; const dataArray = pdiData[type.category][type.key]; [1, 2, 3].forEach(month => { const count = dataArray[month - 1]; const monthDiv = document.createElement('div'); monthDiv.className = 'text-center'; monthDiv.innerHTML = `<p class="text-xs text-gray-400 mb-1">Mês ${month}</p> <div class="flex items-center justify-center gap-2"> <button class="counter-btn" data-month="${month-1}" data-change="-1">-</button> <span class="font-bold text-lg">${count}</span> <button class="counter-btn" data-month="${month-1}" data-change="1">+</button> </div>`; container.appendChild(monthDiv); }); container.querySelectorAll('.counter-btn').forEach(btn => { btn.addEventListener('click', () => { const month = parseInt(btn.dataset.month); const change = parseInt(btn.dataset.change); let currentValue = pdiData[type.category][type.key][month]; pdiData[type.category][type.key][month] = Math.max(0, currentValue + change); saveData(); createCounter(container, type); // Redraw }); }); } function updateIntellectualUI() { elements.inglesInput.value = pdiData.intellectual.ingles; elements.espanholInput.value = pdiData.intellectual.espanhol; } function createHabitTracker(container, key) { container.innerHTML = ''; const today = new Date(); const currentDayOfMonth = today.getDate(); const daysInMonth = new Date(today.getFullYear(), today.getMonth() + 1, 0).getDate(); const dayLabels = ['D', 'S', 'T', 'Q', 'Q', 'S', 'S']; dayLabels.forEach(label => { const labelEl = document.createElement('div'); labelEl.className = 'text-center text-xs font-bold text-gray-500'; labelEl.textContent = label; container.appendChild(labelEl); }); let completedCount = 0; for (let i = 1; i <= daysInMonth; i++) { const dayEl = document.createElement('div'); dayEl.className = 'habit-day rounded-md flex items-center justify-center text-xs'; dayEl.dataset.day = i; if (i > currentDayOfMonth) { dayEl.classList.add('opacity-30', 'cursor-not-allowed'); } else { if (pdiData.fitness[key][i - 1]) { dayEl.classList.add('completed'); completedCount++; } dayEl.addEventListener('click', () => { pdiData.fitness[key][i - 1] = !pdiData.fitness[key][i - 1]; saveData(); updateFitnessUI(); }); } container.appendChild(dayEl); } const consistency = currentDayOfMonth > 0 ? (completedCount / currentDayOfMonth) * 100 : 0; return consistency; } function updateFitnessUI() { const fitnessConsistency = createHabitTracker(elements.fitnessTracker, 'atividades'); elements.fitnessConsistency.textContent = `${Math.round(fitnessConsistency)}%`; const sleepConsistency = createHabitTracker(elements.sleepTracker, 'sono'); elements.sleepConsistency.textContent = `${Math.round(sleepConsistency)}%`; } function updateEmotionalUI() { elements.suporteCheck.checked = pdiData.emotional.suporte; elements.autogestaoCheck.checked = pdiData.emotional.autogestao; } // --- ADICIONAR EVENT LISTENERS --- function addEventListeners() { // Professional elements.gestaoInput.addEventListener('change', (e) => { pdiData.professional.gestao = Number(e.target.value); saveData(); updateProfessionalUI(); }); elements.roiInput.addEventListener('change', (e) => { pdiData.professional.roi = Number(e.target.value); saveData(); updateProfessionalUI(); }); elements.mapeamentoInput.addEventListener('change', (e) => { pdiData.professional.mapeamento = Number(e.target.value); saveData(); updateProfessionalUI(); }); // Intellectual elements.inglesInput.addEventListener('change', (e) => { pdiData.intellectual.ingles = Number(e.target.value); saveData(); }); elements.espanholInput.addEventListener('change', (e) => { pdiData.intellectual.espanhol = Number(e.target.value); saveData(); }); // Emotional elements.suporteCheck.addEventListener('change', (e) => { pdiData.emotional.suporte = e.target.checked; saveData(); }); elements.autogestaoCheck.addEventListener('change', (e) => { pdiData.emotional.autogestao = e.target.checked; saveData(); }); } // --- INICIALIZAÇÃO --- function init() { updateTimeline(); updateProfessionalUI(); createCounter(elements.estrategiaCounter, {category: 'professional', key: 'estrategia'}); updateIntellectualUI(); createCounter(elements.lookingAheadCounter, {category: 'intellectual', key: 'lookingAhead'}); updateFitnessUI(); updateEmotionalUI(); addEventListeners(); setInterval(updateTimeline, 1000 * 60); // Update timeline every minute } init(); }); </script> </body> </html>