Files
eminuxandCursor b5737a7ee7 Rende leggibili card, badge e testi mute in tema scuro.
Le righe task di oggi restavano crema con testo chiaro; i badge e gli heading senza dark: si perdevano sullo sfondo.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 07:36:48 +02:00

54 lines
2.7 KiB
ERB

<div class="space-y-6">
<div>
<h1 class="text-xl font-semibold tracking-tight md:text-2xl">Oggi</h1>
<p class="text-sm text-slate-500"><%= l(Time.zone.today, format: :long) %> · pagina operativa del mattino</p>
</div>
<section>
<h2 class="mb-2 text-sm font-semibold uppercase tracking-wide text-rose-700 dark:text-rose-400">In ritardo</h2>
<%= render "shared/task_list", tasks: @overdue_tasks %>
</section>
<section>
<h2 class="mb-2 text-sm font-semibold uppercase tracking-wide text-amber-700 dark:text-amber-400">Oggi</h2>
<%= render "shared/task_list", tasks: @today_tasks %>
</section>
<section>
<h2 class="mb-2 text-sm font-semibold uppercase tracking-wide text-zinc-600 dark:text-zinc-400">Prossimi follow-up</h2>
<%= render "shared/task_list", tasks: @upcoming_tasks %>
</section>
<section class="rounded-xl border border-zinc-200 bg-white text-zinc-900 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-100 p-5">
<h2 class="text-lg font-semibold">Opportunità ferme</h2>
<div class="mt-3 divide-y divide-zinc-100 dark:divide-zinc-800">
<% @stalled.each do |opp| %>
<div class="flex flex-wrap items-center justify-between gap-2 py-3">
<div>
<%= link_to opp.organization.name, opp.organization, class: "font-medium hover:underline" %>
<div class="text-sm text-slate-500"><%= opp.name %> · <%= stage_badge(opp.pipeline_stage) %> · <%= opp.days_in_current_stage %> giorni</div>
</div>
<%= link_to "Apri", opp.organization, class: "text-sm text-zinc-600 hover:underline dark:text-zinc-300" %>
</div>
<% end %>
<% if @stalled.blank? %><p class="text-sm text-slate-500">Nessuna opportunità ferma.</p><% end %>
</div>
</section>
<section class="rounded-xl border border-zinc-200 bg-white text-zinc-900 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-100 p-5">
<h2 class="text-lg font-semibold">Nuovi prospect da contattare</h2>
<div class="mt-3 divide-y divide-zinc-100 dark:divide-zinc-800">
<% @new_prospects.each do |org| %>
<div class="flex flex-wrap items-center justify-between gap-2 py-3">
<div>
<%= link_to org.name, org, class: "font-medium hover:underline" %>
<div class="text-sm text-slate-500"><%= org.city %> · <%= org.lead_source_label %> · <%= org.assigned_user&.full_name || "Non assegnato" %></div>
</div>
<%= link_to "Contatta", org, class: "#{btn_primary} w-full sm:w-auto px-3 text-xs" %>
</div>
<% end %>
<% if @new_prospects.blank? %><p class="text-sm text-slate-500">Nessun nuovo prospect.</p><% end %>
</div>
</section>
</div>