feat: Implementar funcionalidades de Tarefas e Saúde

- Criadas APIs para Health (métricas de saúde)
  * Registrar peso, altura, % gordura, medidas
  * Histórico completo de medições
  * Estatísticas e resumo

- Criadas APIs para Tasks (tarefas)
  * Criar, editar e deletar tarefas
  * Filtros por status e data
  * Estatísticas detalhadas
  * Prioridades (baixa, média, alta)

- Frontend implementado:
  * Página Health.tsx - registro de métricas
  * Página Tasks.tsx - gerenciamento de tarefas
  * Página Progress.tsx - visualização de progresso
  * Dashboard integrado com estatísticas reais

- Schemas e modelos atualizados
- Todas as funcionalidades testadas e operacionais
This commit is contained in:
Sergio Correa
2025-11-22 02:33:15 +00:00
commit f50174f898
68 changed files with 6835 additions and 0 deletions

View File

@@ -0,0 +1,179 @@
.progress-page {
min-height: 100vh;
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
padding: 20px;
}
.progress-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
flex-wrap: wrap;
gap: 15px;
}
.progress-header h1 {
color: white;
font-size: 2rem;
margin: 0;
}
.progress-container {
max-width: 1200px;
margin: 0 auto;
}
.progress-section {
background: white;
padding: 30px;
border-radius: 12px;
margin-bottom: 30px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.progress-section h2 {
margin-top: 0;
margin-bottom: 25px;
color: #333;
font-size: 1.5rem;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
}
.stat-card {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
padding: 20px;
border-radius: 12px;
display: flex;
align-items: center;
gap: 15px;
transition: all 0.3s ease;
border-left: 4px solid #6b7280;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.stat-card.pending {
border-left-color: #f59e0b;
}
.stat-card.progress {
border-left-color: #3b82f6;
}
.stat-card.completed {
border-left-color: #10b981;
}
.stat-card.today {
border-left-color: #8b5cf6;
}
.stat-card.completion {
border-left-color: #ec4899;
}
.stat-card.positive {
border-left-color: #10b981;
}
.stat-card.negative {
border-left-color: #ef4444;
}
.stat-icon {
font-size: 2.5rem;
flex-shrink: 0;
}
.stat-content {
flex: 1;
}
.stat-content h3 {
margin: 0 0 8px 0;
font-size: 0.9rem;
color: #666;
font-weight: 600;
}
.stat-number {
margin: 0;
font-size: 2rem;
font-weight: bold;
color: #333;
}
.loading {
text-align: center;
color: #999;
padding: 20px;
font-style: italic;
}
/* Motivação */
.motivation-section {
margin-top: 40px;
}
.motivation-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 40px;
border-radius: 12px;
text-align: center;
color: white;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.motivation-card h2 {
margin-top: 0;
margin-bottom: 20px;
font-size: 2rem;
color: white;
}
.motivation-card p {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 15px;
}
.motivation-quote {
font-style: italic;
font-size: 1.3rem;
margin-top: 25px;
padding-top: 25px;
border-top: 2px solid rgba(255, 255, 255, 0.3);
font-weight: 600;
}
@media (max-width: 768px) {
.progress-header h1 {
font-size: 1.5rem;
}
.stats-grid {
grid-template-columns: 1fr;
}
.motivation-card {
padding: 30px 20px;
}
.motivation-card h2 {
font-size: 1.5rem;
}
.motivation-quote {
font-size: 1.1rem;
}
}