mirror of
https://github.com/we-promise/sure.git
synced 2026-04-12 08:37:22 +00:00
- Stimulus controller on global layout (persists across all pages) - CSS blur effect on .privacy-sensitive elements (8px active, 4px on hover) - localStorage persistence survives page navigations - Toggle button on dashboard with aria-pressed for accessibility - Applied to 28+ views: accounts, budgets, transactions, reports, etc. Fixes: UTF-8 encoding, global controller mount, aria-pressed attribute
20 lines
882 B
Plaintext
20 lines
882 B
Plaintext
<%# locals: (totals:) %>
|
|
<div class="grid grid-cols-1 md:grid-cols-3 bg-container rounded-xl shadow-border-xs md:divide-x divide-y md:divide-y-0 divide-alpha-black-100 theme-dark:divide-alpha-white-200">
|
|
<div class="p-4 space-y-2">
|
|
<p class="text-sm text-secondary">Total transactions</p>
|
|
<p class="text-primary font-medium text-xl privacy-sensitive" id="total-transactions"><%= totals.count.round(0) %></p>
|
|
</div>
|
|
<div class="p-4 space-y-2">
|
|
<p class="text-sm text-secondary">Income</p>
|
|
<p class="text-primary font-medium text-xl privacy-sensitive" id="total-income">
|
|
<%= totals.income_money.format %>
|
|
</p>
|
|
</div>
|
|
<div class="p-4 space-y-2">
|
|
<p class="text-sm text-secondary">Expenses</p>
|
|
<p class="text-primary font-medium text-xl privacy-sensitive" id="total-expense">
|
|
<%= totals.expense_money.format %>
|
|
</p>
|
|
</div>
|
|
</div>
|