From 269cb2967c97660c939b1f4d5eb6de114a998c06 Mon Sep 17 00:00:00 2001 From: efim Date: Wed, 13 Mar 2024 16:42:03 +0000 Subject: [PATCH] feat(18): total this month part styled --- 18-expenses-chart/templates/index.templ | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/18-expenses-chart/templates/index.templ b/18-expenses-chart/templates/index.templ index 578fa5a..96c432a 100644 --- a/18-expenses-chart/templates/index.templ +++ b/18-expenses-chart/templates/index.templ @@ -50,7 +50,7 @@ templ dayExpenseColumn(expense, percentage float32, day string, isCurrentDay boo // The 7 vertical bars of the per-day expenses templ expensesChart(expenses, percentages []float32, currentDayNum int) { -
+
for i := 0; i < 7; i++ { @dayExpenseColumn(expenses[i], percentages[i], days[i], currentDayNum == i) } @@ -59,17 +59,17 @@ templ expensesChart(expenses, percentages []float32, currentDayNum int) { // Big container with chard and total expenses of the week templ spendingSummaryComponent(expenses, percentages []float32, currentDayNum int) { -
+
Spending - Last 7 days @expensesChart(expenses, percentages, currentDayNum)
-
-
- Total this month -

$478.33

+
+

Total this month

+
+

$478.33

-
-

+2.4%

+
+

+2.4%

from last month