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