diff --git a/static/css/app.css b/static/css/app.css index 7cfbedc..fea7db9 100644 --- a/static/css/app.css +++ b/static/css/app.css @@ -166,6 +166,21 @@ a { color: var(--color-link); } .alert-danger { background: var(--color-danger-bg); color: var(--color-danger-fg); border-color: var(--color-danger); } .alert-warning { background: var(--color-warning-bg); color: var(--color-warning-fg); border-color: var(--amber-400); } +/* Dashboard "Currency & Information" strip — a responsive grid (not a layout + table) so the columns reflow to 2-up, then stack, on small screens. */ +.ca-info-grid { display: grid; grid-template-columns: 0.8fr 1.2fr 1.2fr 1fr 1fr; gap: 0; } +.ca-info-col { padding: 0 var(--space-4); border-right: 1px solid var(--color-border); min-width: 0; } +.ca-info-col:first-child { padding-left: 0; } +.ca-info-col:last-child { border-right: none; padding-right: 0; } +.ca-info-label { color: var(--color-text-muted); font-size: var(--fs-xs); margin-bottom: var(--space-3); } +@media (max-width: 900px) { + .ca-info-grid { grid-template-columns: 1fr 1fr; } + .ca-info-col { border-right: none; border-bottom: 1px solid var(--color-border); padding: var(--space-3) 0; } +} +@media (max-width: 560px) { + .ca-info-grid { grid-template-columns: 1fr; } +} + /* Reusable stat cards (dashboard) */ .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); } .stat-card { diff --git a/templates/dashboard.html b/templates/dashboard.html index 0ae1f44..ae7681c 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -23,81 +23,79 @@

Invoice Dashboard

Currency & Information
- - - - - - - - {% endif %} + {% endfor %} -
-
Current Date
-
{{ current_date }}
-
-
Exchange Rates ({{ base_currency }} base)
- +
+
+
Current Date
+
{{ current_date }}
+
+
+
Exchange Rates ({{ base_currency }} base)
+
+ {% for currency in tracked_currencies %} + {% if currency != base_currency %} + + + + + {% endif %} + {% endfor %} +
{{ currency }}:{{ "%.4f"|format(exchange_rates.get(currency, 0)) }}
+ +
+
Currency Converter
+
+ +
{{ currency }}:{{ "%.4f"|format(exchange_rates.get(currency, 0)) }}
- - -
Currency Converter
-
- - -
-
- - -
- - -
Tax Deadlines
- {% if tax_deadlines %} -
- {% for deadline in tax_deadlines %} -
-
Mod. {{ deadline.forms[0][0] }} — {{ deadline.forms[0][1] }}
-
{{ deadline.date }}
-
+ +
+
+ + +
+
+
+
Tax Deadlines
+ {% if tax_deadlines %} +
+ {% for deadline in tax_deadlines %} +
+
Mod. {{ deadline.forms[0][0] }} — {{ deadline.forms[0][1] }}
+
{{ deadline.date }}
- {% else %} -
No upcoming deadlines
- {% endif %} - - -
Upcoming Holidays
- {% if holidays %} -
- {% for holiday in holidays %} -
-
{{ holiday.localName }}
-
{{ holiday.date }}
-
- {% endfor %} + {% endfor %} +
+ {% else %} +
No upcoming deadlines
+ {% endif %} +
+
+
Upcoming Holidays
+ {% if holidays %} +
+ {% for holiday in holidays %} +
+
{{ holiday.localName }}
+
{{ holiday.date }}
- {% else %} -
No upcoming holidays
- {% endif %} - - - + {% endfor %} +
+ {% else %} +
No upcoming holidays
+ {% endif %} +
+
{% endif %}